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 <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED] 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." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]