Re: copy() ??

From: Date: Wed, 31 Jan 2001 21:09:27 +0000
Subject: Re: copy() ??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37536@lists.php.net to get a copy of this message
yes, put the whole path in the quotes, ie: copy($userfile_name, "C:/full/path/to/imgs/artiker/$userfile"); Hope that works --- Fredrik Arild Takle <ftakle@online.no> wrote: > 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 > fredrik@takle.net > > __________________________________________________ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/

« previous php.general (#37536) next »