PDA

View Full Version : What Is the Path For Folder Outside "Public_HTML"?



kentheriot
June 7th, 2010, 06:10 PM
I sorta asked this in another post but this one is more specific. Does anyone know how to reference the location of a folder (say, "downloads") that is located under the root web directory, and NOT under "public_html"?

A guide I'm reading uses "/home/myaccount/downloads" as an example. But I can't figure out how to tailor that to my own site.

Cheers!

Ken

Michelle Waters
June 7th, 2010, 07:01 PM
This would depend on how your host has the server setup. But on a typical Apache server, the path would look something like this:

/home/your-username/your-download-location

So on a real site with a username of testcom, and a directory called downloads, outside of public_html, it might look like this:

/home/testcom/downloads

If that doesn't look right on your server, you can use an FTP client, like FireFTP, a Firefox addon, and navigate to the downloads directory. You can then see the path in the FTP window, on the remote side, after the /home/username/.

kentheriot
June 7th, 2010, 07:59 PM
Thanks Michelle. I used that (confirmed at my c-panel) format and am still having a problem with the system I'm trying to use, $7 Secrets.

It doesn't help that the 7S site has been hacked (some religious message). Sigh. Did I break the internet....again?

Ken

kentheriot
June 7th, 2010, 08:23 PM
I got it! It was just that the script example had a slash in front of the "home," but the way the script was written, it didn't need the slash.

Thanks!

Ken

Michelle Waters
June 7th, 2010, 11:19 PM
Yep, it's the little "/" or ";" that can make the biggest messes in your scripts.

Glad you got it working!

stevetorres
June 27th, 2010, 12:29 AM
This varies according to server set up. On an Apache server it looks like
Home/username/download location
If not, you can use an FTP client and navigate the downloads directory.