Re: [PHP-WIN] Unable to upload.. :(

2002-11-26 Thread toby z
thnx yet again pal . > No probs buddy. > Perhaps you have an IM program loaded? m do u mean instant messenger thinggy ya ive got it on my machine is THAT hinderrin my file upload sumhow :S 2ndly . move_uploaded_file() aint workin either . i keep gettin the same

Re: [PHP-WIN] Unable to upload.. :(

2002-11-24 Thread Dash McElroy
Toby, Your ISP may be using 'safe_mode'. Try the move_uploaded_file function() instead of copy(). This is taken off php.net/move_uploaded_file: Note: move_uploaded_file() is not affected by the normal safe-mode UID-restrictions. This is not unsafe because move_uploaded_file() only operates

[PHP-WIN] Unable to upload.. :(

2002-11-24 Thread toby z
Hi all I am trying to upload a file. It works fine on my local Apache, but gives me "Permission denied to create file" error on my online host.. Any clue??? $file = $_FILES['userfile']['tmp_name']; if (is_uploaded_file($file)) print_r("Copying ".$file); if (copy($file, "./files/". $_FILES