Re: [PHP] Php CLI Parser not working



Daniel Brown wrote:
On Tue, Jul 29, 2008 at 2:19 PM, JJB <onephatcat@xxxxxxxxxxxxx> wrote:
We recently rebuilt a webserver and upgraded it to opensuse 10.3.
Now, when our webdev people run command line php scripts all of the
included files are being output to the terminal instead of parsed.

How are the scripts being run from the CLI? As shell scripts with
this as the following line:

#!/path/to/php

-or-

#!/bin/env php

.... or by using the command 'php script.php' from the command line?


What do you see when, from the command line, you issue the command
'php -v' ?


Hi Daniel,

We are running like:
php mailscript.php

The version:

php-v

PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Dec 12 2007 03:51:56)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies


.



Relevant Pages

  • Re: IIS 6.0 on Windows Server 2003
    ... If PHP insists on using CMD.EXE to execute the shellcommand on the ... server, then no, you have no choice -- you must give read permissions to the ... this would be a security vulnerability caused by PHP. ...
    (microsoft.public.inetserver.misc)
  • Re: Wnidows Server 2003 - I need help in getting the Connection Co
    ... command if already running. ... it fires off the netstat command for you, sending the results from that to ... another file which your PHP process can access. ... requires administator access we are get file permison problems - ANY IDEAS ...
    (microsoft.public.windowsmedia.server)
  • Re: OT: Old Windows command line...
    ... I need to create a .bat file that contains a command to invoke a php script multiple times, with the "stdin" for each invocation of the php script immediately following the command invoking the script (ah, how easy it was to do such things in MPE). ... Rather, they would only be passed to php if it specifically requested them, line by line; though then, as the default feed for the request would be from STDIN, and the datastream itself would be STDIN, MPE would then pass the lines in one by one. ...
    (comp.sys.hp.mpe)
  • Re: cron jobs in PHP admin to run a PHP file
    ... "command" in cron jobs I don't know what it is looking for? ... All I want to do is run the php script. ... have permission to execute it. ...
    (comp.lang.php)
  • Re: OT: Old Windows command line...
    ... I need to create a .bat file that contains a command to invoke a php script multiple times, with the "stdin" for each invocation of the php script immediately following the command invoking the script (ah, how easy it was to do such things in MPE). ... Rather, they would only be passed to php if it specifically requested them, line by line; though then, as the default feed for the request would be from STDIN, and the datastream itself would be STDIN, MPE would then pass the lines in one by one. ...
    (comp.sys.hp.mpe)