For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > January 2005 > Re: [PEAR] do i need to explicitly say im using it?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] do i need to explicitly say im using it?
bertrand Gugger

2005-01-30, 8:56 pm

rmaccaullch@johnabbottcollege.net wrote:

>Hi,
>
>I am relatively new to programming/networking so I just have a simple
>question. Once pear packages are installed on the server, do i need to
>explicitly say in my php code that i am using Pear code?
>

You did it allready so far the script says:
require_once 'pear-package' ;
and pear_package is in some PEAR folder itself within the include path.
indeed, it's solving among the precedences in this include path,
so possibly, you could overwrite what you like.

> Or will the pear
>packages be read by php automatically?
>
>

php just solves require.., include...

>I know the server has pear enabled because another project was used using
>it, but I am unsure wether include or require php functions are needed in
>order to use the Pear functions.
>
>

So just look how they require it.

>Thanks in advance
>
>
>

Hope answer not too late, it's bloody slow on my box.
--
bertrand Gugger (toggg)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com