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.
|
|
|
|
|
![]() |
||
newbie, be patient please.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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. |
|
|
|
|||
|
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.
|
|
|||
|
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.
|
![]() |
| Tags |
| php browser problem |
| Thread Tools | |
|
|
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 |