|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-05-03 13:08 UTC] sb at bpm dot ch
On AIX 4.3.3(ML6) with PHP and Apache from IBM's Linux Toolbox the functions include() and require() don't work correctly. If these functions are used, a "page not found" error occures. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 00:00:02 2025 UTC |
Here is a sample script: --- test.php -------------------- <?php include("test.inc"); ?> --------------------------------- --- test.inc -------------------- <html> <head> <title>test</title> </head> <body> <p>this is a test</p> </body> </html> --------------------------------- Normaly you will see on http://www.mydomain.com/test.php the content of the file test.inc as standard HTML page. On your PHP implementation the page test.php will not be found. StephanTry this script: <?php echo "this is a test"; error_reporting(E_ALL); include("test.inc"); ?> Any errors reported? In error_log maybe? --JaniJust for information: 1. I've updated AIX 4.3.3 now to the Maintenance-Level 8 (the latest one). But the problem is unchanged. 2. I'm using the binary package: php-4.0.4pl1-1.aix4.3.ppc.rpm from: ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/php --stephanCould you submit the results when test.inc: - is chmod a-r - is chmod a+r ? Apparently PHP crashes trying to open the file. Try also, in stead of th include(), a $fp = fopen('test.inc'); echo fread($fp,filesize('test.inc')); fclose($fp); To see wether the problem is in the include() or simply in opening of the file. This also with word-readable on/off.