Please note: This website includes an accessibility system. Press Control-F11 to adjust the website to people with visual disabilities who are using a screen reader; Press Control-F10 to open an accessibility menu.
Popup heading
How do I access files below / outside of public_html using php?
For my web site, my public directory is /public_html . BUT my line:
fails because php cannot open the stream file.php. "includes" is off of public_html.
RON
Option 1: ../
To access a file / folder below your current directory, you can use ../ For example:Option 2: Absolute Path
You can also use the absolute path, as in: