Re: Execute a shell command using thttpd-php

From: Date: Tue, 14 Mar 2006 23:16:47 +0000
Subject: Re: Execute a shell command using thttpd-php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231914@lists.php.net to get a copy of this message
Nelson Carreira wrote:
Hello, I'm quite new to PHP language and although I got into it pretty fast I'm having some trouble executing system commands using php. I'm using thttpd-php_2.21b-2_mipsel in a Linksys router and I can only execute system commands like "ls" and "cd" from the PHP. I tried using the different available functions (exec(), shell_exec(), system(), passthru() and backsticks) but none of them works. I can't even run scripts!
What happens? Do you get an error? The commands you're trying to execute can't be interactive (ie can't prompt for information). They must be run by themselves and possibly display results. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#231914) next »