« How to remove blank lines in dreamweaver

How To, web design

How to Find the Absolute Path on Your Web Server

07.17.09 | Comment?

From time to time, especially when moving a website from one server to another, I have to find out what the “absolute path” of my website is.  Absolute path pertains to the directory on the server that the website is installed on.

Sometimes when moving a Joomla, WordPress or other website to a different directory or different server you’ll need to change the absolute path for the site to work. In joomla this requires editing the configuration.php file, in WordPress this sometimes requires editing the database or ensuring that you update the settings before moving your files/database over to the new directory/server.

How do I find out what the absolute path is?

The easiest way is to create a file named pathinfo.php and paste only the following code into that file:

<?php
   $path = getcwd();
   echo "Your Absoluthe Path is: ";
   echo $path;
?>

Now, upload pathinfo.php into the root directory of your website and view it in your internet browser ( example: http://www.mysite.com/pathinfo.php )

This will display your absolute path.

Tags: , , ,

have your say

You can skip to the end and leave a response. Pinging is currently not allowed.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


« How to remove blank lines in dreamweaver