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.

is this page dynamc or static php?

Featured Replies

A page that has a .php extension and is constructed of xHTML and basic php includes?

Depends on what the page actually does. If the page or any of the includes say check a database for new entries stories,news etc then it could be referred to as dynamic however if the content of the pages always remains the same then I am assuming it would be considered static. However I think (dangerous thing thinking) that if you used javascript or some other client side scripting that altered a page even in a small way that may also be considered being dynamic. Don't know if the fact the main page would be considered dynamic solely because it was made up of several parts, if those parts never changed.

I didn't really get your question, though I would incline to say its a dynamic page.

 

It really depends on what those includes do, I would call a page "dynamic" if it had dynamic data (i.e. data stored in a database and retrieved based on the user's requests) and not based on its file extension or markup language used.

 

So for example if the output of index.php requested at 2pm is not identical to the output of index.php requested at 2:15 pm ... then I would call that a dynamic page :)

  • Author

the includes are basically footers and headers containing html that's it.

 

The reason I am asking is because i want to put some google analytic code in the bottom of a site in an include.

 

And on this link here it says there are two ways to do it for a dynamic or a static site.

  • Author

can i paste it in the footer include and it will work on every page?

Yea, the code would be included in every page that the footer is included in.

php is a server-side language. So it's processed before it's even send to the client. Google doesn't even know you used php to include it

It all depends on how your webserver is setup. You could have .html or .php files processes by php.

 

The only part of the code that is read by the PHP module is the text between

 

<?php ?>

 

So basically you only ever see the html returned from the code.

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.