Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win XP Problem

Status
Not open for further replies.

Grumm

Technical User
Sep 27, 2002
68
0
0
AU
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.
 
Sorry - I wasgetting an eror message but I have now managed to fix the problem.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top