Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the Base Path on a Secure server?

Status
Not open for further replies.

egims

Technical User
Jun 5, 2001
96
US
I use a web hosting provider named 123ehost.com. I use an email script that needs to know the base path to the account.

Normally the base path is:
/home/USERNAME/public_html/

...but in this case I am using their shared secure server. I need a base path to enable my mail script to function. All the web hosting company can tell me is that their server name is:

oursecur

They say the have never been asked for the base path?????

The html that accesses their secure server is:

Does anyone have a clue of what a base path might be on a secure server with only this amount of information?

Thanks in advance.
 
The server's environment variables should hold the info you are looking for. Cut and paste the following code into a plain text file and name it something like envars.pl. Then upload it to your cgi-bin and go to it using your browser. For example:
Code:
#!/usr/bin/perl

use CGI;

$co = new CGI;

print
$co->header,
$co->start_html('CGI Environment Variables Example'),
$co->center($co->h1('CGI Evironment Variables Example'));

foreach $key (sort keys %ENV) {

print $co->b("$key=>$ENV{$key}"),
$co->br;
}

print $co->end-html;

If you don't have a cgi-bin or can't run cgi scripts, try this instead:

Code:
<?php
phpinfo()
?>

Save this as a text file also and name it phpinfo.php or whatever you want. Upload it to your sites main directory and go to it using your browser. You will see a few pages of info. Scroll down to the ENVIRONMENT heading and look for the DocumentRoot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top