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 includes in folder indexes.

Featured Replies

Well In my public_html folder I have a header php file and a footer php file.

 

In my index page I use php inlcudes to include my files.

 

My question is when i make a new folder how can i put includes into the index of the folder. Becaue I want to have sitename.com/contact instead of sitename.com/contact.php

 

The only way that worked for me was in the include for the url i put

 

/home/mysite/mypath/*.php and in the stylsheet in header php i had to

put the stylesheet url as http://sitename.com/style.css.

 

So i was just wondering if there were any better ways to work around it.

 

O and dont want to put the php files in each folder because that would defeat the purpose of includes.

you can ether do full path includes

 

/home/account/public_html/header.php

 

or relative... so if your in /contact/ the relative path to public_html is

 

./../header.php

 

[if that gives errors play with the dots and slashes but esentially your using dots to go backwards]

 

for includes like css/javascript its best to use full path urls unless your making software to sell on

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.