用php循环处理数据
有一个具有指定行数的文件和处理数据的 php 脚本。问题是我应该在此脚本中手动定义字符串以进行如下处理: $ url = 'http://text.ru';而是 http://text.ru 我们如何添加自动循环文件中的所有行? 谢谢。
There is a file with a specified number of rows and php-script that processes the data. The problem is that I should define manually string in this script to process like this:
$ url = 'http://text.ru'; instead http://text.ru
How we can add to it looping all the rows from the file automatically?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 php 中提供的文件处理 API 来读取文件。只需从文件中一次读取一行并处理它。请看下面的链接。
PHP 文件处理
You can use the file handling API available in php to read from a file. Just read one line at a time from the file and process it. Look at the following link.
PHP File Handling