server.
It's just curious that it stopped working one day.
Thanks anyway !
Karl
Date: Thu, 5 Mar 2009 21:01:27 +0800
From: sore...@gmail.com
To: a...@ashleysheridan.co.uk; sadness...@hotmail.com
CC: php-general@lists.php.net
Subject: Re: Re: [PHP] $_FILES empty, trouble with uploading
yes,I agree with Ash ,you can test it on a local testing server or the other
server.
if it work ,then you can sure it's environment problem.
2009-03-05
zhoo
发件人: Ashley Sheridan
发送时间: 2009-03-05 04:10:02
收件人: Karl St-Jacques
抄送: php-general
主题: Re: [PHP] $_FILES empty, trouble
Hello people.
I have some trouble with an upload script. It was working until the last 2
weeks.
Whenever I tried to upload a file to a remote server, the $_FILES array is
empty. I print global at start of the script there's nothing.
Here's the form
form
On Wed, 2009-03-04 at 09:02 -0500, Karl St-Jacques wrote:
Hello people.
I have some trouble with an upload script. It was working until the last 2
weeks.
Whenever I tried to upload a file to a remote server, the $_FILES array is
empty. I print global at start of the script there's
On Sat, February 17, 2007 8:19 pm, Skip Evans wrote:
I get the feeling from not finding an argument for
the path on the client's machine for the complete
path of a file in $_FILES that it might not be
available for security reasons?
Yes.
It's none of your business where I store the file on
Hi,
No solution from php...
If you find you way to read form file tag path via js you ma send this value
to server and may store sql then send back.
Aslo I'm not sure to sending back those stored info to client solve the
problem.
If you really want to do this.
You have to write your own
Skip Evans wrote:
Hey all,
I get the feeling from not finding an argument for the path on the
client's machine for the complete path of a file in $_FILES that it
might not be available for security reasons?
The reason I am interested in this is to restore the value of a input
type='file'
Hey all,
I get the feeling from not finding an argument for
the path on the client's machine for the complete
path of a file in $_FILES that it might not be
available for security reasons?
The reason I am interested in this is to restore
the value of a input type='file' field in a form if
On 5/31/06, kartikay malhotra [EMAIL PROTECTED] wrote:
However, with Mbuni MMS Gateway (which provides HTTP POST), the above
condition in if loop isn't satisfied. I think $_FILES isn't working. However
the following code works:
?php
$in='/usr/share/wallpapers/alien-night.jpg';
Thanks for your replies.
1. Did you put the enctype=multipart/form-data into the FORM tag?
Ans: I do not have a form! I'm using a gateway utility to upload files
From documentation of Mbuni MMS gateway:
post-url
Response content is obtained as result of sending a HTTP POST request to the
On 5/31/06, kartikay malhotra [EMAIL PROTECTED] wrote:
Thanks for your replies.
1. Did you put the enctype=multipart/form-data into the FORM tag?
Ans: I do not have a form! I'm using a gateway utility to upload files
From documentation of Mbuni MMS gateway:
post-url
Response content is
On 5/31/06, chris smith [EMAIL PROTECTED] wrote:
On 5/31/06, kartikay malhotra [EMAIL PROTECTED] wrote:
2. Have you tried simply saving $_POST['userfile'] to a file?
$save = $_POST['userfile'];
$f=fopen($out,'a');
copy($save, $out);
Files don't go into $_POST - they go into
Hi All,
I'm using Mbuni MMS gateway, which provides me the facility to upload .mms
files.
Now with my little exposure to PHP, to upload files (say from the browser),
I use $_POST, namely:
if($_FILES['userfile']['size'] 0)
{
$fileName = $_FILES['userfile']['name'];
$tmpName =
Did you put the enctype=multipart/form-data into the FORM tag?
What you describe matches not doing that.
On Wed, May 31, 2006 12:25 am, kartikay malhotra wrote:
Hi All,
I'm using Mbuni MMS gateway, which provides me the facility to upload
.mms
files.
Now with my little exposure to PHP,
kartikay malhotra wrote:
Hi All,
I'm using Mbuni MMS gateway, which provides me the facility to upload .mms
files.
Now with my little exposure to PHP, to upload files (say from the browser),
I use $_POST, namely:
if($_FILES['userfile']['size'] 0)
{
$fileName = $_FILES['userfile']['name'];
I found that $_FILES and move_uploaded_file doesn't contain directories name
when I uploaded multiple files/folders. On the unix machine, all I saw are
files as if the tree is being stripped out and the remaining files is placed
together as if there's no folder.
Why is that? I really need this
I've googled the question and found no answer that has fixed my
problem. I also searched this list to try and find the answer to no
avail.
My problem is that after my form submits data to another script the
$_FILES global returns nothing but array() when I try to print_r()
it. I coppied the
ApexEleven wrote:
I've googled the question and found no answer that has fixed my
problem. I also searched this list to try and find the answer to no
avail.
My problem is that after my form submits data to another script the
$_FILES global returns nothing but array() when I try to print_r()
it.
If I pass a $_FILES to an object by value. Does it
create a copy of the actual posted files as well?
In other words if I post a 2MB file to save.php and in
turn pass $_FILES to an object $file-fileis($_FILES);
Does that create 4MB of data in memory?
Thanks
Danny
From: Daniel Guerrier [EMAIL PROTECTED]
If I pass a $_FILES to an object by value. Does it
create a copy of the actual posted files as well?
In other words if I post a 2MB file to save.php and in
turn pass $_FILES to an object $file-fileis($_FILES);
Does that create 4MB of data in memory?
I have three file fields in a form. I need it to upload those three items
or two or one. I can get it to upload one, but not all three, habing
trouble with the for loop and how I get a value of $i.
if(isset($_POST['upload'])){
if (!empty($_FILES['file']['name'])){
$formats =
Didier,
My guess is in your HTML, you have the input(s) named as 'file'..
Because of the way that PHP handles it's POST/GET variables, you will
want to redeclare your input names in your HTML to 'file[]'... This
basically defines that it is an array..
Hope that helps,
Jordan
Didier McGillis
$HTTP_POST_FILES as opposed to $_FILES is older syntax? $HTTP_POST_FILES is still
compliant?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to find some documentation on the $_FILES
array, but on PHP, it's a little confusing. I read the
documentation and the comment from rep_spam@..., but
that wasn't too clear to me either.
I'm aware that when uploading a file named
$uploadedfile, the size, name, etc. get stored in
Hi,
Saturday, December 7, 2002, 2:56:53 AM, you wrote:
MS I'm trying to find some documentation on the $_FILES
MS array, but on PHP, it's a little confusing. I read the
MS documentation and the comment from rep_spam@..., but
MS that wasn't too clear to me either.
MS I'm aware that when uploading
On Saturday 07 December 2002 01:10, Tom Rogers wrote:
If your input is like this:
input type=file name=userfile size=52 /
The array you get would look like this:
$_FILES['userfile']['name'] The original name of the file on the client
machine.
$_FILES['userfile']['type'] The mime type of
Hi,
I hope somebody could help me with a problem I have with the $_FILES
variable.
I'm trying to make a PHP script which could have access to an uploaded
remote file. The piece of HTML is:
html
body
form action=ll.php method=post enctype=multipart/form-data
input
How about just
print_r($_FILES);
Does that return anything?
---John Holmes...
- Original Message -
From: Salvador Ramirez [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Monday, November 04, 2002 3:50 PM
Subject: [PHP] $_FILES
Hi,
I hope somebody could help me
]
Sent: Monday, November 04, 2002 3:50 PM
Subject: [PHP] $_FILES
Hi,
I hope somebody could help me with a problem I have with the $_FILES
variable.
I'm trying to make a PHP script which could have access to an uploaded
remote file. The piece of HTML is:
html
body
Do you have file uploads enabled in php.ini?
---John Holmes...
- Original Message -
From: Salvador Ramirez [EMAIL PROTECTED]
To: 1LT John W. Holmes [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Sent: Monday, November 04, 2002 4:04 PM
Subject: Re: [PHP] $_FILES
On Mon, 4 Nov 2002
-
From: Salvador Ramirez [EMAIL PROTECTED]
To: 1LT John W. Holmes [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Sent: Monday, November 04, 2002 4:04 PM
Subject: Re: [PHP] $_FILES
On Mon, 4 Nov 2002, 1LT John W. Holmes wrote:
How about just
print_r($_FILES);
Does that return
Hi,
I'm doing HTTP file upload but I'm having a problem where $_FILES
['userfile']['error'] is always 0. Even if I press the stop button or
close the broser window where the upload is occuring it's always 0. This
results in truncated files.
Why ? What could be happening ?
Is there any other way
I'm going to approach this question in a different way, in case some
people were put off by the complexity of it yesterday.
For all those who don't know my question from yesterday, I have a form
where I can upload up to 9 files at a time. Unfortunately, only the
first 5 of those files are
Ühel ilusal päeval [16-10-2002 16:48] kirjutas Jason Young:
I'm going to approach this question in a different way, in case some
people were put off by the complexity of it yesterday.
For all those who don't know my question from yesterday, I have a form
where I can upload up to 9 files
IE can only have two concurrent connections open... eg if you have a
http 1.1 connection open for say a ongoing cgi/php call (ping or
traceroute) then you make another call for the same script and then a
further call to the server the last call will just sit there spinning
it's wheeels until
I hadn't thought about that, but it does sound like a possibility.
Although a browser isn't limited to 5 connections at a time. It is
usually set by the user and in my experience defaults to 4 and can be
set as high as 8. Most users (or even programmers) don't know about this
simple setting.
Ühel ilusal päeval [16-10-2002 16:50] kirjutas Jason Young:
Just wanted to let everyone know:
PHP version is 4.2.1
Apache is 1.3.24
Running WindowsXP Pro
Running Windows? Hm. I remember something similar, when I was sysadmin
and I used Windows NT 4.0 Workstation as a file server. The
Hi,
Wednesday, October 16, 2002, 11:49:04 PM, you wrote:
JY I'm going to approach this question in a different way, in case some
JY people were put off by the complexity of it yesterday.
JY For all those who don't know my question from yesterday, I have a form
JY where I can upload up to 9
BEAUTIFUL!
This was the problem... it wasn't that there was a limit of 5 maximum
uploads, it was just that my 'while' statement was only counting as many
fields as the first sub-array for $_FILES.. which is 5.
Tom, thanks a bunch!
-Jason
Tom Rogers wrote:
Hi,
Wednesday, October 16,
For all those who don't know my question from yesterday, I
have a form where I can upload up to 9 files at a time.
Unfortunately, only the first 5 of those files are being
uploaded at any given time.
I haven't specifically checked your program logic but I believe that
this is where
Yeah, this has been worked out already - turns out I was looping on the
file elements themselves (size, name, tmp_name, etc) isntead of the
actual number of files.
Thanks for your reply tho! :)
-J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Please can anyone tell me how to cope with IE6 showing files after browsing
with input type=file
The files are always shown with backslashes.
On the next page $_FILES[file][name] will only have the full
drive\dir\file path if the backslashes are converted manually to forward
slashes.
The
42 matches
Mail list logo