I created following PHP script that to get a specific world from a HTML page
<?php
$html = file_get_contents('https://www.topsecret.com/');
$start = "It is a scrambled version of";
$end = "- so it will be harder to guess which Inbox Id was used";
$output = getBetween($html,$start,$end);
echo $output;
?>
But after running the script I get following errors
Fatal error: Call to undefined function getBetween() in E:\Programming\Projects\xampp>\htdocs\email.php on line 8
But I can't figure out what is wrong with this line:
line: 8 $output = getBetween($html,$start,$end);
This is the first time I am using this function so I don't know much about it.
looking on the web it looks like you either don't have "getBetween" in your script or it could be typod. I see one version out there that looks like this:
function GetBetween($content,$start,$end){
$r = explode($start, $content);
if (isset($r[1])){
$r = explode($end, $r[1]);
return $r[0];
}
return '';
}
Is this what you are using? (note the capital G on the function name)