Hi Guys!
Ok, ok.. I am new to PHP stuff... but something is wrong here! Check this code out: (I Grabbed it from a tutorial just to make sure that I were not crazy!)
--- BEGIN OF CODE ---
z<?
$str = "The cow jumped over the moon, giggling madly as a purple pumpkin
with fat ears exploded into confetti";
$count = 0;
$size = 11;
while (($size$count) < strlen($str))
{
$temp = substr($str, ($size$count), $size);
$count++;
echo "$temp \n";
}
?>
--- END OF CODE ---
It should return me, something like:
The cow jum
ped over th
e moon, gig
gling madly
as a purpl
e pumpkin w
ith fat ear
s exploded
into confet
ti
But it returns:
The cow jum ped over th e moon, gig gling madly as a purpl e pumpkin with fat ea rs exploded into confe tti
In a single line! I am using ISS5 (XP) and Php 4.11. I already tried the Php 4.05 and the samething occurs. (I tried it with apache and xitami too).
Want to see something fun?
C:\webroot>..\php\php.exe teste.php
X-Powered-By: PHP/4.1.1
Content-type: text/html
The cow jum
ped over th
e moon, gig
gling madly
as a purpl
e pumpkin
with fat ea
rs exploded
into confe
tti
WHEN I USE THE EXEC ITSELF... it just WORKS!
Sorry for the long post, but I like to explain all my moves.
Thank you all!
Regards,
Emannuel Silva.