Re: PHP as a shell script

From: Date: Mon, 09 Jul 2001 19:05:15 +0000
Subject: Re: PHP as a shell script
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-57000@lists.php.net to get a copy of this message
There are... but I'm not sure what they are. If you build PHP _without_ any options, I believe you will get the binary. Read the documentation that comes with the source. It will show you the way. Ben Quoting Kevin Pratt <kpratt@countrymarkets.com>: > Is there any special switches I have to pass to > the compile of php to create > the php binary? > > Kevin > ----- Original Message ----- > From: "Ben Bleything" > <bleythbe@mailbox.orst.edu> > To: "'Kevin Pratt'" <kevin@ouelong.com>; > <php-general@lists.php.net> > Sent: Monday, July 09, 2001 11:03 AM > Subject: RE: [PHP] PHP as a shell script > > > > It's simple. Find your php binary (or build > one if you don't have > > one)... I think 'which php' will find it. > > > > Then, write a php file with '#!/path/to/php > -q' at the top. Use any one > > of the various execution methods to run your > programs. Done! > > > > I've been doing this for quite a while. I > find it easier than > > 'traditional' shell scripting => > > > > More questions? Ask! > > Ben > > > > -----Original Message----- > > From: Kevin Pratt [mailto:kevin@ouelong.com] > > Sent: Monday, July 09, 2001 10:02 AM > > To: php-general@lists.php.net > > Subject: [PHP] PHP as a shell script > > > > Can anyone direct me to a place where I can > read up on how to use php as > > a > > shell scripting language? > > > > > > Thanks Kevin > > Ouelong Group > > www.ouelong.com > > > > > > -- > > 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 > > > > > > > > -- > > 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 > > > > > > > -- > 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 (#57000) next »