Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

X1Lightning

macrumors 6502
Original poster
Feb 19, 2007
413
0
i wrote a script that needs to read a txt file and create multiple pdf files from it. why i try to run it on my mac i get this error "failed to open stream: Permission denied"

so i have been looking at how to give permission to that directory, but i cant find a way to do that. does anyone know how to do this?


thanks
 
Open up terminal,

chmod -R 777 /path/to/directory

and let me know if that worked

edit: you may also need to make safe_mode is off in php
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.