A cool code


#1

A cool code


<?php
$dd=array(
'Server Address'=>$SERVER['SERVERADDR'],
'Server Name'=>$SERVER['SERVERNAME'],
'Server Software'=>$SERVER['SERVERSOFTWARE'],
'Document Root'=>$SERVER['DOCUMENTROOT'],
'HTTP Host'=>$SERVER['HTTPHOST'],
'Remote Address'=>$SERVER['REMOTEADDR'],
'Remote Port'=>$SERVER['REMOTEPORT'],
'Script File Name'=>$SERVER['SCRIPTFILENAME'],
'Server Admin'=>$SERVER['SERVERADMIN'],
'Serever Port'=>$SERVER['SERVERPORT'],
'Script Name'=>$SERVER['SCRIPTNAME'],
'Request URI'=>$SERVER['REQUESTURI'],
'PHP Self'=>$SERVER['PHPSELF']
);
?>

<?php foreach ($dd as $key=>$value){ ?> <?php } ?>
Name Value
<?php echo $key?> <?php echo $value?>


PHP Free Code



Hello, on HTML create a website and need help understanding elements
#2

Hey Younis,

No one can see your full code, because parts of it are getting stripped out by the forums. If you'd like to share code, please see this post:

and format your code, following his instructions. Thanks!