Re: exec() major probs
| From: | Dell Coleman | Date: | Tue, 28 Aug 2001 22:26:30 +0000 |
| Subject: | Re: exec() major probs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64898@lists.php.net to get a copy of this message | ||
Hi
try shell_exec() --- it seems to work better for some things
HTH
Terry Reynolds wrote:
> Hi
>
> I am having major probs trying to exec a command in PHP.
> All i want to do is fill a table from a tab delimited file from within PHP.
> I have set up a file called fillit which consists of:
> mysqlimport -u user -ppassword database list.txt
> This works from the command line perfectly.
> I made this executable & it runs perfectly with .fillit
> It will not run with exec, system or passthru.
> I have tried nearly all possible combinations with and without backticks, single, double and no
> quotes.
> I have rw access to the dir I am running from and have read the manual until I'm blue in
> the face!
> Has anyone out there used the xece command successfully??
> Ps if I exec("ls -l"), it works fine !
>
> Linux box Using PHP 4.0.??. latest version MySql, Apache Slackware
> TIA
> Terry
--
Dell Coleman, Principal
PICO Technology Corp.
Victoria, BC
Email decoleman@home.com
Web http://members.home.com/pico/