•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 423,276 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,291 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1014 | Replies: 11 | Solved
![]() |
•
•
Join Date: Dec 2007
Location: Somewhere in Germany
Posts: 53
Reputation:
Rep Power: 1
Solved Threads: 9
[S]Well the warning for mkdir could be a problem. What version of PHP are you running? Can you give me a link to a phpinfo(); function?[/S]
Never mind the above you must be using PHP 4. The recursive parameter came in version 5.
As for the writing of files it is most likely because your host has PHP set in Safe Mode. Sadly this can only be changed in the php.ini and not with an ini_set(); function.
Here's a list of restrictions caused by safe mode that might help you
http://www.php.net/manual/en/feature....functions.php
Now I'm not sure how you can change the ownership of the newly created directory but according to that list the fopen function will still work if the uid is the same for the directory and the currently running script.
Never mind the above you must be using PHP 4. The recursive parameter came in version 5.
As for the writing of files it is most likely because your host has PHP set in Safe Mode. Sadly this can only be changed in the php.ini and not with an ini_set(); function.
Here's a list of restrictions caused by safe mode that might help you
http://www.php.net/manual/en/feature....functions.php
Now I'm not sure how you can change the ownership of the newly created directory but according to that list the fopen function will still work if the uid is the same for the directory and the currently running script.
Last edited by JRSofty : Mar 18th, 2008 at 7:02 am. Reason: Made a change to my discussion
•
•
Join Date: Aug 2005
Location: Cologne, Germany
Posts: 108
Reputation:
Rep Power: 4
Solved Threads: 9
well nevermind, but thanks anyway to everyone - it helped a lot. I have to solve it then with a redirection. Did that already some years ago but I thought it is nicer to do it this way.
Last edited by sDJh : Mar 18th, 2008 at 7:32 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the PHP Forum
- Previous Thread: About Popup Window
- Next Thread: Weird charset problem


Linear Mode