It sounds like you need to use PHP to "build" the path in your PHP
include statements, something like this (Assuming you can pass "?Test=Y"
at the end of your URL (untested off-the-top-of-my=head code):

<?PHP
if (isset($_GET['Test'])){
include 'morecode.php';
} else (
Include 'test/morecode.php';
}

Trevor Briggs
Analyst/Programmer
Lincare, Inc.
(727) 431-1246
TBriggs2@xxxxxxxxxxx
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Larry Kleinman
Sent: Monday, June 24, 2013 7:51 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] simulate library list function in php

Hi all - I am trying to set up a test environment for my web site where
I
can make changes to certain pages, put the changed pages in a folder
called TEST and then run my regular site but whenever one of the changed

pages is referenced (whether via an include statement, or a submit, or
HREF) the page that is used is the one in TEST, not the one in the
production folder. Essentially, I want this to behave the way an AS/400
library list works - somehow put folder TEST in front of the other
folders
but only do this when running in test. I don't care whether "running in
test" means going to a different URL, whether it means connecting with a

different user profile, etc - all i want is for the site to run normally

except when I go to it in "test mode". I tried doing a AliasMatch in my
apache config file and it works for pages that are submitted, but not
for
pages referenced via an include statement in PHP. I'm guessing that
there
might be something that i can do with the PHP.ini file, but I don't know

how to do this, or how to make it only happen for "test" signons

Larry Kleinman
Kleinman Associates, Inc.
212-949-6469

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.