Hi folks,
I'm trying to check the links in an HTML file to make sure that they are site root relative.
Basically I need to read the doc.
$handle = fopen($root_dir.'eflyers/html/file.html',"r");
$data = fread($handle, 8192);
// check links here of $data
fclose($handle);
Any source tag which isn't src='http or src="http or src=http I need to return $fail=1;
e.g. src="/images/... = fail.
Not sure how to start this. What function should I look at?
BTW this is for an eflyer script. 😃