|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
accessing files outside document root
Ive looked all over (well probaby not ALL over) and I couldn't find a suitable answer, so here is my question:
How would I go about accessing files outside my document root with Apache2 on Win Std Server 2003 with a php script? the script always dies at the opendir : |
|
#2
|
|||
|
|||
|
RE: accessing files outside document root
I don't know that you really want to do.
Look, this is what worked out for me. I'm hosted on a commercial server so the directory structure is somethink like /home/public_html/ Let's say that I have an index.php on public_html/ Here i want to include /home/sql_connection.php I just use relative paths In index.php i would use something like So something like: might work for you, just maybe! |
|
#3
|
|||
|
|||
|
RE: accessing files outside document root
Just use an absolute path, remember to escape the backslashes though.
c:\winnt\somefile.txt |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > accessing files outside document root |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|