×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Gábor Papp
Added: Mar 30, 2019 5:30 AM
Views: 3804
Tags: no tags
  1. if ($_SERVER['REMOTE_ADDR']=='85.66.102.98') {
  2.     echo 'szerver IP cim: <strong>'.$_SERVER['SERVER_ADDR'].'</strong><br />';
  3.     echo 'gyoker konyvtar utvonala: <strong>'.$_SERVER['DOCUMENT_ROOT'].'</strong><br />';
  4.     print('<hr /><pre>');print_r($_SERVER);print('</pre>');
  5.     phpinfo();
  6.     exit;
  7. }