--- Gordon Stewart <[EMAIL PROTECTED]> wrote: > $t= passthru( 'ls -l /www/u/user/groups/' ); > echo "Done<BR>\n"; > echo " T = '$t'\n"; > > ( u/username is my directory..) > > - Ive got the above - Which displays things correctly on-screen... > > However $t is still blank... - How can I assign the value to $t (all > of what i see on screen..) > > PS - Its a cron-job, so I dont mind it being displayed - however I do > want to process it - after...)
A quick check of the PHP site reveals that passthru() is designed to run a system command and display the results in standard output (normally the browser). A command called system() returns the last line of output to a variable. However exec() should return the entire output to a variable. James _____ James D. Keeline http://www.Keeline.com http://www.Keeline.com/articles http://Stratemeyer.org http://www.Keeline.com/TSCollection http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc. Spring Semester Begins Jan 31 -- New Classes Start Every Few Weeks. Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
