|
Posted by Paul Lautman on 10/09/12 12:00
Jimmy wrote:
> Hi,
>
> I'd to upload a file to a folder :
>
> $upload_dir = "MyFolder/";
>
> if (isset($_POST['action'])) {
> if (!is_dir("$upload_dir"))
> { die ("The directory doesn't exist"); ....
>
> it's ok when I use it!
>
> Now, my windows XP Sp2 has a web server IIS
>
> $upload_dir = "http://localhost/MyFolder/";
>
> and it gives the error : The directory doesn't exist
>
> "MyFolder/" is always in C:\Inetpub\wwwroot
> ie C:\Inetpub\wwwroot\MyFolder
>
> Thank you for showing me how to use
> "myFolder" via http://localhost
http://localhost/MyFolder/ isn't a (local) directory, it's a URL.
Since you have an invocation that works, why do you want to do something
diferent?
Navigation:
[Reply to this message]
|