newbie, be patient please.

This is a discussion on "newbie, be patient please." within the PHP Forum section. This forum, and the thread "newbie, be patient please. are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 21st, 2007, 12:11
New Member
Join Date: Jan 2007
Location: toon
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
newbie, be patient please.

I am a web builder who's trying out php for the first time. My problem is that if I create a link to a php page the php code is displayed in the browser and not the echo text. If I call the php page via http://localhost/xxx.php the page works fine. I assume the information isn't being parsed.
I'm sure this is an obvious solution that I just can't see, I thought it was a problem with IIS/PHP installation but it seems to be ok.

Help me out please as I really want to get moving with this.

Ta.

Last edited by wilsation; Jan 21st, 2007 at 13:50.
Reply With Quote

  #2 (permalink)  
Old Jan 21st, 2007, 22:42
Junior Member
Join Date: Jan 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Re: newbie, be patient please.

Several possible options. One common reason is that you just have <? instead of <?php at the start of your code, which will be accepted by most webservers but most local servers by default want <?php at the start to denote PHP code.
Reply With Quote
  #3 (permalink)  
Old Jan 21st, 2007, 23:02
New Member
Join Date: Jan 2007
Location: toon
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: newbie, be patient please.

I have been stupid but have now realised my error, I was double clicking directly on the .html file to open it instead of typing http:/... into the browser.
Reply With Quote
Reply

Tags
php browser problem

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello everyone! Another newbie here. Joker Introduce Yourself 6 Aug 19th, 2007 20:52
newbie Janna122003 Introduce Yourself 7 Feb 6th, 2007 17:21
Hi newbie to all! Brooksy Introduce Yourself 3 Dec 7th, 2006 22:24
Newbie toefunky Introduce Yourself 6 Nov 19th, 2006 05:54
help with css for a newbie sing2trees Web Page Design 2 Jan 29th, 2006 16:24


All times are GMT. The time now is 06:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43