Re: How to run php not through Browser
| From: | Ben Weinberger | Date: | Mon, 11 Sep 2000 04:28:13 +0000 |
| Subject: | Re: How to run php not through Browser | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16116@lists.php.net to get a copy of this message | ||
If you just do:
5 1 * * * lynx -dump http://www.yoursite.com/yourscript.php3
in a crontab, it should be fine. I use that to run a script each morning at 1:05 am.
Best,
-Ben
At 12:23 PM 9/11/2000 +0800, kelvin wrote:
Hello,
i want to ask how to run php not through the Browser
coz i want the cron the run the php file each hour.
however,when i just try a simple php file,it can't work
the code is
#!/usr/bin/php -q
<?php
print("Hello, world!\n");
?>
when i just type "***.php",it just show the
bash: barry.php: command not found.
Is there anything i need to config?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net