|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-30 22:14 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 05:00:01 2025 UTC |
File uploading simple does not work correctly for GIF and JPEG images. The files upload, can be moved and saved, but will not display. HTTP_POST_FILES[imagefile][type] is blank no matter which browser is used. NOTE: I note the CERN httpd exception. I am running Apache 1.3.19. Paths OK Permissions OK Image simply will not display. if (is_uploaded_file($imagefile)) { $uploadfilename = "100.jpg" ; $tempfile = $HTTP_POST_FILES['imagefile']['name'] ; move_uploaded_file($imagefile, $HTTP_SERVER_VARS['DOCUMENT_ROOT'] . "/display/" . $uploadfilename) ; //or echo("FILE UPLOAD ERROR") ; echo("New file = " . $HTTP_SERVER_VARS['DOCUMENT_ROOT'] . "/display/" . $uploadfilename . "<BR>") ;