Re: Cannot get this one correct and working, though simple!
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Cannot get this one correct and working, though simple!

From: Oli Filth <catch@olifilth.co.uk>
Date: Fri Dec 30 2005 - 17:40:33 CET

comp.lang.php said the following on 30/12/2005 16:16:
> Jofio wrote:
>
>>
>>But my problem is that part of the code ...<img src='thumb$i.jpg'> ...
>>
>
> The problem lies in the way you embedded $i. PHP thinks you have a
> variable literally called "$i.jpg" since a period is a valid implied
> variable name character.
>

Umm, no... Who told you that?

The problem is the use of single quotes rather than double quotes.

-- 
Oli
Received on Tue Jan 3 03:50:35 2006