PHP 4.0.6 and APXS2
| From: | Gonyou, Austin | Date: | Tue, 26 Jun 2001 19:58:35 +0000 |
| Subject: | PHP 4.0.6 and APXS2 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-55279@lists.php.net to get a copy of this message | ||
After getting apache 2 + 4.0.6 built and installed, I can finally use PHP
and all is well..except...
When accessing a script which uses an exec() statment like the following:
----snip-----
exec("ls -d */*.jpg",$ls);
----snip-----
When the LS is performed, it is not performed in the directory where the PHP
resides, but rather in /tmp. What's going on here. Also, I have the
following errors:
-----snip-----
Warning: Failed opening 'header.inc.php' for inclusion
(include_path='.:/usr/local/lib/php') in /tmp/really_silly on line 3
Warning: Failed opening 'footer.inc.php' for inclusion
(include_path='.:/usr/local/lib/php') in /tmp/really_silly on line 26
-----snip-----
The includes are relative to the path that the PHP script is in. It should
just work, but instead it does what you see above. I didn't see this
behaviour with Apache 1.3.x but it could be my Output/Input Filter
definitions too. Any feedback is appreciated.
--
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-796-9023
email: austin@coremetrics.com