Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 07:22 am EST

Geeklog Forums

upload


carmita

Anonymous
sad
Hello everyone
Help me please
I have a problem, I need to make an upload. I am working in XP with IIS, When I execute my script I have a problem that says that

Permission denied in my PHP file.
The code is:
$target_path = "uploads";

$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);

if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}

?>

The uploads directory has the permisions: read and write in the IIS server,
I don't know how i can fix it errors
If somebody can, help me please.

praying it will work Can someone help me
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Geeklog comes with a nice and handy upload class that you can use (in system/classes/upload.class.php).

And if that question wasn't about Geeklog, you may be better off in a PHP forum elsewhere ...

bye, Dirk
 Quote

All times are EST. The time is now 07:22 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content