I need some help with php code please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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";
}


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux