Re: Book.

From: Date: Thu, 20 Dec 2001 07:55:16 +0000
Subject: Re: Book.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78300@lists.php.net to get a copy of this message
Remember #!/usr/local/bin/php -q ^^^ This will quell any http-headers, and give you clean output. (provided you wite your script right ;) ) On Thu, 20 Dec 2001, Bas van Rooijen wrote: > > > No not CGI, binary (instead of apache module). > > - Just leave out the --with-apache part when you do configure. > > by default 'make install' will put the php binary in /usr/local/bin > > - On top of your PHP script add the following line: > #!/usr/local/bin/php > > - Make sure you don't use MS-DOS (but UNIX) style text files, > PHP doesn't care but for that first line it may be important. > > - PHP open/close tags <? ?> still apply > > > bvr. > > On Wed, 19 Dec 2001 15:07:21 -0800 (PST), Mehmet Kamil ERISEN wrote: > > >Hi, > >I think I'm misunderstood. I do not want to run in cgi > >mode. > >Thanks, > >Mehmet. > >--- Mart¡n Marqu‚s <martin@bugs.unl.edu.ar> wrote: > >> > information on how to run PHP from Unix, as a cron job, > >> how > >> > can PHP scripts be called from Shell Scripts etc... > >> > >> You need to compile PHP without web-server support, for > >> cgi. In that case you > >> will get a binary file, and you can use just like you use > >> perl or bash for > >> making scripts. > > > > > -- Knut ------ Knut H. Hassel Nielsen, knutnie@idi.ntnu.no Principal Engineer, Office : ITS 204 IDI NTNU, Sem Saelands vei 7-9 N-7491 Trondheim, Norway Phone (+47) 73 59 18 46 Fax (+47) 73 59 60 35 "We all live in a yellow subroutine."

« previous php.general (#78300) next »