RE: [PHP] Hello... PHP not in HTML

From: Date: Tue, 26 Sep 2000 12:17:30 +0000
Subject: RE: [PHP] Hello... PHP not in HTML
Groups: php.general 
Request: Send a blank email to php-general+get-17597@lists.php.net to get a copy of this message
Well, You should be able to install a standalone binary, just by leaving out the "--with-apache"-directive when You run "./configure". After the "./configure", run "make", then "make install". The binary should be installed under "/usr/local/bin" or possibly "/opt/bin". I haven´t duplicated this on PHP v. >= 4, however it´s unlikely this will have changed. If any of You guys out there knows better, please post a correction note. ;_) When using the PHP-binary, just make sure the installed path is in Your PATH-variable: # "env | grep PATH" will reveal all registered paths. If this checks out ok: # "php [your_script.php]" will parse Your script through the engine, or if You use Bash just make the first line of Your script: "#!/[path_to_php]/php" "chmod 755 [script]". and run the script itself; Bash will know to use the PHP-engine to parse the file. :-) Good luck, Henrik J. > ---------- > From: James Turle[SMTP:james@turle.com] > Sent: den 27 september 2000 13:51 > To: Henrik Johansson > Subject: RE: [PHP] Hello... PHP not in HTML > > thanks for your help dude, but im not really a unix guru, is there a way > you can explain what to do in more detail, dont go out of your way though, > just like what i would type to compile to engine etc... > > and then how i would run the engine ie... > > phpengine mailout.php ??? > > Cheers... > > -----Original Message----- > From: Henrik Johansson [mailto:henrik.johansson@radius.se] > Sent: Tuesday, 26 September 2000 10:46 PM > To: 'James Turle' > Cc: 'php-general@lists.php.net' > Subject: RE: [PHP] Hello... PHP not in HTML > > > > Hi James! > > You can compile the PHP-engine as a stand-alone binary and execute > scripts through it as You > would with Perl or (G)AWK. It is all in the INSTALL-file in Your php > root-directory. |-) > > Cheers, > Henrik J. > > ---------- > From: James Turle[SMTP:james@turle.com] > Sent: den 27 september 2000 13:43 > To: php-general@lists.php.net > Subject: [PHP] Hello... PHP not in HTML > > Just wondering how to use php from the unix prompt... > > I have written a mailout script and I don't really want to > run it from a > webpage... Any help out there? > > > -- > 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 (#17597) next »