Can not run test script

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can not run test script

Postby som » 02. December 2012 08:19

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.
som
 
Posts: 1
Joined: 02. December 2012 07:42
XAMPP Version: 5.6.3
Operating System: windows 7

Re: Can not run test script

Postby Altrea » 02. December 2012 10:45

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6818
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 51 guests