Re: Help!
| From: | John Steele | Date: | Mon, 26 Jun 2000 18:55:28 +0000 |
| Subject: | Re: Help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3274@lists.php.net to get a copy of this message | ||
Thanks Zak!
I should have known better. Not sure what I was thinking.
At 6/26/2000 10:42 PM, Zak Greant wrote:
>At 02:17 PM 6/26/00 +0100, John Steele wrote:
>>Ouch, I need this one fast (a live system). This works fine in PHP4:
>>
>> echo "Upload Name: ${"infile".$i."_name"}<br>";
>> echo "Upload Size: ${"infile".$i."_size"}<br>";
>> echo "Upload Type: ${"infile".$i."_type"}<br>";
>
>In PHP3, the parser thinks that you want to end you string as soon as it
>encounters the second quote in the line.
>
>Change your code to this:
>echo "Upload Name:
>".${"infile".$i."_name"}."<br>";
>
>
>>On PHP3.0.7 I get a parse error:
>>Parse error: parse error, expecting
STRING' or
>>'$''
>>
>>This is for a multiple file upload (variable number of files). How do I
>>handle this in PHP3?
>
>HTH,
>
>
>Zak Greant
>Creative Director
>Nucleus Information Service Inc.
>
>"A camel is a horse designed by a committee."
>- Alex Issigonis (Designer of the Mini)
--
/* SteeleSoft Consulting John Steele - Systems Analyst/Programmer
* We also walk dogs... jsteele@writeme.com
* http://www.gamecomputer.com/ssc/
*/