Jump to content

[SOLVED] Help! Code error is stumping me!


Recommended Posts

i have a code that is SUPPOSED to check if a certain META tag is in the header of a webpage.... and guess what? it saying the meta tag isnt found!! look, heres the code:

 

<?php

$meta_tag="<META name=zwm-verifyDomain content=" . $url_token . ">";

$file = "http://" . $_GET[verify];

$string = htmlentities(file_get_contents($file));

if(preg_match('/$meta_tag/i',$string)){
echo "found string";
}else{
echo "string not found";
}
?>

 

and here is the value of $meta_tag when echoed out:

<META name=zwm-verifyDomain content=2hcal6bwu495bdazs8nlm2lpk2q92q3e7ko67g5q3ewscp7cx9pniviehrz1v9qeg9ycrz>

any ideas !?!?!

Link to comment
https://forums.phpfreaks.com/topic/49927-solved-help-code-error-is-stumping-me/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.