fopen() problems: permission denied
Date: 02/08/06
(PHP Community) Keywords: php, xml, web
I am trying to make a short script that will generate an XSPF/XML file based upon the names of mp3 files that are in a particular directory. It will be a dynamic playlist that automatically updates. I am using it with the XSPF Web Music Player, an open source flash-based mp3 player.
Anyway, I am pretty sure that I need to use the fopen() function. When I use it in my script a warning is generated:
Warning: fopen(playlist2.xspf): failed to open stream: Permission denied in /var/www/......./playlist_generator.php on line 43
now, I think I can fix this with the CHMOD command, but my question is what is the exact command ie which code should i use? I need to do this through the FTP program in the windows console.
Any tips would be much appreciated!
Source: http://community.livejournal.com/php/409678.html