RE: [PHP] PHP Standalone scripting?

From: Date: Tue, 18 Jul 2000 08:39:59 +0000
Subject: RE: [PHP] PHP Standalone scripting?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7046@lists.php.net to get a copy of this message
Hi list. I believed the win32 version actually was a cgi binary, and therefore you could use the executable in standalone scripts, but! you'll have to execute them like: c:\>php myscript.php I dunno if you need the #!c:\php\php -q as the first line then.. Just some ideas, haven't tried it out. Regards, -larsw- -- Lars Wilhelmsen <lw@ez.no>, developer @ eZ systems <www.ez.no> -----Original Message----- From: Sune Alexandersen [mailto:sune@drs.no] Sent: 18. juli 2000 11:36 To: Jeff Wolkove; PHP General List Subject: Re: [PHP] PHP Standalone scripting? > > ./configure > > make > > make install > > > > This copies a 'php' binary to /usr/local/bin > > > > Then a typical standalone PHP script would look like this: > > > > #!/usr/local/bin/php -q > > <? > > echo "Hello World"; > > ?> > > > > -Rasmus Hi Jeff, Rasmus and all other on the list! Is there a way to do this on a Windows platform? And how could I run Windows System commands? Ahh! To run PHP as a loginscript would be cool! regards, Sune Alexandersen -------------------- Company site: http://www.drs.no Private site: http://www.suneworld.com Wap site: http://tagtag.com/suneworld Download WebExplorer today and manage your PHP enabled website in your webbrowser! Its free! http://www.suneworld.com/programs (over 1.800 downloads since release) ----- Original Message ----- From: Jeff Wolkove <php@biz-link.com> To: PHP General List <php-general@lists.php.net> Sent: 18. juli 2000 05:45 Subject: Re: [PHP] PHP Standalone scripting? > Looks like I'm in business! Thanks to all who replied. > > Jeff > > > Rasmus Lerdorf wrote: > > > > > I was wondering if there's a way to run php scripts > > > on a standalone basis, as you would run a PERL script > > > or C program? I would like to use PHP since I have > > > written a lot of code that could be re-used to write > > > some simple scripts that can run from cron or from a shell > > > to do some database maintenance, send e-mails, etc. > > > > > > If not, are there any plans to build a standalone run-time > > > interpreter for PHP? > > > > ./configure > > make > > make install > > > > This copies a 'php' binary to /usr/local/bin > > > > Then a typical standalone PHP script would look like this: > > > > #!/usr/local/bin/php -q > > <? > > echo "Hello World"; > > ?> > > > > -Rasmus > > > -- > 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 (#7046) next »