gloryous666 Posted March 3, 2016 Report Posted March 3, 2016 Am nevoie de un programator PHP care imi poate face un sistem functionand in felul urmator: Exista un cod html care apare doar la anumite tari (gen US,UK) iar la celelalte nu apare nimic in acel loc, e ca si cum n-ar exista nimic. Contact Y!M: gloryous2013 Quote
middleftw Posted March 3, 2016 Report Posted March 3, 2016 Te pot ajuta eu.De ce buget dispui ? Quote
gloryous666 Posted March 3, 2016 Author Report Posted March 3, 2016 14 minutes ago, middleftw said: Te pot ajuta eu.De ce buget dispui ? Ti-am dat PM. Quote
Church Posted March 3, 2016 Report Posted March 3, 2016 <?php $ip = $_SERVER['REMOTE_ADDR']; $query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ip)); if($query['regionName'] == 'England') { echo ' <b>you are from England</b> '; } else { echo '<b>you are from somewhere else</b>'; } ?> Se poate dezvolta foarte usor.. 2 Quote
gloryous666 Posted March 3, 2016 Author Report Posted March 3, 2016 48 minutes ago, Church said: <?php $ip = $_SERVER['REMOTE_ADDR']; $query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ip)); if($query['regionName'] == 'England') { echo ' <b>you are from England</b> '; } else { echo '<b>you are from somewhere else</b>'; } ?> Se poate dezvolta foarte usor.. Am adaugat Romania in loc de England si scrie "you are from somewhere else"..... Quote
Church Posted March 3, 2016 Report Posted March 3, 2016 <?php $ip = $_SERVER['REMOTE_ADDR']; $query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ip)); if($query['country'] == 'Romania') { echo ' <b>you are from England</b> '; } else { echo '<b>you are from somewhere else</b>'; } ?> Quote
DrMengele Posted March 6, 2016 Report Posted March 6, 2016 Daca faci plata prin btc te pot ajuta eu. Quote