--enable-force-cgi-redirect Enable the security check for internal server redirects. You should use this if you are running the CGI version with Apache. --enable-fastcgi If this is enabled, the cgi module will be built with support for fastcgi also. 加上这两个参数configure吗?
Linux 下写 Crontab如果是 Windows 下的话,自己VB,VC随便写个程序得了
用crontab来执行php程序就可以了,可以执行对数据库的操作怎么做啊???
不用刷新就能更新岂不是违背了http的原则了。
$PHP_SELF 查看一下这个里面的参数,能够实现你想要的功能。
PHP可以实现这样的功能你去下载一个GTK包利用GTK,你可以开发出这种功能的!
这位大哥能不能给个简单的例子,我前几天刚下了,还不知道怎么用呢,对于PHP我也只刚刚学了一个月!
<meta http-type = "Refresh" content = "20; url = <?php echo $php_self; ?>">这样好像能实现您所说的问题,我是一个新人,希望不对的地方大家多指教。谢谢……
把 php 的执行调用,写在 shell 文件里
通过Crontab 定时执行自己写好的 shell 文件请你不要怀疑这样作法的可行性,因为我司网站就如此,常弄此活。
=====================================
#
#!/bin/bash
. /etc/profile
ORACLE_SID=xxx; export ORACLE_SID
TWO_TASK=xxx; export TWO_TASK;
php -q /yourdir/test.php
=====================================
Crontab
=====================================
*/10 * * * * sh /asol/cecol/.engine.sh
=====================================
表示每10分钟执行一次。
但是我不知道怎么做。关注中.....
回复人: misnet(小鬼) ( ) 信誉:99 2004-01-01 16:45:00 得分:0
PHP可以实现这样的功能你去下载一个GTK包利用GTK,你可以开发出这种功能的!
这个问题能不能讲清楚一点。最好能提供个简单的和序或倒子...关注中......
http://www.fanqiang.com/a4/b4/20021015/060200317.html
TWO_TASK=xxx; export TWO_TASK;
php -q /yourdir/test.php
"
应该可以!!!
Enable the security check for internal server
redirects. You should use this if you are
running the CGI version with Apache.
--enable-fastcgi If this is enabled, the cgi module will
be built with support for fastcgi also.
加上这两个参数configure吗?
就是./configure 后面一定要加上--enable-force-cgi-redirect
--enable-fastcgi然后,随便写一个php文件
testcgi.php 就是个录入数据的操作
#!/usr/local/bin/php -q
<?php
$dbh=mysql_connect('localhost','root','');
mysql_select_db('test');
$query='insert into testcgi (time) values (now())';
$res = mysql_query($query, $dbh);
?>
然后
linux command>crontab -e
添加内容
* * * * * /usr/local/bin/php -q /apache2/htdocs/testcgi.php意思是每一分钟都执行然后每一分钟就自动录入一条记录了crontab 命令简介
http://www.fanqiang.com/a1/b5/20010925/1500001350.html
楼主再不明白就要打屁股了