Hi again,
Kindly save the below code as t.php and run it in as
many browsers/servers you can, then click on each of
the links and tell me if you run into any problems.
(Basically, I am checking to see how many characters
we can have in a URL that the server will accept and
process, the script checks 200-1000 chars.. add more
if you want to)
Thanks!
Ryan
<?php
if(isset($_GET['a'])){$a=strlen($_GET['a']);echo $a;}
else{
$b="";$c="";$d="";$e="";$f="";
for($i=0;$i<200;$i++) { $b.="r"; }
for($i=0;$i<400;$i++) { $c.="r"; }
for($i=0;$i<500;$i++) { $d.="r"; }
for($i=0;$i<800;$i++) { $e.="r"; }
for($i=0;$i<1000;$i++) { $f.="r"; }
echo "b <a href='t.php?a=".$b."'>click</a><br>c <a
href='t.php?a=".$c."'>click</a><br>d <a
href='t.php?a=".$d."'>click</a><br>e <a
href='t.php?a=".$e."'>click</a><br>f <a
href='t.php?a=".$f."'>click</a><br>";
}
?>
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
-----
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=bXVzaWNndTc%3D
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php