Re: Re: exec() and passthru()
| From: | Jason Wong | Date: | Thu, 19 Jun 2003 19:39:26 +0000 |
| Subject: | Re: Re: exec() and passthru() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152223@lists.php.net to get a copy of this message | ||
On Friday 20 June 2003 02:55, Mignon Hunter wrote:
> Still no out put here's my script test.php:
> $output = shell_exec("/var/www/htdocs/vertex_test/a.out");
> echo $output;
>
>
> tried "" and ''. Both test.php and a.out are in same directory and both
> have 777 perms.
OK, it *ought* to work. Possibilities as to why it's not working:
- Your program is not outputting to STDOUT or otherwise not working correctly.
Try shell_exec('/bin/date') or something similar.
- You've got some safe-mode restrictions enabled and haven't been checking
your error log.
--
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
------------------------------------------
/*
Q: How many lawyers does it take to change a light bulb?
A: One. Only it's his light bulb when he's done.
*/