Root Path and Configuration of your Website using php
Display the root path and configuration of your website by uploading a php file to your website.
There’s times when you need to know the root path of a website as well as all of the configuration details of that server. This is actually very simple, we’ll explain how…
Root path of your site
Open a plain text editor and enter the following:
<?= $_SERVER['DOCUMENT_ROOT'];?>
Then save this with a .php extension i.e. root-path.php and upload to the root of your site via FTP. Then type in the url to that file and you’ll see the root path of your home directory.
Configuration details of your site
Find out if your server runs php and all of the configuration details of the server by opening a plain text editor and type the following:
<?php phpinfo();?>
Save the file with a .php extension i.e. config-details.php and upload to the root of your site. Type in the url in your web browser and all of the server config details are there to see.
Note: For security reasons, do not leave this file there permanently.
If you’ve found this useful please leave a comment below.
One reply on “Root Path and Configuration of your Website using php”
Leave a Reply
-
HTML email signature in Apple Mail
Step by step guide on how to add an HTML signature to Apple Mail.
-
Secure your WordPress Blog
A guide to securing your WordPress website.
-
Remove the shadow from Mac Screen Grabs
How to remove the shadow from Apple Screengrabs.
-
10 Useful Sites for Web Developers
Some useful websites for web developers.
-
3 FREE Apps to protect your PC
A few free apps to help you protect your PC.
-
Web Browsing Tips #1: Find in Page
Find copy in page in a web page.
-
Web Browsing Tips #2: Tabbed Windows
Using tabbed windows in your web browser.
-
Web Browsing Tips #3: Keyboard Shortcuts
Some web browsing keyboard shortcuts.
-
Redirect your site the Search Engine Friendly way
Using a 301 redirect is important when you change your website URL or web page URL.
-
Remove the WordPress Meta Tag from your Blog
Remove the WordPress meta tag from your WordPress site with this small function.
-
Stay secure, use more than one password
We need passwords for everything, but how can we stay secure and have multiple passwords without having to remember them all.
-
Forward your emails to one address
Find out how, using cPanel, you can forward your emails to one email address.
Doesn’t work.