I have recently been using XAMPP for dev. Although I'm new to XAMPP, the recent issue sprung up surprisingly, the simple script running a day before.
The script is just being used to test the ability to capture/display an IP address; this will later be used in a larger project:
<!DOCTYPE html>
<html>
<body>
<h2>THIS IS A PHP PAGE (with HTML)</h2>
<?php
echo $_SERVER['SERVER_ADDR'];
?>
</body>
</html>
As I stated, it worked the other day, displaying ::1 on my local machine; I loaded the same script to an online, test server and it worked there correctly, returning my ipv4 address.
The issue is that now, when I run the same script again locally, nothing displays (besides the HTML message); researching this, I read that if the mark-up is displaying locally but not the PHP, the PHP is not running. I'm not sure why that would be the case; XAMPP is running. The machine had been rebooted (This local machine is quite old and has various problems from time to time, so I'm not ruling out that it may be the machine itself.)
*On another note, I am still not clear on how to implement the >_inline Code feature here - I've never seen this on any other site and it never seems to work correctly for me, thus making the process of posting a question/code more of a hassle than an asset - please explain. Thanks
Any advice would be greatly appreciated.
Thanks in advance.