php code returned instead of result
Posted by: shrdlu1497 (---.lnse1.cht.bigpond.net.au)
Date: August 24, 2013 05:21AM

I downloaded and installed the latest wampserver with php: WampServer2-PHP531.exe

My html file includes

url="Then_and_now.php"
blnRecvdResp=false;
xmlHttp.open("GET",url,true);
xmlHttp.send();

xmlHttp.responseText returns as the php code listing, not the expected result.


The php file is

<?php
echo "My first PHP script!";
?>

This is all running on my PC, i.e. using localhost

Thanks in advance for your help



Edited 1 time(s). Last edit at 08/24/2013 05:29AM by shrdlu1497.

Options: ReplyQuote


Sorry, only registered users may post in this forum.