icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » mkdir() and chdir()

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old July 7th, 2008, 9:25 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Nov 2005
5 posts
Gave thanks: 1
Thanked 0 times
mkdir() and chdir()

Hi

When using the mkdir() and chdir() functions I am receiving a 500 Internal server Error. The functions work offline using the Apache Friends installation. I have changed the directory folder properties where I wish to mkdir() to 777. Does anyone have any idea why they are causing an error online.

Tony
tjinman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 7th, 2008, 12:11 PM   #2 (permalink)
He shoots.. He scores!
Super #1
 
puckchaser's Avatar
 
Joined in Feb 2007
Lives in A room with no windows.
Hosted on SH110
1,448 posts
Gave thanks: 46
Thanked 140 times
You can't use 777 on php running as CGI. Makes it safer.

Try using 755 and you should be good to go.
__________________
SH110
puckchaser is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks puckchaser for this great post!
tjinman (July 8th, 2008)
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On