Hi folks,
well, I have a really dumb question:
I have the following script at http://www.tisys.org/misc/test.php:
<?php
echo $_GET['license'];
?>
Now I call it like this:
http://www.tisys.org/misc/test.php?
license=0701770160811371731660412452242420381052542100071831272071031621
17160180165221170166096217228128
And in fact, it echos the whole, long GET-string!
Now i have the following script a tttp://www.tisys.org/misc/
ol_license.php:
<?php
if ($_GET['license'] ==
"07017701608113717316604124522424203810525421000718312720710316211716018
0165221170166096217228128")
{
echo '1';
} else {
echo '0';
}
?>
I launch it like:
http://www.tisys.org/misc/ol_license.php?
license=0701770160811371731660412452242420381052542100071831272071031621
17160180165221170166096217228128
And it returns a 1, which means: The strings match. Now I call it like
http://www.tisys.org/misc/ol_license.php?
license=1701770160811371731660412452242420381052542100071831272071031621
17160180165221170166096217228128
that is, I have changed the first number of my GET-String from a 0 to
a 1 and indeed, the script returns 0, meaning: The scripts don't
match. *HOWEVER*, no I call the script like:
http://www.tisys.org/misc/test.php?
license=0701770160811371731660412452242420381052542100071831272071031621
17160180165221170166096217228129
that is, I have changed the last number of the GET-String from an 8
to a 9, and interestingly, it returns 1 this time, which means the
strings do match, which, however, they don't.
My guess is that PHP only sees / compares the strings up to a certain
position. Is this possible? And if so, is there any way around this,
so that my whole string is seen?
Greetings and thanks in advance,
Nils
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php