Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/235.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何设置一个批处理文件来pic一个txt文件并将一些数据放入mySQL数据库_Php_Mysql_Apache_Batch File_Text Files - Fatal编程技术网

Php 如何设置一个批处理文件来pic一个txt文件并将一些数据放入mySQL数据库

Php 如何设置一个批处理文件来pic一个txt文件并将一些数据放入mySQL数据库,php,mysql,apache,batch-file,text-files,Php,Mysql,Apache,Batch File,Text Files,我如何设置一个批处理文件来pic一个txt文件并将一些数据放入mySQL数据库中。 我需要设置一个每小时运行一次的进程,读取一个txt文件并将数据放入mySQL数据库。我应该使用PHP吗?蝙蝠档案?请给我一些建议。提前感谢。您应该为此使用 基本上,它允许您以给定的时间间隔(例如每小时或每隔一天)运行文件。取决于您使用的操作系统,因为crontab意味着他们有一台linux服务器

我如何设置一个批处理文件来pic一个txt文件并将一些数据放入mySQL数据库中。 我需要设置一个每小时运行一次的进程,读取一个txt文件并将数据放入mySQL数据库。我应该使用PHP吗?蝙蝠档案?请给我一些建议。提前感谢。

您应该为此使用


基本上,它允许您以给定的时间间隔(例如每小时或每隔一天)运行文件。

取决于您使用的操作系统,因为crontab意味着他们有一台linux服务器