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
>
>
>
> <?php
>
>           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

Reply via email to