Jump to content

[SOLVED] simple problem with mkdir....please help me!!


Recommended Posts

Just trying to create a standard directory with PHP..

 

<?php

if(mkdir("path/to/my/dir")) {

echo "dir created!";

} else {

die("error!");

}

?>

 

Getting the following error message...

 

Warning: mkdir() [function.mkdir]: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\makedir.php on line 2

 

Can someone please help me?? I can't figure this out...Thanks in advance!!

I figured that's what he mean but I tried replacing 'path/to/dir' with 'path\to\dir' and I get an 'Invalid Argument' error so I thought maybe he meant something else...

 

Can you give me any ideas on how to correct this problem I am having?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.