Permission question: Writing to a file from PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
noorodeen
Forum Newbie
Posts: 4
Joined: Sun Jan 07, 2007 2:57 pm

Permission question: Writing to a file from PHP

Post by noorodeen »

Hello,

I was wondering if regular hosting providers allow you to create files from w/in your php script that you access from the web? If not, how do you guys get around the need to record things on file, w/o having the user create the files and give them permissions etc...

Thanks,
amir
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

sure they do
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Most providers do allow you to create files from within PHP. Alternately, you can use FTP functionality, but it's a bit more clunky and does alter the permissions for the files, so it does take some care.
Post Reply