chestertb
02-08-2007, 03:17 PM
I have decided to get my own server so that I can access things like the php.ini file. It's running Debian, Apache2, mySQL2 and php5.
Everything's installed, but there appears to be a relative path issue with php, which is demanding the absolute path for all file references.
For example...
in getimagesize($banner);
logo.jpg lives in the /images folder.
which means $banner ought to be either the relative path 'images/logo.jpg'
or the absolute path $_SERVER['DOCUMENT_ROOT']."/images/logo.jpg".
Only the absolute path works, with the relative path returning an error that says something like 'document is outside the allowable path (/etc/php/...)
Is the a php 5 'feature', demanding absolute paths (the relative paths work fine on my old server under php4.4.4), or is it something in my php.ini that needs changing?
Thanks
CTB
Everything's installed, but there appears to be a relative path issue with php, which is demanding the absolute path for all file references.
For example...
in getimagesize($banner);
logo.jpg lives in the /images folder.
which means $banner ought to be either the relative path 'images/logo.jpg'
or the absolute path $_SERVER['DOCUMENT_ROOT']."/images/logo.jpg".
Only the absolute path works, with the relative path returning an error that says something like 'document is outside the allowable path (/etc/php/...)
Is the a php 5 'feature', demanding absolute paths (the relative paths work fine on my old server under php4.4.4), or is it something in my php.ini that needs changing?
Thanks
CTB