Re: [PHP] passthru() problem

2003-07-02 Thread Jason Wong
On Wednesday 02 July 2003 22:04, david wrote:
> I'm trying to get the output of a shell command with PHP
>
> This is the command I'm Trying to execute, I also tried using system
> instead of passthru
>
>
>
> 
>   passthru(ftpwho -v, $return_var);
>
>   echo $return_var;
>
> ?>

passthru (et al) expects the command argument to be a string.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Dental health is next to mental health.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] passthru() problem

2003-07-02 Thread david
I'm trying to get the output of a shell command with PHP 

This is the command I'm Trying to execute, I also tried using system instead
of passthru

 



 

Both cases "passthru" and "system" Outputed "2" but should have outputted
something like this:

 

standalone FTP daemon [17899]:

21852 geiri[ 4h45m] (n/a) STOR /UPLOAD_HERE/moviemusic/The Soprano's -
Music from the HBO Original Series

KB/s: 143.87

client: client.client.de [12.2.2.3]

server: 62.145.135.125:2121 (shiiit.serbinn.com)

location: /MP3/ Music/

 

Any Idea about what  could be wrong