User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Dec 2007
Location: Somewhere in Germany
Posts: 53
Reputation: JRSofty is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 9
JRSofty's Avatar
JRSofty JRSofty is offline Offline
Junior Poster in Training

Re: folders made with mkdir cannot be accessed

  #11  
Mar 18th, 2008
[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.
Last edited by JRSofty : Mar 18th, 2008 at 7:02 am. Reason: Made a change to my discussion
Reply With Quote  
Join Date: Aug 2005
Location: Cologne, Germany
Posts: 108
Reputation: sDJh is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 9
sDJh sDJh is offline Offline
Junior Poster

Re: folders made with mkdir cannot be accessed

  #12  
Mar 18th, 2008
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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 10:23 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC