Poll
Has Hilco abandoned this site?
Yes?
50%
No?
17%
I can't tell!
33%
Total votes: 6
- Login to post comments
- Older polls
User login
Recent comments
- php to update prices
1 year 4 weeks ago - I suggest you create a php
1 year 4 weeks ago - If you don't know much about
1 year 10 weeks ago - Hi Hilco
1 year 11 weeks ago - Hi Kha,
1 year 11 weeks ago - this should
1 year 16 weeks ago - Hi!
Well, there's not much
1 year 18 weeks ago - Have a look at the $_POST
1 year 19 weeks ago - Thanks Tony
1 year 19 weeks ago - 1) No, never use the same ID
1 year 20 weeks ago
New forum topics
Active forum topics
Who's new
Zend Config - What Does All this Mean!
- Login to post comments
Mon, 03/23/2009 - 10:03
Hi,
I am installing Zend on Windows and am finding it hard to understand what all the following config means.
Can you explain what the following means?
// For the ZFiA source code distribution, we have one copy of Zend
// Framework, so we add it to the include path here.
$lib = realpath(dirname(__FILE__) . '/../../../lib');
// set up library directory
$libDir = realpath(dirname(__FILE__) . '/../library'); set_include_path($libDir . PATH_SEPARATOR . get_include_path() . PATH_SEPARATOR . $lib);
cheers
Tony

Hi!
Well, there's not much that you can change here, other than the ../../../lib and /../library paths if that's necessary for you.
What the code does is twice defining a variable first $lib and $libDir, and then it adds those paths to the general include paths, so whenever you need a script from the ZEND library, you only have to define
include('zendfile.php'); instead of the whole relative path:
include('../../../lib/zendfile.php'); So this means that your zend scripts are always available even when you don't know on what place your script runs and what the path is.
More explanation on php's site for the function set_include_path here: http://php.net/set_include_path