[gbd-dev] Gubed under Windows/Apache
Status: Beta
Brought to you by:
mccabe
From: Brett S. <tec...@se...> - 2005-06-26 20:11:05
|
As a work around, I've attempted to use Apache vs. IIS on Windows for debugging, which should be close enough in most cases. I worked strictly with the latest CVS. I placed the ServerScripts directory in the web server root and was not able to run the test bench scripts via StartSession.php (via the supplied hyper-links). The first issue is that StartSession.php seems to want to prepend all scripts with 'c:\'. I found this also caused issues when trying to run out of user's public_html directories, see below. I add a line after line 38 of StartSession.php: $gbdBase = substr( ... ); // Existing line 38 $gbdBase = ''; // Force to null to inhibit prepending c:\ With this in place, I still had errors. If I changed the prefix: /php to GubedTest (i.e, changed /php/tests/... to GubedTest/tests...) All seemed to work. I'm presuming this is a simple change to the hyperlinks. I then moved on to replicating the Linux home public_html environment. Since Windows doesn't have soft-links, I had to copy StartSession.php into the desired directory and then fully qualify the path to Gubed includes. I attempted to update the php include path which didn't work, even to the extent of seeing the correct directory in the error message. I modified the require_once and include near the bottom of StartSession.php like so: require_once('C:\Program Files\Apache Group\Apache2\htdocs\ServerScripts\GubedFunctions.php'); include('C:\Program Files\Apache Group\Apache2\htdocs\ServerScripts\Gubed.php'); So far this environment *seems* to work as well at the Linux environment. Brett ------------------------------------- Brett C. Serkez, Technical Trainer |