I want to check the IP input if it is inside any of the 3 or 4 array list I put the message, I had it like that but it does not work.
$laptop=(1.1.1.1,2.2.2.2,3.3.3.3)
$pcescritorio=(1.1.1.2,2.2.2.3,3.3.3.4)
switch ($_SERVER['REMOTE_ADDR']) {
case "laptop":
readfile("laptop.pdf");
break;
case "pcescritorio":
readfile("work.pdf");
break;
default:
echo "No Encontrado";
}
The idea is that between the check the IP with the IP list above and send you automatically the type of file according to the type of PC you have, the IP may vary and be different that I will put them ponerselos , but I can not get it to work for me