Current location: Hot Scripts Forums » Programming Languages » PHP » PHP... Is my web host the problem?


PHP... Is my web host the problem?

Reply
  #1 (permalink)  
Old 01-18-10, 08:13 PM
loll80 loll80 is offline
Newbie Coder
 
Join Date: Jan 2010
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
PHP... Is my web host the problem?

I am trying to go through some simple php tutorials for begginers but when I load a php document in my browser I either get a blank page in the browser or dreamweaver opens the php and gives me a blank page!

An example of one of the turorials I tried was to save the below code into a file named 'Test.php':

Code:
<HTML><BODY>
<? echo date("M-d-Y");
echo "<P>";
echo "Your IP Address is " . $_SERVER['REMOTE_ADDR'];
?>
</BODY></HTML>
I then uploaded Test.php to my site (National Vehicle Movements - Home) but when loading the page http://www.n-v-m.co.uk/Test.php into my browser I just get a blank screen!!

My web host is 123-reg | Domain names | Domain name registration and is supposed to be compatible with PHP5 ... Will the problem be with my web host or could it be something else I am doing wrong?

Paul
Reply With Quote
  #2 (permalink)  
Old 01-18-10, 08:17 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Use <?php instead of <?
Reply With Quote
  #3 (permalink)  
Old 01-18-10, 08:26 PM
loll80 loll80 is offline
Newbie Coder
 
Join Date: Jan 2010
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Thanks for the reply but I have tried it and it has made no difference.. still just a blank screen!
Reply With Quote
  #4 (permalink)  
Old 01-18-10, 08:29 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Which plan?

Looks like you need the 'Plus' plan to get PHP.
Reply With Quote
The Following User Says Thank You to wirehopper For This Useful Post:
loll80 (01-18-10)
  #5 (permalink)  
Old 01-18-10, 08:35 PM
loll80 loll80 is offline
Newbie Coder
 
Join Date: Jan 2010
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
lol yeah that'll be it then! doh!

cheers.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP or PHP which is better? nepala The Lounge 9 07-14-10 05:48 AM
WEB HOSTING - $4.99/MONTH For 1GB HD & 25GB BW! CPanel, PHP, MySQL & MORE! IncognitoNet General Advertisements 0 09-22-05 09:37 AM
PHP Downside--Solutions? Amulet PHP 10 07-15-05 08:26 AM
Do PHP can make a user base update web site whitout Database? explorer1979 PHP 5 04-23-05 05:08 AM
RESELLER WEB HOSTING - $9.99/MONTH For 4GB HD & 30GB BW! CPanel, PHP, MySQL & MORE! IncognitoNet General Advertisements 0 11-25-04 02:09 AM


All times are GMT -5. The time now is 08:06 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.