Page 1 of 1
PHP include_path
Posted: Thu Mar 11, 2010 11:40 am
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
Re: PHP include_path
Posted: Thu Mar 11, 2010 2:31 pm
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"}
Re: PHP include_path
Posted: Thu Mar 11, 2010 3:02 pm
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?
Re: PHP include_path
Posted: Thu Mar 11, 2010 4:44 pm
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
Re: PHP include_path
Posted: Thu Mar 11, 2010 10:27 pm
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.
Re: PHP include_path
Posted: Fri Mar 12, 2010 8:53 am
by Rednes
Try reading the documentation available for this piece of software again.
Re: PHP include_path
Posted: Fri Mar 12, 2010 11:07 am
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.
Re: PHP include_path
Posted: Fri Mar 12, 2010 11:57 am
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
Re: PHP include_path
Posted: Fri Mar 12, 2010 1:27 pm
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
Re: PHP include_path
Posted: Fri Mar 12, 2010 8:38 pm
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?
Re: PHP include_path
Posted: Sun Nov 14, 2010 1:15 am
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/