Hi,
I have a couple of great scripts that upload files or unlink them on my websites, great for adding photos, pdfs etc. Always on a Linux / Apache server.
A client of mine now is on a Windows server, and its been a nightmare trying to work it out.
They are running Microsoft-IIS/6.0,
and the full path is: e:\inetpub\esvc001082\admin\phpinfo.php
My errors range from not being able to find the file / dir, to permission errors. I have done plenty of reading, but nothing seems to have fixed it. Remind me to never compromise on using a Windows server again.
Some paths I have tried:
$upload_dir="E://inetpub//esvc001082//test//";
$upload_dir="e:/inetpub/esvc001082/test/";
$upload_dir="e:\inetpub\esvc001082\test\";
$upload_dir="./inetpub/esvc001082/test/";
Ok, my script looks like:
if ($upload_file["name"]!="") {
copy("$upload_file", $upload_dir . $upload_file["name"])
or die("Couldn't upload the image '" . $upload_file["name"] ."'...");
} else {
die("Please choose an image before uploading...");
}
Any ideas?
Thanks guys,
yari