blowfly123 Posted June 8, 2009 Report Share Posted June 8, 2009 I'm trying to give a friend a facelift on a decade old website. I'm doing some very mild php (just includes to pull in menu items, header, footer, things like that) but every php file is coming up 404. I've emailed their host but they haven't responded. Is it possible that a site that hasn't really been changed in almost 10 years might need to have php turned on or something? There's no php on the current site. Includes are done with code I've never seen: I'd rather not use that since it looks like some old-ass code to me. Thoughts? Quote Link to comment Share on other sites More sharing options...
BeeDev Posted June 9, 2009 Report Share Posted June 9, 2009 That's an ASP include, not PHP. Classic ASP is more convenient term after birth of ASP.NET. Which means their server is not Apache but IIS (Internet Information Services - Microsoft). Which means they don't have PHP installed on the server machine, most probably. But you CAN install PHP to run on IIS. Most modern hosts allow you to purchase a PHP installation on your server machine for a small fee, or most of them for free. Did you have a look at the Host's Control Panel? Quote Link to comment Share on other sites More sharing options...
Wickham Posted June 9, 2009 Report Share Posted June 9, 2009 (edited) is also code used with shtml. Did the main files have the filename extension .shtml ? You might find that the server processes shtml for simple "includes" where it doesn't process PHP. Just use the code and rename files with .shtml Edited June 9, 2009 by Wickham Quote Link to comment Share on other sites More sharing options...
blowfly123 Posted June 9, 2009 Author Report Share Posted June 9, 2009 They are shtml files. I guess I could just do that instead of php. Gotta be flexible, right? The amount of dynamic coding is so minimal here that it really doesn't matter I guess. Thanks guys. Quote Link to comment Share on other sites More sharing options...
LSW Posted June 9, 2009 Report Share Posted June 9, 2009 SHTML is still a good service for includes, it is just rather basic and not as many nifty thing to do as PHP, if it is mostly includes it is fine... but you cannot mix SHTML with PHP or other languages, it is one or the other. Quote Link to comment Share on other sites More sharing options...
blowfly123 Posted June 9, 2009 Author Report Share Posted June 9, 2009 Yeah it turns out the acct doesn't allow php and rather than have them upgrade to a more expensive acct just for includes I'll go with shtml. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.