My script load a title of url when this load by php_self in a html form.
<?php
$bk_url=$_REQUEST['bk_url'];
$remote_url = $bk_url;
$from_remote_url = implode("", file("".$remote_url));
if(preg_match("/<title>(.+)<\/title>/", $from_remote_url, $regs)) {
} else {
echo "<br> Title empty. Manual insert";
}
?>
When load the php page, are displayed two errors:
Warning: file(http://): failed to open stream: operation failed
and this error:
Warning: implode(): Invalid arguments passed
I have try to find a solution on stackoverflow but not find any solution.
How to fix this two errors? Thanks
$from_remote_url = implode("", file("".$remote_url));- RiggsFollyisset()orempty()- RiggsFolly$_REQUEST['bk_url'])does not exist like on pages first load, thats another error message - RiggsFolly