Jump to content

Recommended Posts

Add the zend folder to your include_path.

ini_set('include_path', ini_get('include_path') . DIRECTORY_SEPARATOR . 'full/path/to/your/zend/folder/here');

 

This doesn't seem to be working.  Any idea why?

 

ini_set('include_path', ini_get('include_path') . DIRECTORY_SEPARATOR . 'assets/lib/zend');

 

my install check throws this error:

Exception thrown trying to access Zend/Loader.php using 'use_include_path' = true. Make sure you include Zend Framework in your include_path which currently contains: .:

Link to comment
https://forums.phpfreaks.com/topic/239572-youtube-api/#findComment-1230653
Share on other sites

Sorry I meant to use the PATH_SEPERATOR constant

ini_set('include_path', ini_get('include_path') .  PATH_SEPERATOR . 'assets/lib/zend');

 

However that may not work either as assets/lib/zend is a relative path. You need to use a full system path. Prehaps use

ini_set('include_path', ini_get('include_path') .  PATH_SEPERATOR . $_SERVER['DOCUMENT_ROOT'] . '/assets/lib/zend');

Link to comment
https://forums.phpfreaks.com/topic/239572-youtube-api/#findComment-1230658
Share on other sites

Sorry I meant to use the PATH_SEPERATOR constant

ini_set('include_path', ini_get('include_path') .  PATH_SEPERATOR . 'assets/lib/zend');

 

However that may not work either as assets/lib/zend is a relative path. You need to use a full system path. Prehaps use

ini_set('include_path', ini_get('include_path') .  PATH_SEPERATOR . $_SERVER['DOCUMENT_ROOT'] . '/assets/lib/zend');

 

I received this error; Use of undefined constant PATH_SEPERATOR - assumed 'PATH_SEPERATOR'

Link to comment
https://forums.phpfreaks.com/topic/239572-youtube-api/#findComment-1230672
Share on other sites

Sorry I meant to use the PATH_SEPERATOR constant

ini_set('include_path', ini_get('include_path') .  PATH_SEPERATOR . 'assets/lib/zend');

 

However that may not work either as assets/lib/zend is a relative path. You need to use a full system path. Prehaps use

ini_set('include_path', ini_get('include_path') .  PATH_SEPERATOR . $_SERVER['DOCUMENT_ROOT'] . '/assets/lib/zend');

 

I received this error; Use of undefined constant PATH_SEPERATOR - assumed 'PATH_SEPERATOR'

 

He misspelled it. It should be : PATH_SEPARATOR

Link to comment
https://forums.phpfreaks.com/topic/239572-youtube-api/#findComment-1230678
Share on other sites

Sorry I meant to use the PATH_SEPERATOR constant

ini_set('include_path', ini_get('include_path') .  PATH_SEPERATOR . 'assets/lib/zend');

 

However that may not work either as assets/lib/zend is a relative path. You need to use a full system path. Prehaps use

ini_set('include_path', ini_get('include_path') .  PATH_SEPERATOR . $_SERVER['DOCUMENT_ROOT'] . '/assets/lib/zend');

 

I received this error; Use of undefined constant PATH_SEPERATOR - assumed 'PATH_SEPERATOR'

 

He misspelled it. It should be : PATH_SEPARATOR

 

Hmm for some weird reason my install checker doesn't seem to like it.  Right now I am using this to include my files and yes, I did try the document root thing...

 

foreach (glob($path . '/lib/*.inc.php') as $lib_file)
{
include($lib_file);
}

ini_set('include_path', ini_get('include_path') .  PATH_SEPARATOR . '/assets/lib/zend');

Link to comment
https://forums.phpfreaks.com/topic/239572-youtube-api/#findComment-1230681
Share on other sites

Hmm for some weird reason my install checker doesn't seem to like it.  Right now I am using this to include my files and yes, I did try the document root thing...

 

foreach (glob($path . '/lib/*.inc.php') as $lib_file)
{
include($lib_file);
}

ini_set('include_path', ini_get('include_path') .  PATH_SEPARATOR . '/assets/lib/zend');

 

Define "doesnt seem to like it"

Link to comment
https://forums.phpfreaks.com/topic/239572-youtube-api/#findComment-1230688
Share on other sites

Hmm for some weird reason my install checker doesn't seem to like it.  Right now I am using this to include my files and yes, I did try the document root thing...

 

foreach (glob($path . '/lib/*.inc.php') as $lib_file)
{
include($lib_file);
}

ini_set('include_path', ini_get('include_path') .  PATH_SEPARATOR . '/assets/lib/zend');

 

Define "doesnt seem to like it"

 

I still get this error...

Exception thrown trying to access Zend/Loader.php using 'use_include_path' = true. Make sure you include Zend Framework in your include_path which currently contains: .:

Link to comment
https://forums.phpfreaks.com/topic/239572-youtube-api/#findComment-1230689
Share on other sites

Hmm for some weird reason my install checker doesn't seem to like it.  Right now I am using this to include my files and yes, I did try the document root thing...

 

foreach (glob($path . '/lib/*.inc.php') as $lib_file)
{
include($lib_file);
}

ini_set('include_path', ini_get('include_path') .  PATH_SEPARATOR . '/assets/lib/zend');

 

Define "doesnt seem to like it"

 

I still get this error...

Exception thrown trying to access Zend/Loader.php using 'use_include_path' = true. Make sure you include Zend Framework in your include_path which currently contains: .:

 

A quick search says to omit zend from the path.

 

ini_set('include_path', ini_get('include_path') .  PATH_SEPARATOR . '/assets/lib');

Link to comment
https://forums.phpfreaks.com/topic/239572-youtube-api/#findComment-1230691
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.