PDA

View Full Version : Php Help



Jamlew
29-08-2005, 10:37 PM
I am trying to add a php code to my site for site stats and the stats wont appear, does anybody know why?

the code i am adding is


<?php
$pagefull = $_SERVER['REQUEST_URL'];
$referrer = $_SERVER['HTTP_REFERER'];
$serverport = $_SERVER['SERVER_PORT'];
?>

Mentor
29-08-2005, 10:40 PM
at the moment your just seting varibles try this
<?php
echo $_SERVER['REQUEST_URL'];
echo "<br>";
echo $_SERVER['HTTP_REFERER'];
echo "<br>";
echo $_SERVER['SERVER_PORT'];
?>

Jamlew
29-08-2005, 10:45 PM
thanks, silly xenigma.net gave me wrong code

timROGERS
31-08-2005, 12:12 PM
I know, xenigma just shows you how to set the variables, not how to show them, just do what it says then:

<?php
echo "$variableyouset";
?>

Jamaica-RULEZ!!
01-09-2005, 10:11 AM
Ive done it, did u not read what mentor sed?

Want to hide these adverts? Register an account for free!