Page 1 of 1

Can not run test script

PostPosted: 02. December 2012 08:19
by som
Hi all,

I have installed the version 1.8.1 and I have verified the installation by running the default link http://localhost/xampp/ which is running correctly
So I created a new folder inside htdocs as test and placed a phpinfo.php script inside it but when I run this http://localhost/test/phpinfo.php
it shows me blank screen.

My script has these lines only
Code: Select all
<?
   phpinfo();
?>


While checking the view source of the page it shows me the php code.

Below are the contents I see when I clicked on inspect element

<!--?
phpinfo();
?-->

html {
display: block;
}
Code: Select all
<html><object type="{0C55C096-0F1D-4F28-AAA2-85EF591126E7}" cotype="cs" id="cosymantecbfw" style="width: 0px; height: 0px; display: block;"></object><head><script type="text/javascript" id="waxCS">var WAX = function () { var _arrInputs; window.addEventListener('waxSetArr', function(evt) {_arrInputs=evt.detail;}); return { getElement: function (i) { return _arrInputs[i]; } } }(); function waxGetElement(i) { return WAX.getElement(i); }</script></head><body></body></html>


Please help with this.

Re: Can not run test script

PostPosted: 02. December 2012 10:45
by Altrea
Hi som,

don't use the short tag <? to begin your php code, because shor_tags are deactivated by default.
use the full version <?php instead.

best wishes,
Altrea