Re: [PHP] php exec()

2008-11-03 Thread cheesiong
hi ash, i tried you suggestion, with ?php exec('ipkg-cl --version lalala.txt');? the lalala.txt was created but the file is empty. anymore suggestion? thank you. regards,-keo On Mon, Nov 3, 2008 at 3:29 PM, Ashley Sheridan [EMAIL PROTECTED]wrote: On Mon, 2008-11-03 at 15:21 +0800, cheesiong

[PHP] php exec()

2008-11-02 Thread cheesiong
hi all, this is the first time i try out the mailing list. i hope to get help from here. thank you. i hope this email can reach the mail group as i use bluecolour.sz to sign on the news group but using bluecolour to do all the emailing. i am facing a problem when i study exec() php function: i

[PHP] Re: php exec()

2008-11-02 Thread cheesiong
i try to use the system() function, i found the the last line of the ifconfig is actually nothing. but i still cannot execute the ipkg-cl program. any idea? thank you. regards,-keo On Mon, Nov 3, 2008 at 11:31 AM, cheesiong [EMAIL PROTECTED] wrote: hi all, this is the first time i try out

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, thank you. it is not working as well. i copy the ipkg-cl into /usr/bin do i need to set anything in the httpd.conf on the Directory directive? i am running apache-2.2.9. this is code copy from you suggestion: ?php $output = array(); exec('ipkg-cl --version', $output);

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
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 [EMAIL PROTECTED] wrote: cheesiong wrote: hi Chris, thank you. it is not working as well. i copy the ipkg-cl

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
. should not be a problem. regards,-keo On Mon, Nov 3, 2008 at 1:19 PM, Chris [EMAIL PROTECTED] 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

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
[EMAIL PROTECTED] wrote: cheesiong wrote: 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

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
?S14:06 0:00 /program/httpd-2.2.9/bin/ so not the user right problem, am i right ? regards,-keo On Mon, Nov 3, 2008 at 1:59 PM, Chris [EMAIL PROTECTED] wrote: cheesiong wrote: hi Chris, my linux system is LFS that i build from scratch. i cant su to daemon. below is my /etc

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
]# /program/php-5.2.6/bin/php-cgi whoami.php X-Powered-By: PHP/5.2.6 Content-type: text/html the result of execwhoami is root can you see the different? regards,-keo On Mon, Nov 3, 2008 at 2:12 PM, cheesiong [EMAIL PROTECTED] wrote: hi Chris, i did try, below is the continouos output from