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.
-
HTML email signature in Gmail
How to add a HTML signature in Gmail, without any text-decoration for links
-
Remove p tags from category description
By default Wordpress adds paragraph tags to category descriptions. Find out how to stop this.
-
DIV align bottom right (or left!)
Find out how to align a DIV to the bottom left or right.
-
Website Dimensions and Designing for the Web
What browser size should you design your website. Find out more.
-
HTML email signature in Zoho Mail
How to add a HTML signature in Zoho Mail. A very easy and stable solution.
-
FREE EU Cookie Law Script
If you haven’t already implemented the changes then we’ve put together a little bit of code to help you.
-
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.
Doesn’t work.