XP有计划任务。
Linux有cron job。

解决方案 »

  1.   

    search google 定时任务。
      

  2.   

    有什么有哪位高手帮忙贴点代码呀,我有一个函数 function update_off($user_id='',$off_days='') 
    { } 现想让这函数 每天下午二点自动 执行, 
    怎么办呀, 
    要二种方式的代码 xp 和 unix; 
    各位帮帮我 
    急。。 
      

  3.   

    我在 apache 上运行
     chmod +x  test.php
     .\test.php会报错开始报:  command not found   
               syntax error near unexpected token'('  
    我减去些代码就报:   can not execute binary file 大家帮我看看
    急、、
      

  4.   

    也是报错呀,
    can not execute binary file 
      

  5.   

    And the first line
     # ! /usr/local/lib/php -q
    /usr/local/lib/php (this path relates to your environment which contain the php)运行时有文档说明。
    我现在在对着文件,操作。。
    看到这,就不明白什么意思了,
    我现在在linux +apache上运行,
      

  6.   

    [code=BatchFile]# ! /usr/local/lib/php -q [/code]
    这个PHP命令的路径有错误