How to run php not through Browser
| From: | kelvin | Date: | Mon, 11 Sep 2000 04:23:56 +0000 |
| Subject: | How to run php not through Browser | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16115@lists.php.net to get a copy of this message | ||
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?