Finding a full path name with Godaddy.com Linux web hosting

Create a text file with this in it:

<?php
echo __FILE__;
?>

Change the name of the file to pwd.php (or, whatever.php).

FTP this file to your godaddy.com account.

In a web browser, open the following URL:

http://www.yourdomain.com/pwd.php (or whatever you called the *.php file that you just uploaded).

The result should be, as explained by godaddy hosting:

/home/content/u/s/e/username/html

Replace "u," "s," and "e" with the first three letters of your hosting login, and "username" with your full hosting login. This is not your customer account login, but rather, the login you use to FTP files to your site.

To create your .htpasswd and .htaccess files, visit:

http://www.htaccesstools.com/

 

Misc: Overriding directory permissions on godaddy.com with .htaccess wasn't possible, or at least didn't work for me and I didn't have the time to make it work (if it is possible). If you would like to have a sub directory that permits a directory listings of all files in the directory, that can then be clicked on and downloaded, I used a php script found at: evoluted.net

It was very easy to setup and worked on the first try. Basically, using .htpasswd and .htaccess, I created a subdirectory on a godaddy.com web hosting account, in which any file uploaded to it will be available for download, but only to users that know the username/password to access said directory.

The above may not be optimal to your needs, but if you are in a hurry, as already mentioned, the php directory listing script provided by evoluted.net was a snap to get going.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Key words: godaddy hosting .htaccess .htpasswd .htaccess godaddy.com linux hosting .htaccess .htpasswd

godaddy.com hosting password protect directories. godaddy web hosting password protect directories