View Single Post
  #10 (permalink)  
Old 05-02-2008, 09:08 AM
eventhough eventhough is offline
Junior Member
 
Join Date: May 2008
Posts: 4
Default Same problem

I'm having the same problem as WavyDavy. I don't think anybody here understands the problem at hand.

I am developing on a Windows machine, but I am using a CentOS linux server to actually host my website. Everything works great on my Windows machine but when I port the site over to linux, the include_path does NOT work.

I am using the following code:

// Modify include path to include path to library
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . '../library');

// Zend Framework Includes
require_once "Zend/Loader.php";

It's very simple. In Windows the path_separator is a semi-colon, in linux it's a colon.

My default include_path in my php.ini file is ".;" in Windows and ".:" in linux.

Looking at Mitchell Hashimoto's video tutorial, you get an include path that looks something like this:

In Windows: .;;../library

In linux: .::../library

I EXPECT this to work nicely in linux but for some reason I am unable to locate ../library to find the Zend directory.

The Zend/ directory is located in the right place. Everything works great on Windows but something is not right on linux.

I hope I've clarified this a bit more. Does anybody have any clue as to why this include_path doesn't work in linux?

It has got to be some sort of configuration issue.

Kev
Reply With Quote