Bug #16463 Updated: File upload work only locally
| From: | sniper@php.net | Date: | Sun, 07 Apr 2002 01:25:26 +0000 |
| Subject: | Bug #16463 Updated: File upload work only locally | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4236@lists.php.net to get a copy of this message | ||
ID: 16463
Updated by: sniper@php.net
Reported By: alivin70@hotmail.com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux SUSE 7.2
PHP Version: 4.0.6
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2002-04-06 13:31:34] alivin70@hotmail.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'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16463&edit=1