path to zend library located outside of site not recognized

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rhecker
Forum Contributor
Posts: 178
Joined: Fri Jul 11, 2008 5:49 pm

path to zend library located outside of site not recognized

Post by rhecker »

I am setting up ZendFrames for the first time. I have put the library in htdocs/library so it can be shared between multiple sites that use the zend library. On my Windows local system, this works fine, but on my shared hosting account, the library isn't being found.

In index.php I have set the following:
realpath( '../../library'),

and in application.ini, under [production] the following:
includePaths.library = "../../..library/"

The website is at htdocs/zend_beg/

Can anyone point out what I am doing wrong to make the linux server recognise the path?

Thanks for any thoughts.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: path to zend library located outside of site not recognized

Post by AbraCadaver »

If the library is htdocs/library and the website is htdocs/zend_beg then the path from the web site to the library is ../library
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
rhecker
Forum Contributor
Posts: 178
Joined: Fri Jul 11, 2008 5:49 pm

Re: path to zend library located outside of site not recognized

Post by rhecker »

Correct, but the index.php and application.ini files are one and two levels deep into the site. Also, the path relationships are the same on my windows machine, where it works.
Post Reply