View Full Version : Fopen : Writing rights on webserver
mvhall
04-06-2003, 11:07 AM
Hi All,
How would I create a file on the webserver when the default settings would be R+R+R? I know I can use php: CHMOD to change it to the right setting but this is after the file has been created. So by using fopen/write I get an error that I am unauthorised to perform the write action.
Anyone know how to get around this? I've looked at the php manual but can't find anything. Is there a php setting I can change before I perform write functions?
Thanks,
CyanBlue
04-06-2003, 11:11 AM
Um... What about something like this???
Create a file...
Close the file...
Change the permission...
Open the file for editing...
Do whatever you need to do...
Close for the last time...
???
mvhall
04-06-2003, 11:23 AM
Hi Jason,
Yep that was what I tried to do, but didn't get past the create bit :mad: . So I will try what our guru suggested. This sounds logical as well. I think Linux/Unix works the other way around as WinNT, where you get all permissions and start restraining.
I wil try tonight and let the forum know. BTW I think you are right, I will be on the forum a lot whilst learning php :D
Cheers
http://www.actionscript.org/forums/showthread.php3?s=&threadid=2782&highlight=chmod
CyanBlue
04-06-2003, 11:37 AM
PHPBuilder (http://www.phpbuilder.com/) is also a good place for the PHP stuff...
See these for additional information...
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10230177
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10210686
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10207596
mvhall
04-06-2003, 04:51 PM
Hey Jason, You're a champ.
Cheers matey.
CyanBlue
04-06-2003, 08:12 PM
Show me the result or prize... :D
mvhall
04-06-2003, 08:43 PM
Prize I don't know yet, but result definately. But you would have to be patient :p
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.