I have a script that used to run fine under my Win 2000 installation. I have now moved to XP Pro and IIS and have my application running in the following directory: -
C:\Inetpub\
The section of PHP that is failing is :-
function PatchClassesPhp() {
Status_Start("Patching Classes.php (to make file uploads compatible with open_basedir restrictions)");
$lines = array();
// Read file
$fp = @fopen("Classes.php", "w")
or die ("Could not open Classes.php for reading.");
while(!feof($fp)) {
array_push($lines, fgets($fp, 1024));
}
fclose($fp);
I know this isprobably a simple file permission error but I cant seem toget it right ans am new to PHP and XP. Any pointers would be great.
C:\Inetpub\
The section of PHP that is failing is :-
function PatchClassesPhp() {
Status_Start("Patching Classes.php (to make file uploads compatible with open_basedir restrictions)");
$lines = array();
// Read file
$fp = @fopen("Classes.php", "w")
or die ("Could not open Classes.php for reading.");
while(!feof($fp)) {
array_push($lines, fgets($fp, 1024));
}
fclose($fp);
I know this isprobably a simple file permission error but I cant seem toget it right ans am new to PHP and XP. Any pointers would be great.