July 12, 201214 yr Is it possible to include a php insert on all my pages for say a footer if I originally wrote the pages in just html?
July 12, 201214 yr Is it possible to include a php insert on all my pages for say a footer if I originally wrote the pages in just html? How about using a jQuery AJAX request to a php file to add whatever the php file does to the footer?
July 12, 201214 yr How about using a jQuery AJAX request to a php file to add whatever the php file does to the footer? Haha! Change the HTML extension to .php and you can include on that page. The included files can be .html files, but the page they are included on must be a .php. Edited July 12, 201214 yr by andyl
July 12, 201214 yr Author Thanks. By changing to ext to php will the search engines still find the pages ok? Isnt the jq method overkill?
July 12, 201214 yr Thanks. By changing to ext to php will the search engines still find the pages ok? Yes, but to redirect old URLs (which will help), put this in your htaccess: RedirectMatch 301 ^(.+)\.html$ $1.php Let me know if that doesn't work, untested... Isnt the jq method overkill? Glad you realised. Edited July 12, 201214 yr by andyl
July 12, 201214 yr Author Cheers Andy much appreciated! EDIT: Andy you were right about coda2 it rocks! Oh and I thought I'd have to get a another license for each machine I wanted to run it on but the serial number works on both my imac and laptop is that right? Edited July 12, 201214 yr by jheg
July 12, 201214 yr Sorry I thought OP was to insert PHP into a HTML page.... Original reply was that this was impossible which isn't really true when you factor in jQuery....
July 13, 201214 yr Cheers Andy much appreciated! EDIT: Andy you were right about coda2 it rocks! Oh and I thought I'd have to get a another license for each machine I wanted to run it on but the serial number works on both my imac and laptop is that right? No probs. The licensing is easier when bought from the Mac App store (since all apps bought there can be installed to all your Macs), but yes the license is valid for every Mac you own. Edited July 13, 201214 yr by andyl
Create an account or sign in to comment