RE: [PHP] Can php run as a script?
| From: | John Coggeshall | Date: | Thu, 03 Apr 2003 09:10:44 +0000 |
| Subject: | RE: [PHP] Can php run as a script? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142097@lists.php.net to get a copy of this message | ||
>Note that any errors will be chucked back to the terminal in HTML.
Only if you are using the CGI version of PHP. The CLI version prints
errors, etc without HTML.
John
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
John Coggeshall
john at coggeshall dot org http://www.coggeshall.org/
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
>-----Original Message-----
>From: edd@filibusta.net [mailto:edd@filibusta.net]
>Sent: Thursday, April 03, 2003 2:38 AM
>To: php-general@lists.php.net
>Subject: Re: [PHP] Can php run as a script?
>
>
>
>PHP can run as a script indeed.
>
>#!/usr/bin/php
>
>Do that like you would perl and then make it executable. Should work.
>
>
>
>
>On 4/2/2003, "Poon, Kelvin (Infomart)" <kpoon@infomart.ca> wrote:
>
>>Hi,
>>
>>This might be a newbie question but I can't find an answer anywhere I
>>search. I know php can be excuted by a web browser, but can
>it run as
>>a script like Perl?
>>
>>The reason i ask is, I need to write a php script that updates a
>>database
>in
>>a server. And this script needs to be running in the background as a
>>service, that's why i was wondering if I can excute it like a perl
>>script.
>>
>>If it can't, do you guys know if I can use perl to call up a php
>>script?
>>
>>Please advise.
>>
>>Thanks,
>>Kelvin
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
>Edd Barrett
>(http://www.filibusta.net)
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>