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.




--
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]

Reply via email to