TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   host & uri problem - not displaying? (http://www.talkphp.com/absolute-beginners/1298-host-uri-problem-not-displaying.html)

Sam Granger 10-12-2007 12:43 PM

host & uri problem - not displaying?
 
I have the following simple code:
Quote:

<?php
echo $_SERVER[’HTTP_HOST’].$_SERVER[’REQUEST_URI’];
?>
This code doesnt display a thing when I run it - what am I doing wrong? :)

Salathe 10-12-2007 01:02 PM

Run the following and tell us what it says. Also are the quotes just ordinary single quotation marks (') because they don't look like it.
PHP Code:

<?php
print_r
($_SERVER);
?>


Sam Granger 10-12-2007 01:51 PM

Let me try changing the quotes, silly me :)


All times are GMT. The time now is 04:36 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0