Re: How to run php not through Browser

From: Date: Mon, 11 Sep 2000 04:32:25 +0000
Subject: Re: How to run php not through Browser
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16117@lists.php.net to get a copy of this message
1) try making the file executable: chmod 755 barry.php 2) then try running it from the current directory: ./barry.php if it still doesn't work, the the 'php' binary is not located in /usr/bin. Make sure it is, then do it again. -jeremy brand _______________________________________________________________________ GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 _ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more __ On Mon, 11 Sep 2000, kelvin wrote: > Date: Mon, 11 Sep 2000 12:23:56 +0800 > From: kelvin <y2k@macau.ctm.net> > To: php-general@lists.php.net > Subject: [PHP] How to run php not through Browser > > 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 > >

« previous php.general (#16117) next »