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
reading a remote https url
Moderator: General Moderators
I quite like using the snoopy class for things like this, it can be found on sourceforge at http://sourceforge.net/projects/snoopy the built in CURL functions in php can be quite good too, if somewhat complicated to use at times.