Welcome to Geeklog, Anonymous Thursday, November 14 2024 @ 01:23 pm EST
Geeklog Forums
upload
carmita
Anonymous
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.
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.
11
12
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
And if that question wasn't about Geeklog, you may be better off in a PHP forum elsewhere ...
bye, Dirk
13
13
Quote
All times are EST. The time is now 01:23 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