Re: php exec()
| From: | cheesiong | Date: | Mon, 03 Nov 2008 05:28:27 +0000 |
| Subject: | Re: php exec() | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-282772@lists.php.net to get a copy of this message | ||
hi Chris,
thank you. i change the path and change the httpd.conf LogLevel to debug
then restart apache.
but nothing is change from the output or the error log.
basically it is still not working.
this is weird, isn't it. the apache is run with Daemon, but i already change
the chmod to 777. should not be a problem.
regards,-keo
On Mon, Nov 3, 2008 at 1:19 PM, Chris <dmagick@gmail.com> wrote:
> cheesiong wrote:
>
>> hi Chris,
>> i change the script to:
>> <?php
>> error_reporting(E_ALL);
>> ini_set('display_errors', true);
>> $output = array();
>> exec('ipkg-cl --version', $output);
>>
>> print_r($output);
>> ?>
>>
>> the output from browser:
>> array()
>>
>> other stuff remain the same. can i conclude php program is not a problem
>> here?
>>
>
> It could be a path problem still even though you put it in /usr/bin/
>
> try a full path (recommended anyway):
>
> exec('/usr/bin/ipkg-cl --version', $output);
>
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
>