reading a remote https url
Posted: Mon Oct 03, 2005 6:14 am
How do we read a url remotely using PHP the code i used
$myurl='https://url';
$lines = file($myurl);
foreach ($lines as $line_num => $line) {
echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br />\n";
}
the error generated is "Notice: file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?"
how do I overcome this error
$myurl='https://url';
$lines = file($myurl);
foreach ($lines as $line_num => $line) {
echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br />\n";
}
the error generated is "Notice: file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?"
how do I overcome this error