RE: [PHP] $_FILES empty, trouble with uploading
Thanks to both of you. It seems the problem lies with Apache, actually. I did try the script with my install of lighttpd on the same server, and it goes flawlessly. It's not the first time this apache server give me trouble. So I'll use lighttpd and give one finger to this particular apache 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 with uploading 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 nothing. Here's the form form action=http://random.server.com/video/upload.php; method=post enctype=multipart/form-data input type=hidden name=sessid value=yada input type=hidden name=ugroup value=xfr input type=hidden name=memberid value=25798 input type=hidden name=referrer value=server.com labelTitle:/labelinput type=text name=video_title value=N/A size=20 maxlenght=30 labelDescription:/labelinput type=text name=video_desc value=N/A size=20 maxlenght=255 labelCategory:/label select name=video_category option value=1yada/option option value=5yada2/option /select input type=hidden name=MAX_FILE_SIZE value=209715200 / input name=vid_files type=file size=30 /br / input type=submit name=upload class=sbtn value=Go! / /form So it's a basic form, I do have the enctype. the print_r($GLOBALS) return me [_FILES] = Array ( ) PHP Version 5.2.6file_uploads is On post_max_size 200M upload_max_filesize 200M upload_tmp_dir no value (it use /tmp) the /tmp folder is writable by apache (chmod 777) with 197G of space left. So, obviously, I'm lost as why I can't upload file anymore. Anyone had a similar problem ? What could I do to find/fix the problem ? Is it even related to PHP ? Thanks, Karl _ Share photos with friends on Windows Live Messenger http://go.microsoft.com/?linkid=9650734 Has your php.ini file been changed at all? If the max upload setting and memory settings have been reduced, it will affect uploads. How large is the file you are trying to upload? And lastly, does the script work on a local testing server? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Experience all of the new features, and Reconnect with your life. http://go.microsoft.com/?linkid=9650730
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 with uploading 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 nothing. Here's the form form action=http://random.server.com/video/upload.php; method=post enctype=multipart/form-data input type=hidden name=sessid value=yada input type=hidden name=ugroup value=xfr input type=hidden name=memberid value=25798 input type=hidden name=referrer value=server.com labelTitle:/labelinput type=text name=video_title value=N/A size=20 maxlenght=30 labelDescription:/labelinput type=text name=video_desc value=N/A size=20 maxlenght=255 labelCategory:/label select name=video_category option value=1yada/option option value=5yada2/option /select input type=hidden name=MAX_FILE_SIZE value=209715200 / input name=vid_files type=file size=30 /br / input type=submit name=upload class=sbtn value=Go! / /form So it's a basic form, I do have the enctype. the print_r($GLOBALS) return me [_FILES] = Array ( ) PHP Version 5.2.6file_uploads is On post_max_size 200M upload_max_filesize 200M upload_tmp_dir no value (it use /tmp) the /tmp folder is writable by apache (chmod 777) with 197G of space left. So, obviously, I'm lost as why I can't upload file anymore. Anyone had a similar problem ? What could I do to find/fix the problem ? Is it even related to PHP ? Thanks, Karl _ Share photos with friends on Windows Live Messenger http://go.microsoft.com/?linkid=9650734 Has your php.ini file been changed at all? If the max upload setting and memory settings have been reduced, it will affect uploads. How large is the file you are trying to upload? And lastly, does the script work on a local testing server? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_FILES empty, trouble with uploading
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 action=http://random.server.com/video/upload.php; method=post enctype=multipart/form-data input type=hidden name=sessid value=yada input type=hidden name=ugroup value=xfr input type=hidden name=memberid value=25798 input type=hidden name=referrer value=server.com labelTitle:/labelinput type=text name=video_title value=N/A size=20 maxlenght=30 labelDescription:/labelinput type=text name=video_desc value=N/A size=20 maxlenght=255 labelCategory:/label select name=video_category option value=1yada/option option value=5yada2/option /select input type=hidden name=MAX_FILE_SIZE value=209715200 / input name=vid_files type=file size=30 /br / input type=submit name=upload class=sbtn value=Go! / /form So it's a basic form, I do have the enctype. the print_r($GLOBALS) return me [_FILES] = Array ( ) PHP Version 5.2.6file_uploads is On post_max_size 200M upload_max_filesize 200M upload_tmp_dir no value (it use /tmp) the /tmp folder is writable by apache (chmod 777) with 197G of space left. So, obviously, I'm lost as why I can't upload file anymore. Anyone had a similar problem ? What could I do to find/fix the problem ? Is it even related to PHP ? Thanks, Karl _ Share photos with friends on Windows Live Messenger http://go.microsoft.com/?linkid=9650734
Re: [PHP] $_FILES empty, trouble with uploading
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 nothing. Here's the form form action=http://random.server.com/video/upload.php; method=post enctype=multipart/form-data input type=hidden name=sessid value=yada input type=hidden name=ugroup value=xfr input type=hidden name=memberid value=25798 input type=hidden name=referrer value=server.com labelTitle:/labelinput type=text name=video_title value=N/A size=20 maxlenght=30 labelDescription:/labelinput type=text name=video_desc value=N/A size=20 maxlenght=255 labelCategory:/label select name=video_category option value=1yada/option option value=5yada2/option /select input type=hidden name=MAX_FILE_SIZE value=209715200 / input name=vid_files type=file size=30 /br / input type=submit name=upload class=sbtn value=Go! / /form So it's a basic form, I do have the enctype. the print_r($GLOBALS) return me [_FILES] = Array ( ) PHP Version 5.2.6file_uploads is On post_max_size 200M upload_max_filesize 200M upload_tmp_dir no value (it use /tmp) the /tmp folder is writable by apache (chmod 777) with 197G of space left. So, obviously, I'm lost as why I can't upload file anymore. Anyone had a similar problem ? What could I do to find/fix the problem ? Is it even related to PHP ? Thanks, Karl _ Share photos with friends on Windows Live Messenger http://go.microsoft.com/?linkid=9650734 Has your php.ini file been changed at all? If the max upload setting and memory settings have been reduced, it will affect uploads. How large is the file you are trying to upload? And lastly, does the script work on a local testing server? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES path on client's machine?
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 my hard drive. :-) Sorry. The reason I am interested in this is to restore the value of a input type='file' field in a form if the user has to return to the form for validation reasons. One way this can be handled is the way Squirrel mail does it: Accept the upload on your server in some kind of staging area. Give the user the option of including that file, already uploaded, and/or uploading another. This has an added bonus of not making them upload a dang file just because they mis-typed their email or whatever else failed validation. You then just have to process the files from the staging area to the final resting place after everything passes validation. I'd like to restore the full value so the user does not have to browse the file again. Is there a way to do this? Not the way you are thinking, no. I thought perhaps there might be a $_FILES['image']['path'] value or something. One can see where you would think that, and everybody thinks this at first, until they think about it more, and realize just how much it would reveal about the users' computer and the Privacy Issues it opens up, and then they're like, Ohmigod, how could I have thought that was a Good Idea?! -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES path on client's machine?
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 file browser uploader form via Flash... regards On Sunday 18 February 2007 04:19, 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' field in a form if the user has to return to the form for validation reasons. I'd like to restore the full value so the user does not have to browse the file again. Is there a way to do this? I thought perhaps there might be a $_FILES['image']['path'] value or something. Thanks! -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES path on client's machine?
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' field in a form if the user has to return to the form for validation reasons. I'd like to restore the full value so the user does not have to browse the file again. Nope. Huge security hole ;) I could prefill the form with something like /etc/passwd if you're on a *nix desktop, hide the file input box through css and grab all your details without you knowing it. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_FILES path on client's machine?
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 the user has to return to the form for validation reasons. I'd like to restore the full value so the user does not have to browse the file again. Is there a way to do this? I thought perhaps there might be a $_FILES['image']['path'] value or something. Thanks! -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES doesn't work but $_POST works
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'; $out='/tmp/alien.jpg'; if(isset($_POST['userfile'])/* || $_FILES['userfile']['size'] 0*/ ) { $f=fopen($out,'a'); echo HEL; copy($in, $out); } ? This implies, $_POST works, and a file has been uploaded. I however, do not know how to access it Have you tried simply saving $_POST['userfile'] to a file? Rabin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES doesn't work but $_POST works
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 provided URL. The POST message is *always* encoding (such as that used by a web browser when an HTML form has the submitted using the multipart/form-dataenctype=multipart/form-data parameter set). If http-post-parameters field is given (see below), then the relevant parameters are sent as part of the request. *X-Mbuni* headers are sent as well. http-post-parameters Used in conjunction with post-url. Parameters are provided in the same way as would be provided in an HTTP GET request (e.g. * message=truemyname=testimage=%i*). 2. Have you tried simply saving $_POST['userfile'] to a file? $save = $_POST['userfile']; $f=fopen($out,'a'); copy($save, $out); Nothing is copied. Opened file is empty. Pls suggest KM On 5/31/06, Rabin Vincent [EMAIL PROTECTED] wrote: 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'; $out='/tmp/alien.jpg'; if(isset($_POST['userfile'])/* || $_FILES['userfile']['size'] 0*/ ) { $f=fopen($out,'a'); echo HEL; copy($in, $out); } ? This implies, $_POST works, and a file has been uploaded. I however, do not know how to access it Have you tried simply saving $_POST['userfile'] to a file? Rabin
Re: [PHP] $_FILES doesn't work but $_POST works
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 obtained as result of sending a HTTP POST request to the provided URL. The POST message is *always* encoding (such as that used by a web browser when an HTML form has the submitted using the multipart/form-dataenctype=multipart/form-data parameter set). If http-post-parameters field is given (see below), then the relevant parameters are sent as part of the request. *X-Mbuni* headers are sent as well. http-post-parameters Used in conjunction with post-url. Parameters are provided in the same way as would be provided in an HTTP GET request (e.g. * message=truemyname=testimage=%i*). 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 $_FILES. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES doesn't work but $_POST works
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 $_FILES. Yes, his problem is that the $_FILES is not being set, but there is some value in $_POST['userfile']. Kartikay, I was suggesting that $_POST['userfile'] may contain the file itself, not a filename. What does $_POST['userfile'] contain? Try var_dump()ing it. Rabin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_FILES doesn't work but $_POST works
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['userfile']['tmp_name']; ... ... } 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'; $out='/tmp/alien.jpg'; if(isset($_POST['userfile'])/* || $_FILES['userfile']['size'] 0*/ ) { $f=fopen($out,'a'); echo HEL; copy($in, $out); } ? This implies, $_POST works, and a file has been uploaded. I however, do not know how to access it How to access the uploaded file, determine its size and save its contents in a database? Thanks in advance KM
Re: [PHP] $_FILES doesn't work but $_POST works
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, to upload files (say from the browser), I use $_POST, namely: if($_FILES['userfile']['size'] 0) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; ... ... } 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'; $out='/tmp/alien.jpg'; if(isset($_POST['userfile'])/* || $_FILES['userfile']['size'] 0*/ ) { $f=fopen($out,'a'); echo HEL; copy($in, $out); } ? This implies, $_POST works, and a file has been uploaded. I however, do not know how to access it How to access the uploaded file, determine its size and save its contents in a database? Thanks in advance KM -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES doesn't work but $_POST works
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']; $tmpName = $_FILES['userfile']['tmp_name']; ... ... } That's not $_POST. That's $_FILES. Show us the real code you're using. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_FILES and move_uploaded_file showed no directories 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 to work because the files/folders varies all the time. Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_FILES Not Populating On File Upload
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 scripts directly from one server to another. Here is a sample of my form: [snippet] form action=dbt.php method=post name=form1 id=form1 enctype=multipart/form-data input type=file name=file input type=submit name=Submit value=Upload input name=upload type=hidden id=upload value=true /form [/snippet] All I could find was some posts saying that some php.ini settings needed to be set correctly, and I believe they are on the server I'm trying to run my script on. file_uploads=On max_execution_time=90 max_input_time=-1 memory_limit=8M post_max_size=10M register_globals=On upload_max_filesize=10M upload_tmp_dir=/tmp NOTE: I got all those values off my phpinfo(). I have had this problem before but do not know how it got fixed, any help would be much appreciated, -- Jasper Howard - Database Administration ApexEleven.com 530 559 0107 --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES Not Populating On File Upload
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. [snip] upload_tmp_dir=/tmp Check to make sure the server has permission to write to /tmp. I just took away write permission to my upload_tmp_dir and tested this scenario on my machine, and it behaved the way you're describing. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_FILES passed by value
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 __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES passed by value
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? No. The actual file data is not in the $_FILES array. There is just an element that contains the name of the temporary file, but not the actual data. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_FILES help. Counting help
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 = array('mp3','exe'); if(in_array(strtolower(substr($_FILES['file']['name'],-3)),$formats)) { echo font face=\verdana,arial,helvetica\ size=\2\ color=\#00\bSorry! MP3's and .EXE's are disallowed!/b/font; }else{ //mkdir(upload/ . $_POST['dir'],0777); copy($_FILES['file']['tmp_name'], images/ . $_FILES['file']['name']); unlink($_FILES['file']['tmp_name']); echo font face=\verdana,arial,helvetica\ size=\2\ color=\#00\b.$i. File(s) Uploaded Successfully to b . $_POST['dir'] . /b directory!/b/font; } }else{ echo font face=\verdana,arial,helvetica\ size=\2\ color=\#00\bYou must specify a file to upload/b/fontbr\n; echo font face=\verdana,arial,helvetica\ size=\2\ color=\#00\a href=\javascript:history.back()\ back/a/fontbr\n; exit(); } } $i =$_FILES['file']['name']; is it for ($i=1;$i4;i++) { run code } or am I way off, help please. thanks, _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES help. Counting help
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 wrote: 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 = array('mp3','exe'); if(in_array(strtolower(substr($_FILES['file']['name'],-3)),$formats)) { echo font face=\verdana,arial,helvetica\ size=\2\ color=\#00\bSorry! MP3's and .EXE's are disallowed!/b/font; }else{ //mkdir(upload/ . $_POST['dir'],0777); copy($_FILES['file']['tmp_name'], images/ . $_FILES['file']['name']); unlink($_FILES['file']['tmp_name']); echo font face=\verdana,arial,helvetica\ size=\2\ color=\#00\b.$i. File(s) Uploaded Successfully to b . $_POST['dir'] . /b directory!/b/font; } }else{ echo font face=\verdana,arial,helvetica\ size=\2\ color=\#00\bYou must specify a file to upload/b/fontbr\n; echo font face=\verdana,arial,helvetica\ size=\2\ color=\#00\a href=\javascript:history.back()\ back/a/fontbr\n; exit(); } } $i =$_FILES['file']['name']; is it for ($i=1;$i4;i++) { run code } or am I way off, help please. thanks, _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] _FILES
$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
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 variables called $uploadedfile_size, _name, But when using the $_FILES array, does everything then get stored in $_FILES[uploadedfile], $_FILES[uploadedfile_size], etc...? __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES associative array
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 a file named MS $uploadedfile, the size, name, etc. get stored in MS variables called $uploadedfile_size, _name, But MS when using the $_FILES array, does everything then get MS stored in $_FILES[uploadedfile], MS $_FILES[uploadedfile_size], etc...? 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 the file, if the browser provided this information. An example would be image/gif. $_FILES['userfile']['size'] The size, in bytes, of the uploaded file. $_FILES['userfile']['tmp_name'] The temporary filename of the file in which the uploaded file was stored on the server -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES associative array
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 the file, if the browser provided this information. An example would be image/gif. $_FILES['userfile']['size'] The size, in bytes, of the uploaded file. $_FILES['userfile']['tmp_name'] The temporary filename of the file in which the uploaded file was stored on the server Hmm, just print_r() the damn thing and see what it contains ;-) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* In Nature there are neither rewards nor punishments, there are consequences. -- R.G. Ingersoll */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[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 form action=ll.php method=post enctype=multipart/form-data input name=userfile size=48 type=file input type=submit name=attach value=Addbr /form /body /html and the ll.php script is: ?php printf(file=(%s)br, $_FILES['userfile']['name']); print_r(array_values($_FILES)); phpinfo(); ? but the variable $_FILES is not set at all, because the printf doesn't print the name of the uploaded file nor the second line, the print_r() print anything for that array variable. So the question is: what could be happening that the variable $_FILES is not set? The phpinfo() function returns PHP 4.2.3, and I compiled it with the following configure line: './configure' '--with-mysql' '--with-apxs=/server/www/apache-1.3.26/bin/apxs' '--with-imap' '--with-imap-ssl' '--enable-track-vars' '--enable-dbase' '--with-pgsql=/server/postgresql' over an apache 1.3.26. Any help will be very appreciated. Thanks in advance. ---sram Don't listen to what I say; listen to what I mean! --Feynman Salvador Ramirez FlandesPROFC, Universidad de Concepcion, CHILE http://www.profc.udec.cl/~srammailto:sram;profc.udec.cl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES
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 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 name=userfile size=48 type=file input type=submit name=attach value=Addbr /form /body /html and the ll.php script is: ?php printf(file=(%s)br, $_FILES['userfile']['name']); print_r(array_values($_FILES)); phpinfo(); ? but the variable $_FILES is not set at all, because the printf doesn't print the name of the uploaded file nor the second line, the print_r() print anything for that array variable. So the question is: what could be happening that the variable $_FILES is not set? The phpinfo() function returns PHP 4.2.3, and I compiled it with the following configure line: './configure' '--with-mysql' '--with-apxs=/server/www/apache-1.3.26/bin/apxs' '--with-imap' '--with-imap-ssl' '--enable-track-vars' '--enable-dbase' '--with-pgsql=/server/postgresql' over an apache 1.3.26. Any help will be very appreciated. Thanks in advance. ---sram Don't listen to what I say; listen to what I mean! --Feynman Salvador Ramirez FlandesPROFC, Universidad de Concepcion, CHILE http://www.profc.udec.cl/~srammailto:sram;profc.udec.cl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES
On Mon, 4 Nov 2002, 1LT John W. Holmes wrote: How about just print_r($_FILES); Does that return anything? It just return the same as before, i.e. Array ( ) ---sram ---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 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 name=userfile size=48 type=file input type=submit name=attach value=Addbr /form /body /html and the ll.php script is: ?php printf(file=(%s)br, $_FILES['userfile']['name']); print_r(array_values($_FILES)); phpinfo(); ? but the variable $_FILES is not set at all, because the printf doesn't print the name of the uploaded file nor the second line, the print_r() print anything for that array variable. So the question is: what could be happening that the variable $_FILES is not set? The phpinfo() function returns PHP 4.2.3, and I compiled it with the following configure line: './configure' '--with-mysql' '--with-apxs=/server/www/apache-1.3.26/bin/apxs' '--with-imap' '--with-imap-ssl' '--enable-track-vars' '--enable-dbase' '--with-pgsql=/server/postgresql' over an apache 1.3.26. Any help will be very appreciated. Thanks in advance. ---sram Don't listen to what I say; listen to what I mean! --Feynman Salvador Ramirez FlandesPROFC, Universidad de Concepcion, CHILE http://www.profc.udec.cl/~srammailto:sram;profc.udec.cl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES
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, 1LT John W. Holmes wrote: How about just print_r($_FILES); Does that return anything? It just return the same as before, i.e. Array ( ) ---sram ---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 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 name=userfile size=48 type=file input type=submit name=attach value=Addbr /form /body /html and the ll.php script is: ?php printf(file=(%s)br, $_FILES['userfile']['name']); print_r(array_values($_FILES)); phpinfo(); ? but the variable $_FILES is not set at all, because the printf doesn't print the name of the uploaded file nor the second line, the print_r() print anything for that array variable. So the question is: what could be happening that the variable $_FILES is not set? The phpinfo() function returns PHP 4.2.3, and I compiled it with the following configure line: './configure' '--with-mysql' '--with-apxs=/server/www/apache-1.3.26/bin/apxs' '--with-imap' '--with-imap-ssl' '--enable-track-vars' '--enable-dbase' '--with-pgsql=/server/postgresql' over an apache 1.3.26. Any help will be very appreciated. Thanks in advance. ---sram Don't listen to what I say; listen to what I mean! --Feynman Salvador Ramirez FlandesPROFC, Universidad de Concepcion, CHILE http://www.profc.udec.cl/~srammailto:sram;profc.udec.cl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES
On Mon, 4 Nov 2002, 1LT John W. Holmes wrote: Do you have file uploads enabled in php.ini? No, sorry. I changed that and all worked fine. I wonder why that is not mentioned on the section of uploads of the PHP documentation. Thanks a lot. ---sram ---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, 1LT John W. Holmes wrote: How about just print_r($_FILES); Does that return anything? It just return the same as before, i.e. Array ( ) ---sram ---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 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 name=userfile size=48 type=file input type=submit name=attach value=Addbr /form /body /html and the ll.php script is: ?php printf(file=(%s)br, $_FILES['userfile']['name']); print_r(array_values($_FILES)); phpinfo(); ? but the variable $_FILES is not set at all, because the printf doesn't print the name of the uploaded file nor the second line, the print_r() print anything for that array variable. So the question is: what could be happening that the variable $_FILES is not set? The phpinfo() function returns PHP 4.2.3, and I compiled it with the following configure line: './configure' '--with-mysql' '--with-apxs=/server/www/apache-1.3.26/bin/apxs' '--with-imap' '--with-imap-ssl' '--enable-track-vars' '--enable-dbase' '--with-pgsql=/server/postgresql' over an apache 1.3.26. Any help will be very appreciated. Thanks in advance. ---sram Don't listen to what I say; listen to what I mean! --Feynman Salvador Ramirez FlandesPROFC, Universidad de Concepcion, CHILE http://www.profc.udec.cl/~srammailto:sram;profc.udec.cl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_FILES['userfile']['error'] is always 0 ! Why ???
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 can use to identify truncated files in uploads ? I'm so desperate that I've been looking at content-length... I'm running RH 7.3 with PHP 4.2.2. Thanks in advance, Jorge. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_FILES posting limited to 5?
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 being uploaded at any given time. As a test, I just created a simple form with only input type 'file's, and attempted to find out how many its attempting to parse. It is still only 5. I have posted the full code below so people might be able to try it on their own systems... please let me know what you might find: loop-test.php - ? if (isset($_GET['action'])) $action = $_GET['action']; while(list($key,$val)=each($_POST)) { $$key = $val; } ? html head titleFile Loop Test/title /head body ?php if ($action == add) { $current = 0; while (list($key) = each($_FILES['picname'])) { echo $current; $current++; } } else { // Default ? form enctype=multipart/form-data method=post name=slAdd action=?action=add input type=hidden name=MAX_FILE_SIZE value=1000 input type=submit name=submit_button value=Add brhr table width=70% tr tdinput type=file name=picname[0]/td tdinput type=file name=picname[1]/td tdinput type=file name=picname[2]/td /trtr tdinput type=file name=picname[3]/td tdinput type=file name=picname[4]/td tdinput type=file name=picname[5]/td /trtr tdinput type=file name=picname[6]/td tdinput type=file name=picname[7]/td tdinput type=file name=picname[8]/td /tr /table /form ? } ? /body /html - End Code - Thanks for everyone's time on this! --Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES posting limited to 5?
Ü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 at a time. Unfortunately, only the first 5 of those files are being uploaded at any given time. As a test, I just created a simple form with only input type 'file's, and attempted to find out how many its attempting to parse. It is still only 5. [cut] Doesn't this have something to do with browser being able only to make maximum 5 tcp connections at a time? Perhaps, a stupid idea, though... Juhan -- Vastus: Sest inimene loeb suunaga ülevalt alla. Küsimus: Miks ülalpool vastamine on halb? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES posting limited to 5?
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 on of the others in finished... the same is for downloads using IE ..you can fix this with a reg hack. Timothy Hitchens (HiTCHO) Web Application Analyst and Developer e-mail: [EMAIL PROTECTED] mobile: 0419 521 440 Juhan Kundla wrote: Ü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 at a time. Unfortunately, only the first 5 of those files are being uploaded at any given time. As a test, I just created a simple form with only input type 'file's, and attempted to find out how many its attempting to parse. It is still only 5. [cut] Doesn't this have something to do with browser being able only to make maximum 5 tcp connections at a time? Perhaps, a stupid idea, though... Juhan -- Timothy Hitchens (HiTCHO) Web Application Analyst and Developer e-mail: [EMAIL PROTECTED] mobile: 0419 521 440 - HiTCHO Group - ABN: 85 816 540 110 Web Site: http://www.hitcho.com.au/ Snail Mail: PO Box 101 Arana Hills QLD 4054 Telephone: 07 3351 0951 - Facsimile: 07 3351 0952 IMPORTANT: This email may be the view of the individual and not that of the organisation. The contents of this electronic mail (including attachments) may be privileged and commercially confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this document in error, please advise us by telephone immediately and then delete the document. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES posting limited to 5?
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. It helps when you have a fast pipe (set to 8) or slow pipe (set to 4). So perhaps it does have a hand in setting an upload limit. On Wednesday, October 16, 2002, at 11:03 AM, Juhan Kundla wrote: Doesn't this have something to do with browser being able only to make maximum 5 tcp connections at a time? Perhaps, a stupid idea, though... -- Brent Baisley Systems Architect Landover Associates, Inc. Search Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES limited to 5? (Server versions)
Ü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 workstation release of Windows NT had the limitation of only 5 simultaneous network connections. To allow more connections we had to upgrade to Windows NT Server version. I haven't used Windows quite a long time and perhaps this is irrelevant, but i wouldn't be surprised, if this is another trick Bill uses to loot your wallet. Juhan -- Vastus: Sest inimene loeb suunaga ülevalt alla. Küsimus: Miks ülalpool vastamine on halb? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES posting limited to 5?
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 files at a time. Unfortunately, only the JY first 5 of those files are being uploaded at any given time. JY As a test, I just created a simple form with only input type 'file's, JY and attempted to find out how many its attempting to parse. It is still JY only 5. JY I have posted the full code below so people might be able to try it on JY their own systems... please let me know what you might find: picname has 5 sub arrays called: name() type() tmp_name() error() size() You need to loop through those sub arrays like: while (list($key) = each($_FILES['picname'])) { echo $key ; while(list($key2,$val2) = each($_FILES['picname'][$key])){ echo [$key2] $val2 ; } echo 'br'; } print_r($_FILES) will show you all. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES posting limited to 5?
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, 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 files at a time. Unfortunately, only the JY first 5 of those files are being uploaded at any given time. JY As a test, I just created a simple form with only input type 'file's, JY and attempted to find out how many its attempting to parse. It is still JY only 5. JY I have posted the full code below so people might be able to try it on JY their own systems... please let me know what you might find: picname has 5 sub arrays called: name() type() tmp_name() error() size() You need to loop through those sub arrays like: while (list($key) = each($_FILES['picname'])) { echo $key ; while(list($key2,$val2) = each($_FILES['picname'][$key])){ echo [$key2] $val2 ; } echo ' '; } print_r($_FILES) will show you all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] $_FILES posting limited to 5?
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 your problem is. I created a similar php script using your included sample as a base and it quite happily reports a file uploaded for each of the nine form elements. -8-Working Code-8- html head titleFile Loop Test/title /head body ?PHP if (isset($submit) !empty($submit)) { for ($i = 0; $i sizeof($upfile); $i++) { echo File $i: ; print_r($upfile[$i]); echo br; } } ? form enctype=multipart/form-data method=post name=slAdd action=loop.php input type=hidden name=MAX_FILE_SIZE value=1000 input type=submit name=submit value=Add br hr table width=70% tr tdinput type=file name=upfile[0]/td tdinput type=file name=upfile[1]/td tdinput type=file name=upfile[2]/td /trtr tdinput type=file name=upfile[3]/td tdinput type=file name=upfile[4]/td tdinput type=file name=upfile[5]/td /trtr tdinput type=file name=upfile[6]/td tdinput type=file name=upfile[7]/td tdinput type=file name=upfile[8]/td /tr /table /form /body /html -8-Code Snip Ends-8- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_FILES posting limited to 5?
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: http://www.php.net/unsub.php
[PHP] $_FILES, file upoad and backslashes
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 input field is read only as far a javascript is concerned, so I cannot do anything there. Does anyone have any ideas please. Thanks BOb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php