You are here: File Upload Help « PHP Language « IT news, forums, messages
File Upload Help

Posted by Rivera on 08/25/05 01:28

Can anyone tell me why this doesn't work it seems simple enough.
The if($File) is always false and i dont understand why.

file name is index2.php
<html>
<body>
<?PHP
if($File)
{
print ("File Name " . $File_name . "\n");
print ("File Name " . $File_size . "\n");
if(Copy($File,$File)){
print "Uploaded\n";
unlink($File);
}
else print "Cannot Upload file " . $File_name;
}


print("<form action=index2.php method=POST enctype=multipart/form-data>
<p>Pictures:
<input type=File name=File />
<input type=submit value=Send />
</p>
</form>");


?>
</body>
</html>


Thanks a lot!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация