PHP include_path

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
r steeltje
Forum Members
Forum Members
Posts: 37
Joined: Tue Mar 11, 2008 12:43 pm

PHP include_path

Post by r steeltje »

these last days i tried to install zend Gdata, i don;t know what it is, or what is does, but i seem to need it if i want to use googlecalender.

the installation support of zend Gdata says that it should be very easy to install, actually there is no installation at all.

just copy the directory (with the liberies) and (here it comes:....)
add the library directory to your PHP include_path

it seems that i have to add the path to a file so the cms can find the liberies, but where?
do i have to add the path to "Path to Zend Gdata library:" a parameter of the googlecalendermodule.

thanks allready
r
User avatar
Rednes
Forum Members
Forum Members
Posts: 85
Joined: Wed Apr 08, 2009 1:09 pm
Location: Rotterdam, The Netherlands

Re: PHP include_path

Post by Rednes »

call a UDT with an include to your lib on the place where your calender is..not that difficult...

or use a smarty version: {include file="path/to/file.php"}
Last edited by Rednes on Thu Mar 11, 2010 2:37 pm, edited 1 time in total.
r steeltje
Forum Members
Forum Members
Posts: 37
Joined: Tue Mar 11, 2008 12:43 pm

Re: PHP include_path

Post by r steeltje »

thanks for your answer, but i guess i'm to stupid to use it.

the specific configuration of the "google calender module" says:
Zend GData library not found. Please make sure that the path to this library is set correctly in the preferences panel.
The GData library can be downloaded from http://framework.zend.com/download/gdata.
i think the parameter "Path to Zend Gdata library" sets the php_include.
any other idea?
User avatar
Rednes
Forum Members
Forum Members
Posts: 85
Joined: Wed Apr 08, 2009 1:09 pm
Location: Rotterdam, The Netherlands

Re: PHP include_path

Post by Rednes »

Im not familiar with this google calender, but...
Please make sure that the path to this library is set correctly in the preferences panel.
...seems quite straightforward.

You have to set a path to the library that you uploaded on your server. And you can do it in the preferences panel of google calender I reckon
r steeltje
Forum Members
Forum Members
Posts: 37
Joined: Tue Mar 11, 2008 12:43 pm

Re: PHP include_path

Post by r steeltje »

ofcourse i tried to fill in the location of the directory, but it doesn;t work.

the directory is:
mysite.com/cms2008/lib/zend
so i tried this path but it is not ok
(in this dir are the dirs: Gdata, Http, Uri, Validate)
i even tried the complete url:
http://111.222.333.444/domains/mysite.c ... me.inc.php
and all kinds of combinations.
User avatar
Rednes
Forum Members
Forum Members
Posts: 85
Joined: Wed Apr 08, 2009 1:09 pm
Location: Rotterdam, The Netherlands

Re: PHP include_path

Post by Rednes »

Try reading the documentation available for this piece of software again.
r steeltje
Forum Members
Forum Members
Posts: 37
Joined: Tue Mar 11, 2008 12:43 pm

Re: PHP include_path

Post by r steeltje »

Rednes wrote: Try reading the documentation available for this piece of software again.
that's a nice way to say: "RTFM"

i wrote the very minimal installation instructions:
Zend Framework requires no special installation steps.
Simply download the framework, extract it to the folder you would like to keep it in, and add the library directory to your PHP include_path.


i copied the directory in the Lib-dir of the cms-directory, now i have to link to this directory.

thanks allready
r.
Last edited by Anonymous on Fri Mar 12, 2010 11:09 am, edited 1 time in total.
User avatar
Rednes
Forum Members
Forum Members
Posts: 85
Joined: Wed Apr 08, 2009 1:09 pm
Location: Rotterdam, The Netherlands

Re: PHP include_path

Post by Rednes »

CONFIGURING THE INCLUDE PATH
----------------------------

Once you have a copy of Zend Framework available, your application will need to
access the framework classes. Though there are several ways to achieve this, your
PHP include_path needs to contain the path to the Zend Framework classes under the
/library directory in this distribution. You can find out more about the PHP
include_path configuration directive here:

http://www.php.net/manual/en/ini.core.p ... clude-path

Instructions on how to change PHP configuration directives can be found here:

http://www.php.net/manual/en/configuration.changes.php
Last edited by Rednes on Fri Mar 12, 2010 12:12 pm, edited 1 time in total.
spt
New Member
New Member
Posts: 3
Joined: Thu Nov 06, 2008 10:42 am

Re: PHP include_path

Post by spt »

I wrote the Google Calendar module (and I have done some work on a new version, but don't seem to have had much time recently).

I have the Zend library installed in /home/username/Zend/ so I have set the path in the Google Calendar preferences screen to /home/username/

I obviously don't know where you have it - it depends how your server is set up - but looking at your post you might want to try
/domains/mysite.com/cms2008/lib/
or
/mysite.com/cms2008/lib/
or
/home/mysite.com/cms2008/lib/

Hope that helps
r steeltje
Forum Members
Forum Members
Posts: 37
Joined: Tue Mar 11, 2008 12:43 pm

Re: PHP include_path

Post by r steeltje »

Dear spt, and other participants,

I have tried the links you suggested and more (see below)
But the error-messages are still there.
Has this error something to do with permissies of the directory.
Should it be an 777 directory, or 755?

The directories I tried:
/domains/mysite.nl/cms2008/lib/
/domains/mysite.nl/public_html/cms2008/lib/
/mysite.nl/cms2008/lib/
/mysite.nl/public_html/cms2008/lib/
/home/mysite.nl/cms2008/lib/
/home/mysite.nl/public_html/cms2008/lib/
http://111.222.111.222/~mysite/cms2008/lib/
/111.222.111.222/~mysite/cms2008/lib/
/cms2008/lib/
/lib/

can anyone confirm if this module forks with cmsms 1.6.6 with CGExtensions 1.17.8 and zend Gdata 1.10.2?
Last edited by Anonymous on Mon Mar 15, 2010 8:58 pm, edited 1 time in total.
proboscidian
Forum Members
Forum Members
Posts: 23
Joined: Sun Feb 24, 2008 11:12 pm

Re: PHP include_path

Post by proboscidian »

I don't know if you are still interested, but the confusion may be in determining which folder in the Zend download contains the library.  After unzipping the ZendGdata-versionnumber zipfile in the root website folder, my path was /home/username/www/domain.com/ZendGdata-versionnumber/library/
Post Reply

Return to “Modules/Add-Ons”