I have installed php 4.3.0 to work with apache, but I wonder if I did something wrong because fopen can't find files that are in the same directory as my php file. The following script gives the following error:
<?php if (file_exists("Install_report")){ echo "file exists. Tries to open it..<br>"; $fp = fopen ("Install_report", "r"); }else{ echo "file doesn't exist"; } ?>
file exists. Tries to open it..
Warning: fopen(Install_report) [function.fopen]: failed to create stream: No such file or directory in /home/b/7/oyvindve/public_html/test_fenris.php on line 20
So the file_exists() finds the file, but the fopen() doesn't..
Any tips for me??
details about configuration:./configure \
--prefix=/usr/flocal/opt \
--with-apxs=/usr/flocal/opt/apache/bin/apxs \
--with-config-file-path=/usr/flocal/opt/apache/conf \
--with-dom=/usr/flocal/opt \
--with-zlib=/usr \
--enable-versioning \
--enable-ftp \
--enable-bcmath \
--disable-debug \
--enable-memory-limit=yes \
--enable-track-vars