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

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 obt

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 pr

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: 0*/ ) { $f=fopen($out,'a'); echo "HEL"; cop

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'];

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 t

[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 = $_FILES['userf