Re: share librearies from repository
| From: | Richard Lynch | Date: | Mon, 05 Aug 2002 06:12:44 +0000 |
| Subject: | Re: share librearies from repository | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111161@lists.php.net to get a copy of this message | ||
>I wrote my classes with php where I defined my objects, then I created my
>repository in /usr/share/php , in this directory are my clasess.
>Now, from my directory web I like to call to my classes, then I modified my
>php.ini (/etc/php.ini) and inserted this line, in the option "Paths and
>Directories"
> include_path = ".:/usr/share/php"
>and restart apache.
>In my page index.php I call to my class with this form
> <?
> include ("plantilla.class")
> ?>
>But when I like to see my page I have two message:
>1) Warning: Failed opening 'plantilla.class' for inclusion
>(include_path='.:/usr/share/php')in /usr/local/httpd/htdocs/index.php on
>line 2
Did you spell it right? :-)
What permissions are on the file plantilla.class?
If it's not world-readable (or at least readable by PHP's User set in
httpd.conf) then it can't be read.
>2)Fatal error: Cannot instantiate non-existent class: pagina in
>/usr/local/httpd/htdocs/index.php on line 3
This is a direct result of 1.
--
Like Music? http://l-i-e.com/artists.htm
I'm looking for a PRO QUALITY two-input sound card supported by Linux (any
major distro). Need to record live events (mixed already) to stereo
CD-quality. Soundcard Recommendations?
Software to handle the recording? Don't need fancy mixer stuff. Zero (0)
post-production time. Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo
audio-to-disk.