I am trying to run the pagerank script that I found on http://www.getrank.org/pagerank-script/. But I get an error message when I try it. Error message below.
is this a legit php code?
...
function _strord($string){
for($i=0;$i $result[$i] = ord($string{$i});
return $result;
}
...
I get this error on the line where the for statement starts.
Parse error: syntax error, unexpected T_VARIABLE, expecting ';' in /home/Desktop/test/pagerank-checker.php on line 73
Thanks.
If you look at the source code of what’s written on that page you’ll see:
The code has not been properly escaped, so the browser treats the text starting
<strlenas the start of an HTML tag, and misses out some vital code…Without the mark up it reads:
EDIT a cleaner implementation is this: