Menu

#42 Sanity Checks

Unassigned
open
nobody
2019-04-18
2014-01-05
Seyed
No

Hello,

I wish to request some sanity checks on file_get_html function to check if the remote URL exists and whatnot. Perhaps something like:

$myheaders = get_headers($url);

if (substr($myheaders[0], 9, 3) == '404')
    return false;

can be a place to start.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.