Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Php question

Featured Replies

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?

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?

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 by andyl

  • Author

Thanks. By changing to ext to php will the search engines still find the pages ok?

 

Isnt the jq method overkill?

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 by andyl

  • 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 by jheg

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....

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 by andyl

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.