On-Rev file path
Jim Ault
jimaultwins at yahoo.com
Tue Mar 22 23:41:31 EDT 2011
On Mar 22, 2011, at 7:57 PM, -=>JB wrote:
> I would like to know how to get the path of a file that is
> located above the public_html which I think is called
> above webroot.
>
> Let's say I have a file named Hello_World.php and
> it is above the public_html. What is it's path and can
> I run the file by pointing my browser to it's path like I
> can when it is in my domain folder.
>
> -=>JB<=-
You did not specify which protocol you wanted to use, but I am
assuming 'http' rather than 'ftp'
Part of the definition of a web site that a web server uses is that
files located above the public_html directory are not to be served to
browsers. This is a part of the security system and a browser should
not be able to view or run files outside the normal folder tree.
( just imagine if everyone could look at all the files on your web
server! )
There are exceptions to this but you have to so some advanced web
server techniques to get this to happen. This is not the ordinary web
server setup.
You should use your file manager access or ftp:login:password access
to move or copy the file to a working location.
Hope this helps.
Jim Ault
Las Vegas
More information about the use-livecode
mailing list