| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Above Public_Html; arghhhh | |
|---|---|
| Tweet Topic Started: Nov 10 2005, 03:00 PM (234 Views) | |
| Tsurayaki | Nov 10 2005, 03:00 PM Post #1 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Ok, so i have a file in a directory that is above the public_html directory on my hosting account and i want to access the file. It is a .html file so i want to display it. Now, is there anyway to do this, i have been searching google for hours :'( Thanks
|
![]() |
|
| Oblivion. | Nov 10 2005, 03:21 PM Post #2 |
![]()
*waves*
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Access it from your browser, or FTP cleint? |
![]() |
|
| Tsurayaki | Nov 10 2005, 03:28 PM Post #3 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
you cant access anything above public_html in a URL. I want a script to include the file. |
![]() |
|
| Tadamichi | Nov 10 2005, 04:14 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
I am pretty sure you can. Just go to www.yourdomain.com/folder If you want to include a file you can use PHP's include function.
|
![]() |
|
| Oblivion. | Nov 10 2005, 04:22 PM Post #5 |
![]()
*waves*
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
public_html in FTP... is where your files for www.yourdomain.com are saved ;). You can easily use a PHP include to do what you want Even though it would be easier for you to just move the file unless there's a reason for it being there.
|
![]() |
|
| Tadamichi | Nov 10 2005, 04:28 PM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Opps. I guess its because my server doesn't have public_html Ignore the first comment then... |
![]() |
|
| Tsurayaki | Nov 10 2005, 06:15 PM Post #7 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
yea, it s a script that create an email address which you someone just brought. So i have a html form which the action needs to be the script which is above public_html. i cant access it through www.url.com because that starts in public_html. I have uploaded the file using ftp into a folder named emails above public_html Any suggestions? Cheers |
![]() |
|
| Kazuki-ZNR | Nov 10 2005, 06:57 PM Post #8 |
|
...
|
Just to clear up some confusion, when he says above public_html he means outside that folder. |
![]() |
|
| Surferdude | Nov 10 2005, 08:45 PM Post #9 |
|
Critic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
No, that is not possible. Your Document Root is public_html |
![]() |
|
| Tsurayaki | Nov 11 2005, 12:55 PM Post #10 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
It is possible. Theres a php script in which it uses fopen to open a file above public_html. But i cant figure out how to use that to open a file
|
![]() |
|
| scizor | Nov 11 2005, 03:03 PM Post #11 |
|
w00t member titles
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Move it into public_html or ask your host. |
![]() |
|
| Surferdude | Nov 11 2005, 07:11 PM Post #12 |
|
Critic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Well, if you host has PhpSuExec turned on, then you wont be able to fopen() anything outside of your Doc Root. Heres a script to try it, if your using cPanel and the file you want to get is a text file:
Be sure to edit $username and $filename or else the script wont work. |
![]() |
|
| Tsurayaki | Nov 12 2005, 06:31 AM Post #13 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
The file i need is a php file. I guess there is no real way to get to it then. I have secured the file another way now anyway. Thanks for everyone's help" |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
10:29 AM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)




Even though it would be easier for you to just move the file unless there's a reason for it being there.
10:29 AM Jul 11