Re: I need help with some php code please

From: Date: Fri, 07 Mar 2003 21:21:03 +0000
Subject: Re: I need help with some php code please
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-10312@lists.php.net to get a copy of this message
When you to do the image from php, you put a name to file? if is this, not put name file to out from php, call directly to page php, so not make a file temporal, generality when is use a file temporal to imagen in php, not update inmediate the change. look. Frank.- ps: to more information, write me in spanish and I help you more. "Stephen K Knight" <stephen@fmwebschool.com> escribió en el mensaje news:002d01c2e46d$65623ba0$8cfafea9@stephen... > I am trying to upload an image to my webserver. This is the PHP page that > is called from my html page. I am trying to upload the image to my folder > called "logos" the direct link would be: C:\Program Files\Apache > Group\Apache2\htdocs\logos I am not sure what I am doing wrong in the code > below. Can someone please look and help me so that I can upload the image > to that folder. > > Thank you! > In Kindness > Stephen K Knight > > > <? > > if(!empty($userfile)) > { > $abpath = "/logos/" . $newname; > > echo "FileUpload2.php"; > echo $username; > echo $newname; > echo $abpath; > > //copy the file > // copy($userfile, "$abpath"); > > //destroy the uploaded file > // unlink($userfile); > > // write javascript to store the newname > // echo "<script language='javascript'>\n"; > // echo "newname = '" . $newname . "';\n"; > // echo "</script>\n"; > } >

« previous php.install (#10312) next »