Paths

 

A perl script which shows the paths to your folders and script. This will help in setting up your scripts for use. Script developers will find the "Absolute path to this directory" very useful when defining additional file or script paths needed within their script.

 

Features

Environmental variables are used to determine paths:

  • Server URL (your domain)
  • Server IP Address
  • Full path to your domain root folder
  • Relative path to this script
  • Absolute path to this script
  • Absolute path to the directory of the script

 

The "absolute path to the directory" shows the folder where this script resides. This additional code to the environmental variable has been given a variable name and is handy for other uses within a script - especially where you need the absolute path to the directory for files and folders etc.


Download paths