werwiewas29
Mitglied
Frage: gibt es auch eine Funktion mit der man über ne URL ($url) cookies abfragen kann.. mit preg_match , mit dem ich vorher gearbeitet habe. funktioniert das ned ganz
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<?php
$url ="http://www.tutorials.de/";
$keyword ="";
$content = file_get_contents($url);
#preg_match_all('/cookie/siU',$content,$regs);
#print_r ($regs);
$_array = str_split($content );
#print_r ($_array);
#$cookie = isset($_array['cookie'])
#$cookie = array_key_exists('cookie', $_array);
#echo $cookie;
if (isset($_array['cookie'])) {
echo "Die Variable ist gesetzt, also wird etwas ausgegeben.";
}
else { print " nicht gesetzt";}
?>