RE: [PHP] Maximum URL length (Pretty much 0T)
| From: | Chris W. Parker | Date: | Thu, 04 May 2006 17:47:51 +0000 |
| Subject: | RE: [PHP] Maximum URL length (Pretty much 0T) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-235544@lists.php.net to get a copy of this message | ||
Ryan A <mailto:genphp@yahoo.com>
on Thursday, May 04, 2006 10:38 AM said:
> - Anything else you wish to add pertaining to the
> above.
You could try sending an insanely long value to a script on your page
and see how much of the actual data it received before being truncated
or causing an error.
Open notepad (if on Windows) and hold down the 1 key for about a 2
minutes. Then copy all that and paste it back into notepad. Then put all
that into a page like this: (Oh and you'll need to know exactly how many
1's are in your document.)
<html>
<body>
<?php
$number_of_chars = strlen($_GET['v']);
echo "<p>I received $number_of_chars</p>";
?>
<a href="test.php?v=111111111111111111111111111111111...">click me!</a>
</body>
</html>