Hi All,
I've uploaded a pear module (calendar) in a directory of my server, and I think i should update the php.ini file to make that path included (so that when I include /Calendar/Calendar.php it can be found).
Problem is, i'm not allowed to change php.ini.
I think I have two solutions, but neither worked:
a) create a new php.ini file (like this:
include_path = ".:/usr/lib/php:/usr/local/lib/php:/home/my_username/pear"
in the directory where my php script runs, but this seems to override the "big" php.ini file, instead of appending the new path to it, with the result that many of other includes or other funtions do not work correctly anymore.
b) include calendar in a static way (eg:
include('/pear/Calendar/Calendar.php')
; this includes calendar.php correctly, but when I try to instantiate a new calendar eg:
$month = new Calendar_Month_Weekdays($year,$month,1);
it gives me a fatal error that says that 'Calendar_Month_Weekdays' not found in /home/myusername/public_html/includes/DBform.inc.php on line 272.
Now, as DBform.inc.php is an include that includes calendar, i think there is a problem with the relative paths, but don't know how to solve it.
I understand this post is probably quite confusing, as I am confused myself :mad: but
can you give me some suggestions?
thanks!