Re: Uploading file problem

From: Date: Thu, 06 Mar 2003 19:43:21 +0000
Subject: Re: Uploading file problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138506@lists.php.net to get a copy of this message
On Friday 07 March 2003 03:28, Amanda McComb wrote: > Well, I have a statement that says: > > if (!@copy($photo, $long_path . "speakers/" . $photo_name)) { > echo an error > }else{ > proceed with renaming the file > } The copy() function allows you to specify a destination filename so there is no need for the extra step of renaming the file. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* People usually get what's coming to them ... unless it's been mailed. */

« previous php.general (#138506) next »