Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

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.

embeding PHP into HTML

Featured Replies

hello, do i need to change any of the servers configuration to enable embedded php script to function within a html page?atm if i embed php script into a html file all i get displayed is the raw php or a blank page.

For those who want to have this feature, there is a simple shortcut and it dosen't require to cahnge your http.conf. Just add this line to the .htaccess file:

 

addtype application/x-httpd-php .html .htm .bla

 

You can add wathever you might want to, even something crazy, like .bla, your name or your nickname.

 

In other words, personlize your site. If you do have.... personality. :(

If needed server-wide:

I'd say in W:\usr\local\apache2\conf\httpd.conf

Find:

AddType application/x-httpd-php .phtml .php3 .php

Edit line to read

AddType application/x-httpd-php .phtml .php3 .php .html .htm

 

If needed in one or more folders: Use gopo's method, add them via .htaccess

 

 

But I need to point out the security risk associated with this method!

 

Any upload script should probably be updated to see the newly defined files as executables too, and treat them with the same care as .php files are given. Most to me known PHP upload systems see .html files as a kind of documents, and that may be dangerous.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

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.