Script Name: is_numeric
Script Description: Very simple script. Finds whether the given variable is numeric. Returns TRUE if 'oo' is a number or a numeric string, FALSE otherwise.
Original Author(s): Railor
Core Version: 2.6.3
Code:
function is_numeric(oo: string): boolean;
begin
if GetURL('http://example.com/numeric.php?n=' + oo) // replace the URL with the position of the PHP Script
= '1' then
begin
Result := true
end else
begin
Result := false
end
end;
Important! You have to turn the safe mode off!
PHP Script:
<?php
if(is_numeric($_GET['n']))
{
echo '1';
}
else
{
echo '0';
}
?>