LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Static Context Question

Reply
 
Thread Tools Display Modes
  #1  
Old 03-06-2008, 10:03 AM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
Default Static Context Question

I have a directory outside of the VHROOT directory that I need to access that contains php files, etc... I setup a STATIC CONTEXT to point to that directory and it works except if any files within that external directory need to access files within the same directory, it cannot find them.

Example:

http://server.com/external/ points to /usr/share/www

http://server.com/external/index.php points to /usr/share/www/index.php

index.php code contains: require_once 'common.php';

when index.php is accessed, it finds common.php and includes it but common.php cannot find constants.php:

Warning: require_once(constants.php) [function.require-once]: failed to open stream: No such file or directory in /usr/share/www/common.php on line 30.

How do I set it up correctly so it finds constants.php without having to change the code?

Last edited by robfrew; 03-06-2008 at 10:05 AM..
Reply With Quote
  #2  
Old 03-06-2008, 10:10 AM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
Nevermind, it was a coding error on the part of the developer.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:11 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.