I recently reconfigured open_basedir so that it wasn't quite so limited.
Now, I'm getting erros with php script that use to run fine, and I can't
figure out what went wrong.
Previously, open_basedir was configured (locally) like so:
/home/httpd/vhosts/mydomain.com/httpdocs/:tmp/
I changed it to
/home/httpd/vhosts/
Now I get the following errors:
Warning: open_basedir restriction in effect. File is in wrong directory
in /home/httpd/vhosts/mydomain.com/httpdocs/admin/uploadarticle.php on
line 192
Warning: fopen("fileupload/Aleph One Log.txt", "r") - No such file or
directory in
/home/httpd/vhosts/mydomain.com/httpdocs/admin/uploadarticle.php on line
193
Warning: stat failed for fileupload/Aleph One Log.txt (errno=2 - No such
file or directory) in
/home/httpd/vhosts/mydomain.com/httpdocs/admin/uploadarticle.php on line
194
Warning: fread(): supplied argument is not a valid File-Handle resource
in /home/httpd/vhosts/mydomain.com/httpdocs/admin/uploadarticle.php on
line 195
These are the lines of code:
192 copy ($_FILES['quarkfile']['tmp_name'],
"fileupload/".$_FILES['quarkfile']['name']);
193 $open=
fopen("fileupload/".$_FILES['quarkfile']['name'], r);
194 $filesize =
filesize("fileupload/".$_FILES['quarkfile']['name']);
195 $wholefile = fread( $open, $filesize );
anyone know what i've done wrong?