Re: share libraries from repository
| From: | Dan Kalowsky | Date: | Fri, 02 Aug 2002 18:44:53 +0000 |
| Subject: | Re: share libraries from repository | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86462@lists.php.net to get a copy of this message | ||
please direct php help questions to the php-general mailing list. the
php-dev list is for the language development itself.
On Fri, 2 Aug 2002, [iso-8859-1] Ricardo Javier Aranibar León wrote:
> Hi List,
> I need your help.
> 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
>
> 2)Fatal error: Cannot instantiate non-existent class: pagina in
> /usr/local/httpd/htdocs/index.php on line 3
>
> If somebody can help me I'll thankfull, My box linux is SuSE 7.3, PHP 4.04
> and Apache.
>
> _________________________________________________________________
> Únase al mayor servicio mundial de correo electrónico:
> http://www.hotmail.com/es
>
>
>
>---------------------------------------------------------------<
Dan Kalowsky "A little less conversation,
http://www.deadmime.org/~dank a little more
action."
dank-nos@mpa-deadmime.org - "A Little Less Conversation",
kalowsky@php.net Elvis Presley