Jump to content

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


tbarbedo

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.