Current location: Hot Scripts Forums » Programming Languages » PHP » Error help! Php MkDir


Error help! Php MkDir

Reply
  #1 (permalink)  
Old 06-26-09, 04:36 AM
edh448 edh448 is offline
New Member
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hazard Error help! Php MkDir

Im trying to have my server make a directory for members when they join so they can upload photos mp3s and etc. I got a code but everytime I test out my site its state:
error function mkdir() no file or directory in home/mysite/dir...

why is it doing that? I need some help expert PHP programmers. I just want to fix this problem and get my site on the web. Plase help me by providing some advice.

heres the code:
mkdir("c:\\home\\dir1\\dir1")
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-26-09, 04:40 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
Try it this way:
PHP Code:

mkdir('dir1/dir2'0755true); 

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks

Tags
error, mkdir, mysql, php


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 11:17 AM
help with error messages.. please APuppyDog PHP 2 10-06-06 12:09 AM
PHP Downside--Solutions? Amulet PHP 10 07-15-05 09:26 AM


All times are GMT -5. The time now is 12:13 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.