I'm trying to upload i file through a webpage...

--> add.php3
<FORM method="post" action="do_add.php3">
<input type="file" size=40 name="userfile">
<INPUT type="submit" name="pub" value="Publiser">
</form>


--> do_add.php3
copy($userfile, "/imgs/artikler/test.jpg"); 
unlink($userfile);

--> ERROR msg..:
Warning: Unable to create '/imgs/artikler/test.jpg': No such file or directory in 
c:/programfiler/apache group/apache/htdocs/do_add.php3 on line 22

--> php.ini
upload_tmp_dir = c:\programfiler\apache group\apache\htdocs\temp\

Note: I'm currently running the webserver on Win98 (I know, it sucks!)

Any tips anyone? 

---------------------------------
Fredrik A. Takle
Bergen, Norway
[EMAIL PROTECTED]

Reply via email to