PHP script not running on browser
Posted by: Sammygreat (---.220.69.38.vgccl.net)
Date: August 01, 2012 04:57PM

Hi Guys, kindly help, my system crashed, i had to reinstall my wampserver, everything is workin fine except that when i run my php scripts saved in www folder, it runs but does not display out, Sample code.

<HTML>
<HEAD>
<TITLE> MY FIRST PHP Page </TITLE>
</HEAD>
<BODY>
<? echo " Hello World ";?>
</BODY>
</HTML>

it does not echo Hello World but the Title My FIRST PHP Page displays on title bar of browser
Wampserver is runnin
myphpadmin is opening

Options: ReplyQuote
Re: PHP script not running on browser
Posted by: stevenmartin99 (Moderator)
Date: August 01, 2012 05:02PM

use <?php not <?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: PHP script not running on browser
Posted by: Sammygreat (---.220.69.38.vgccl.net)
Date: August 01, 2012 05:10PM

Hi, thanks Stev for your quick response, please how do i get the <? you typed, on the keyboard, i want to see if there is difference with the keys i pressed

Options: ReplyQuote
Re: PHP script not running on browser
Posted by: stevenmartin99 (Moderator)
Date: August 01, 2012 05:14PM

smiling smiley

use
 <?php

do not use

 <?

its not the keys... your missing "php" - short tags is disabled by default in wamp.

if you want to be able to use <? then left click wamp> php > settings> short open tags



.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 08/01/2012 05:15PM by stevenmartin99.

Options: ReplyQuote
Re: PHP script not running on browser
Posted by: Sammygreat (---.220.69.38.vgccl.net)
Date: August 01, 2012 05:16PM

Hi Stev, it works perfectly well, thanks mehn, am grateful

Options: ReplyQuote


Sorry, only registered users may post in this forum.