Hey all, Well after months of trying to work out what to put in my .htaccess file to allow my Travoholic.com site to process PHP (so I can add Text Link Ads), Dreamhost has finally sorted it out but they've killed my site, yet again! Now that the PHP is working, it looks like my Server Side Includes aren't working. Is this some sort of feature of PHP pages that they can't process SSI? I really know nothing about the world of PHP. Actually, while I'm on the topic, how do I save a file as .php? When I dod it it seems to come out as filename.php.txt Thanks for any help!! Kirsty
Short answer: you can't use SSI from within a PHP file. Long answer: that depends on what you're doing with SSI. What's in the SSI files you're wanting to include? With regard to the filename.php.txt, it sounds like you're using notepad to create the files? Change the "File Type" to "All Files (*.*)" in the save dialog before saving the file.
Thanks for your answer. Well bollocks. I shuold probably fix my site but if you look at http://www.travoholic.com now, you'll see that really only the main content is showing up. I have SSI files for the header and footer, for the navigation section on the left side and for the right side which has Google Adsense in it. The only reason I want to be able to process my .htm pages as .php is so I can submit my site to Text Link Ads but I'm thinking that like will be easier if I just save my main pages as .php and do a 301 redirect from the old pages with PR to the new .php pages. Then scrap the SSI on these few pages that I want to sell Text Link Ads for. I woulld ideally have liked to have had the option to sell the ads sitewide but I guess I'll take what I can take. Does this seem like the only way around this? I would have thought that most websites don't use PHP... is there a way to use Text Link Ads without it?
I would have thought that more websites use PHP now than SSI! Now I don't know if Dreamhost have this set up or not, but it is possible to include a PHP file via SSI. Just give the .php file the .phtml extension and include it as you normally would. Fingers crossed the server should parse the php.
Hehe ya probably. I'm just in denial because I'm too lazy/busy to learn. That all sounds confusing but I'll give it a go! Thanks.