Re: [PHP] php exec()



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?

i will try to use other server to see if it is server inheritance.
and will try to increase errorlog level to see what is the problem.

regards,-keo

On Mon, Nov 3, 2008 at 1:03 PM, Chris <dmagick@xxxxxxxxx> wrote:

cheesiong wrote:

hi Chris,
thank you.
it is not working as well.
i copy the ipkg-cl into /usr/bin


add

error_reporting(E_ALL);

and

ini_set('display_errors', true);

to the top of your script.

any errors/warnings/whatever show up?


--
Postgresql & php tutorials
http://www.designmagick.com/




Relevant Pages

  • PHP SCRIPT
    ... php classified script ... guestbook ardguest free php guestbook script ... php file upload script ...
    (sci.chem.labware)
  • Re: Is it possible to have mutable-in-place (associative-)array objects in PHP?
    ... PHP uses references for objects too - so if the arrays were ... So I don't think I'll need to make an array class ... Can you please post your proposed script on a Web site as a plain ...
    (comp.lang.php)
  • Re: [Full-disclosure] Analysis of the "r00t 4 LFI Toolkit"
    ... This tool is a php script that assists in performing local file ... None of the output from the tool is sanitized, meaning the attacker ... Use the last three array values from the HTTP referer. ...
    (Full-Disclosure)
  • Re: [PHP] PHP console script vs C/C++/C#
    ... My script is taking a longer time to execute than I want. ... I prefer to write in PHP because that is what I know best. ... This is why I am thinking about rewriting my whole script in a C language. ... Perhaps there are different methods I could be using to speed up execution. ...
    (php.general)
  • Re: How to Add a Feeback Form
    ... I saw nothing in that script that indicates where the form is e-mailed to so ... Greg Maxey/Word MVP ... PHP or not. ... have the support available yet. ...
    (microsoft.public.frontpage.programming)