I've got a live site which I also want to allow people (admin's) to run a test system on.
Currently my page has a function which will be like
echo PrintResults();
Like this but if a user has logged into the test form (setting a cookie or something) it will do this..
if ($_COOKIE['TEST'] == "True"){
echo PrintTestResults();
} else {
echo PrintResults();
}
Easy as, however when I publish the site I want to submit another form which will write all the stuff from PrintTestResults function page to the function page which has PrintResults in it.
My questions are
- Would this be quicker than uploading via FTP?
- How to I write the contents from one page to another?
Any other thoughts on this are welcome :-)