--- Bob <[EMAIL PROTECTED]> wrote:
> Hi James, > I'm on a shared server so I doubt whether they would allow me to have shell > access. > > Re: passthru("some linux command"); > You've lost me on this one :-) > > I'll have to read up on this, when I get more time. > Bob. Here's a more specific example: <pre> <?php passthru("ls -lh /etc"); ?> </pre> This would attempt to run the command at the Linux command line as the webserver user. There are ways to stop this with php.ini configuration settings though they are not commonly implemented. If you get a "safe_mode" or "open_basedir" error then you might use just "ls -lh" to look at the current directory where the PHP script is located. The passthru() function could be blocked by disable_functions in php.ini. James Community email addresses: Post message: php-list@yahoogroups.com 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/