php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16463 File upload work only locally
Submitted: 2002-04-06 13:31 UTC Modified: 2002-04-06 20:25 UTC
From: alivin70 at hotmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.6 OS: Linux SUSE 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alivin70 at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-04-06 13:31 UTC] alivin70 at hotmail dot com
I made a simple script to upload files but File upload works only locally, i.e. on the same computer where the web server is. 
This is the script:
<?php
if ($HTTP_POST_FILES[upload][tmp_name]!="" ){
	move_uploaded_file($HTTP_POST_FILES[upload][tmp_name],$HTTP_POST_FILES[upload][name]);

}else	echo"File lost!";
	phpinfo();
?>

And this is the html code for the form:
<form action="prendi_file.php" enctype="mutipart/form-data" method="post">
file <input type="file" name="upload" >
<input type="submit" value="send" >
</form>

Uploading a file from the same computer where the web server is everything goes right and the uploaded file is copied in the same directory of the php script.
Connecting from another computer the  $HTTP_POST_FILES variable is not set, as also shown by phpinfo().

Default temporary directory is /tmp and the privileges are ok (777)
I try to disable safe_mode but nothing changed.

Thank you
Vincent Brown

PS my configure line given by phpinfo() is
'./configure' '--prefix=/usr' '--bindir=/usr/bin' '--libdir=/usr/lib' '--with-config-file-path=/etc' '--with-exec-dir=%{libdir}/php/bin' '--with-pgsql=/usr' '--with-mysql=/usr' '--with-gd=yes' '--with-tiff-dir=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-pdflib=/usr' '--with-ldap=yes' '--with-zlib=yes' '--with-bz2' '--with-ttf' '--with-xml=no' '--with-t1lib' '--with-sablot' '--with-readline' '--with-ftp' '--with-ndbm' '--with-gdbm' '--with-mcrypt' '--with-gettext' '--with-mm' '--with-gd=yes' '--with-qtdom=/usr/lib/qt-2.2.1/' '--enable-versioning' '--enable-yp' '--enable-bcmath' '--enable-trans-sid' '--enable-inline-optimization' '--enable-track-vars' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-shmop' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-memory-limit' '--enable-filepro' '--enable-dbase' '--enable-ctype' '--disable-debug' '--enable-force-cgi-redirect' '--enable-discard-path' '--enable-sigchild' '--enable-gd-imgstrttf' '--with-openssl' '--with-swf=./dist/' '--with-apxs=/usr/sbin/apxs' 'i386-suse-linux'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-06 20:25 UTC] sniper@php.net
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 05:01:32 2024 UTC