RE: [PHP] $_FILES empty, trouble with uploading

2009-03-05 Thread Karl St-Jacques
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

Re: Re: [PHP] $_FILES empty, trouble with uploading

2009-03-05 Thread zhoo
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

[PHP] $_FILES empty, trouble with uploading

2009-03-04 Thread Karl St-Jacques
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

Re: [PHP] $_FILES empty, trouble with uploading

2009-03-04 Thread Ashley Sheridan
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

Re: [PHP] $_FILES path on client's machine?

2007-02-20 Thread Richard Lynch
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

Re: [PHP] $_FILES path on client's machine?

2007-02-18 Thread Sancar Saran
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

Re: [PHP] $_FILES path on client's machine?

2007-02-18 Thread Chris
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'

[PHP] $_FILES path on client's machine?

2007-02-17 Thread Skip Evans
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

Re: [PHP] $_FILES doesn't work but $_POST works

2006-05-31 Thread Rabin Vincent
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';

Re: [PHP] $_FILES doesn't work but $_POST works

2006-05-31 Thread kartikay malhotra
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

Re: [PHP] $_FILES doesn't work but $_POST works

2006-05-31 Thread chris smith
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

Re: [PHP] $_FILES doesn't work but $_POST works

2006-05-31 Thread Rabin Vincent
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

[PHP] $_FILES doesn't work but $_POST works

2006-05-30 Thread kartikay malhotra
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 =

Re: [PHP] $_FILES doesn't work but $_POST works

2006-05-30 Thread Richard Lynch
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,

Re: [PHP] $_FILES doesn't work but $_POST works

2006-05-30 Thread Chris
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'];

[PHP] $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Scott Fletcher
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

[PHP] $_FILES Not Populating On File Upload

2004-10-22 Thread ApexEleven
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

Re: [PHP] $_FILES Not Populating On File Upload

2004-10-22 Thread Rick Fletcher
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.

[PHP] $_FILES passed by value

2004-06-03 Thread Daniel Guerrier
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

Re: [PHP] $_FILES passed by value

2004-06-03 Thread John W. Holmes
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?

[PHP] $_FILES help. Counting help

2003-05-27 Thread Didier McGillis
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 =

Re: [PHP] $_FILES help. Counting help

2003-05-27 Thread Jordan S. Jones
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

[PHP] _FILES

2003-03-06 Thread John Taylor-Johnston
$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

[PHP] $_FILES associative array

2002-12-06 Thread Mako Shark
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

Re: [PHP] $_FILES associative array

2002-12-06 Thread Tom Rogers
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

Re: [PHP] $_FILES associative array

2002-12-06 Thread Jason Wong
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

[PHP] $_FILES

2002-11-04 Thread Salvador Ramirez
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

Re: [PHP] $_FILES

2002-11-04 Thread 1LT John W. Holmes
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

Re: [PHP] $_FILES

2002-11-04 Thread Salvador Ramirez
] 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

Re: [PHP] $_FILES

2002-11-04 Thread 1LT John W. Holmes
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

Re: [PHP] $_FILES

2002-11-04 Thread Salvador Ramirez
- 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

[PHP] $_FILES['userfile']['error'] is always 0 ! Why ???

2002-10-29 Thread Jorge . Manuel . Silva
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

[PHP] $_FILES posting limited to 5?

2002-10-16 Thread 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 at a time. Unfortunately, only the first 5 of those files are

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Juhan Kundla
Ü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

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Timothy Hitchens
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

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Brent Baisley
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.

Re: [PHP] $_FILES limited to 5? (Server versions)

2002-10-16 Thread Juhan Kundla
Ü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

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Tom Rogers
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

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Jason Young
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,

RE: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread David Freeman
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

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Jason Young
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:

[PHP] $_FILES, file upoad and backslashes

2002-05-17 Thread BOb Pardoe
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