Skip to content
View in the app

A better way to browse. Learn more.

MSFN

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.

$root_path=$_SERVER problem

Featured Replies

I have a CMS in php, and I am trying to set it up so I can view the site locally.

I had setup my MySQL database and everything, but for some reason I keep getting an error that is being referred to something in regards to my root_path.

This is what I have at the beginning of every file:

// get the document root - for use on include files

$root_path=$_SERVER['DOCUMENT_ROOT'];

Am I suppose to change what is inside ['DOCUMENT_ROOT'] ? Maybe to localhost ?

I am sorry if this is not enough info, but I was able to view some of the content, but every error through out a problem with my root path.

Is there something I need to do to make it so I can view these PHP files locally only?

Do you require any other info?

I had installed my Apache and MySQL by using WAMP.

Thanks for any help!


  • Author

WAMP does install all the necessary things:

1. MySQL

2. Apache

3. PHP

im not sure what would work in this case but try replace DOCUMENT_ROOT with the follwoing

rootdomain

HTTP_HOST

PHP_SELF

localedir

rooturl

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.