Old 08-08-2006, 03:15   #1 (permalink)
dark_father
Registered User
 
Join Date: Aug 2006
Posts: 6
help!

i'm kind of a newbie with php and i'm trying to write to a file with the fopen function but i keep getting his warning (fucntion fopen failed to open stream Permission denied ) can anyone help me out, i think it's the file permissions but i am not sure how to resolve this, i'm using php5.

any help would be appreciated
  Reply With Quote
Old 08-08-2006, 05:11   #2 (permalink)
xml
Senior Member
 
Join Date: Sep 2004
Posts: 149
You're using linux? Try chmod the file to 777.

You might want to try this function for usability: http://uk.php.net/file_put_contents
__________________
  Reply With Quote
Old 08-08-2006, 05:20   #3 (permalink)
dark_father
Registered User
 
Join Date: Aug 2006
Posts: 6
no using widows, i tried using file_put_contents and still had same results, i fugure it's a permissions prob, i have changed the read write permissions using the mmc but still get the same error.
  Reply With Quote
Old 08-08-2006, 05:40   #4 (permalink)
dark_father
Registered User
 
Join Date: Aug 2006
Posts: 6
guess i'll just port everything over to apache then .

windowz sux, but my dear sweet girlfriend can't get her head round linuz.

cheers anyway guys and gals
  Reply With Quote
Old 08-08-2006, 06:12   #5 (permalink)
dark_father
Registered User
 
Join Date: Aug 2006
Posts: 6
sorted, just ported everything to apache and it works great now, should have just done that in the first place
cheers for advice
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8