In case anyone treads this way again, it turned out that all my legacy PHP used "<?" to introduce the script instead of "<?php". I *now* know that the default is not to accept that.
Bev
User Profile
Collapse
-
Yes, precisely that line is there. But if it was just Apache's config, then using PHP from the command line to open the file should still give me the result and not the source code, which is what I get.
There must be a beginner's 'gotcha' in there somewhere.
Bev...Leave a comment:
-
Problem getting started with PHP after installing Apache and PHP
It pains me to ask such a dumb question but...
I already use PHP widely on a host server but I want to pre-test scripts on my (Windows) machine. I installed Apache(2_2) without problems but, having then installed PHP5 (Windows binary) carefully following instructions (default settings), it shows me the raw PHP code not the interpreted stuff. Even if I run PHP from a command line with a minimal script, it still shows me the raw code...
No activity results to display
Show More
Leave a comment: