Re: file upload error

From: Date: Sat, 09 Dec 2000 04:32:37 +0000
Subject: Re: file upload error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29458@lists.php.net to get a copy of this message
Is images a directory? You need to provide a full path to copy, I think... ----- Original Message ----- From: "Ramiro Radjiman" <php@rrwebdesign.nl> Newsgroups: php.general Sent: Friday, December 08, 2000 3:06 PM Subject: [PHP] file upload error > I'm doing this > > function is_uploaded_file($filename) > { > if (!$tmp_file = get_cfg_var('upload_tmp_dir')) > { > $tmp_file = dirname(tempnam('', '')); > } > $tmp_file .= '/' . basename($filename); > return (ereg_replace('/+', '/', $tmp_file) == $filename); > } > > > > > if (is_uploaded_file($userfile)) > { > $path ="opt/guide/www.leegstrabosma.nl/HTML/images"; > copy($userfile,$path); > } > > Then this error occuors > > Warning: Unable to create 'opt/guide/www.leegstrabosma.nl/HTML/images': No > such file or directory in > /opt/guide/www.leegstrabosma.nl/HTML/woninginvoer.php3 on line 60 > > > Hope someone can help me. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#29458) next »