#31985 [Opn->Fbk]: Uploading on Windows

From: Date: Tue, 15 Feb 2005 14:33:44 +0000
Subject: #31985 [Opn->Fbk]: Uploading on Windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74125@lists.php.net to get a copy of this message
 ID:               31985
 Updated by:       derick@php.net
 Reported By:      mshuffle at bournemouth dot ac dot uk
-Status:           Open
+Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: redhat linux server
 PHP Version:      Irrelevant
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


Previous Comments:
------------------------------------------------------------------------

[2005-02-15 15:20:08] mshuffle at bournemouth dot ac dot uk

Description:
------------
My Web Host is running PHP 4.3.11-dev on redhat linux. 
When windows users try to upload files to the server, it 
takes the full file path C:\fullFilePath\filename.ext.As 
a result the file is not uploaded and therefore isn't 
working.

The code was working on a previous version of PHP. The 
host has just upgraded their version of PHP.

Is this a stable release? Your PHP version drop menu 
doesn't have this version.

Reproduce code:
---------------
if ($error == "") {		
	if (is_uploaded_file($imgtemp)){
			move_uploaded_file($imgtemp,
fusion_basedir."fusion_images/".$imgname);
				chmod(fusion_basedir."fusion_images/".$imgname,0644);
				echo "<center><br>
<img src='".fusion_basedir."fusion_images/$imgname'><br>

Expected result:
----------------
a file uploaded to the server.

Actual result:
--------------
C:\\WINNT\\Profiles\\mshuffle\\Desktop\\street.jpg


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31985&edit=1


Thread (3 messages)

« previous php.bugs (#74125) next »