Hello!
how to check if a string exists in a webpage (current webpage)
I have tried this code but it doesn’t work
<?php
$contents = file_get_contents("https://www.mywebsite.com");
$search ="gtag_report_conversion(url)";
if (strpos($contents, $search) === TRUE) {
echo "<script>console.log('existant 99');</script>";
}
?>
Thanks in advance