Forum Moderators: phranque
Someone on another site indicated that the httpd.conf file would need some tweaking. Which I did. And apparently I did NOT do it "wrong" since Apache is still loading fine as a service. However, apparently I didn't do it "right" either, because I'm still not seeing the .html includes using .php file extension, and <?php include '*.html'?>.
Probably you're going to tell me I need to sign up for a class at the college, right? *laughing* Not a bad idea, but I can't afford the fuel right now to get there and back!
Do server side includes work in php? [webmasterworld.com]
I don't know what I'm missing.... what I'm trying to do is view my files on a machine-resident web server (Apache 2.05.20 with newish versions of php, perl, etc. on WinXP Pro SP1); using localhost, my assumption was that my normal "<?php include 'footer.html'?>" statement in my *.php files would display WITH the includes parsed when I opened them in a browser window, exactly as they do live online.
This isn't happening, and none of the httpd.conf tweaks people have suggested are working. I've checked the docs that came with the distro from apachefriends; I've checked the docs at apache.org; I've enquired not only here but on a couple of other fora I use which have developer/programmer topics.
And yes, apache is started and running, so is mysql and phpinfo() gives RAFTS of information, none of it in error status....
So I'm stumped. And of course, it's really no biggie, because I CAN just do it the way I always have.... though right now it's almost more important to figure out where I'm wrong than it is to get it usable!
[Edit for typos....]
Since I was pretty sure it was just me missing something, I wasn't surprised to discover that was exactly the case. I tested by moving the folder with the files I need to see on localhost INTO the htdocs folder. Works like a charm.
I'm pretty sure that there's some way to "reconfigure" the paths so that I don't have to have the pertinent folder in the htdocs folder, but that's a dig-around-for-info for another time.... this gets me what I want right now, which was the important thing.
[Edit - one of my biggest mistaken impressions was that I would be able to view the file with the includes parsed THROUGH THE EDITOR "EXTERNAL BROWSER" OPTION. This is not the case after all, or at least it does not appear to be the case....]