Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-expand-tabs-free domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/websitedevait/public_html/wp-includes/functions.php on line 6131
What are common paths to programs for Perl and PHP scripts? | Advanced Internet Technologies

Most CGI, Perl or PHP scripts need to know the location of files to run properly.  Sometimes they even need to know where they are located themselves. Here are some common paths and tips about paths for Perl and PHP scripts on AIT’s Fully Managed Linux hosting accounts.

  1. Absolute Path refers to the complete route to a location on the server itself. Standard Absolute Paths are usually something like ‘/www/htdocs/’, which is the path to your web files, or ‘/www/cgi-bin/’, which is the path to your cgi-bin, where scripts are usually located.
  2. Most times an absolute path will be asked for when the script needs to find the directory of certain files (READ THE DOCUMENTATION TO BE SURE!).
  3. URL path refers to something’s location via the WWW. Standard URL paths are something like ‘//www.example.com/’, which is the path to your web site/files, or ‘//www.example.com/cgi-bin/’, which is the path to your cgi-bin via the web.
  4. Most times an absolute path will be asked for to handle HTML directions and coding.
  5. A commonly requested path (also required for Perl scripts) is the path to Perl, it is:
    • ‘/usr/bin/perl’-or-‘/bin/perl’
  6. Another commonly requested path is the path to the sendmail program (for mail interfaces), it is:
    • ‘/bin/sendmail’
  7. Lastly, a commonly request path is to the date program (for date and time tracking), it is:
    • ‘/bin/date’