Ok, I've installed XAMPP, which works fine. I can navigate to http://localhost/file.htm and the file will load correctly. (I know about using a webserver to access files rather than just double clicking on the .htm file)
I've created a file called phpinfo.php which is below.
- Code: Select all
<?php phpinfo(); ?>
it loads fine in so much that I get a blank screen with Php info?? displayed. None of the phpinfo text appears.
If I check the source code, the file appears exactly as it exists on my hard drive. (It shows the <?php..... code which obviously shouldn't be there.)
After searching the internet and this forum for a few hours I can find no information which helps me resolve this issue. (It all seems to be things like, is the file called ???.php, are you running it through the webserver? Have you restarted the service? have you reinstalled the servers? which I've tried before going online)
Does anyone have any ideas of what I can try?