Welcome to Geeklog, Anonymous Monday, May 27 2024 @ 03:29 pm EDT

Geeklog Forums



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

Status: offline


Site 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

All times are EDT. The time is now 03:29 pm.

  • 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