Thread: php file upload
View Single Post
Old 09-10-2004, 03:31 AM   #1 (permalink)
DragonEye
Contributing Member
 
DragonEye's Avatar
 
Join Date: 10-13-03
Location: Belgium
Posts: 322
iTrader: 0 / 0%
Latest Blog:
None

DragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebody
Send a message via MSN to DragonEye
php file upload

hi,

I am trying to create a script that uploads file to my IIS5 server using PHP
the problem is that I constantly get the error that 'permission is denied' even though i have enabled write in the properties windows of the map in wich i want to copy the file.

Could somebody tell me how to go about it to get permission to the map i want to put the file in?

The code that I'm trying to execute is very simple as this is just a test

PHP Code:
<?php

if(is_uploaded_file($_FILES['file1']['tmp_name']))
{
move_uploaded_file($_FILES['file1']['tmp_name'],$_SERVER['DOCUMENT_ROOT'].'/fotos/');
}
?>
DragonEye is offline   Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links