MikeBronner
Programmer
Hi all,
I have a little conuncrum I can't quite figure out how to solve. My dilema is that I have a test server with a different tree structure than my production server. Also, my test server is Apache 1.3.29 running on WinXP, while my production server is Apache 1.3.29 running on Linux.
Both are running on PHP and MySQL.
I am using a template system with my pages, so I have a common header for all pages, where I have the following line:
Now this works fine on my production server, but on my test server the include directory is located at C:/AppServ/ Naturally when I move stuff to the test server, things don't work anymore, since it can't find the includes.
So far the only way I have been able to solve this, was to include both the test server include folder and the production server include folder in the include directive, like this:
Wouldn't this be a potential security risk? Aside from that, is there a way to configure the test server to redirect from /home/bronnerm/public_html/ramtek/includes automatically to C:/AppServ/
Thanks for all your help!
Mike
I have a little conuncrum I can't quite figure out how to solve. My dilema is that I have a test server with a different tree structure than my production server. Also, my test server is Apache 1.3.29 running on WinXP, while my production server is Apache 1.3.29 running on Linux.
Both are running on PHP and MySQL.
I am using a template system with my pages, so I have a common header for all pages, where I have the following line:
Code:
ini_set("include_path",".:/home/bronnerm/public_html/ramtek/includes");
Now this works fine on my production server, but on my test server the include directory is located at C:/AppServ/ Naturally when I move stuff to the test server, things don't work anymore, since it can't find the includes.
So far the only way I have been able to solve this, was to include both the test server include folder and the production server include folder in the include directive, like this:
Code:
ini_set("include_path",".:/home/bronnerm/public_html/ramtek/includes;C:/AppServ/www/ramtek/includes");
Wouldn't this be a potential security risk? Aside from that, is there a way to configure the test server to redirect from /home/bronnerm/public_html/ramtek/includes automatically to C:/AppServ/
Thanks for all your help!
Mike