I'm currently working on an online directory system using PHP (due to server constraints). Normally I would use something else but c'est la vie! I have my pages on the server (Login.php, SomethingElse.p hp, etc.php). All of them have some form of php code associated with them.
In my cgi-bin folder, I have the code which references my data files (XML for now, may switch to MySQL later). I am getting errors that say
"cannot open file: ../cgi-bin/path.xml" and something about include.
Now, I did some research and it claims that with php5, the code cannot use an include line for a file in a different directory. My question(s) are:
1. Is this true?
2. If so, is there another place I can put my files so the user can't see them? (code and data)
Thanks all. I've just started working with php for this project so I really don't have a clue. Also, it's my first server project so the cgi-bin stuff was from stuff I've seen online. Thanks in advance for the help.
- LB
In my cgi-bin folder, I have the code which references my data files (XML for now, may switch to MySQL later). I am getting errors that say
"cannot open file: ../cgi-bin/path.xml" and something about include.
Now, I did some research and it claims that with php5, the code cannot use an include line for a file in a different directory. My question(s) are:
1. Is this true?
2. If so, is there another place I can put my files so the user can't see them? (code and data)
Thanks all. I've just started working with php for this project so I really don't have a clue. Also, it's my first server project so the cgi-bin stuff was from stuff I've seen online. Thanks in advance for the help.
- LB
Comment