You are here: Re: Standard PHP library, PEAR, and templates « PHP Programming Language « IT news, forums, messages
Re: Standard PHP library, PEAR, and templates

Posted by Sean on 11/28/05 16:43

Jay wrote:
> Newbie alert.
>
> Is the standard php library exclusively for PHP5 or is there one for PHP4?
> How do I start using it? Is there a require or include directive needed in
> order to make use of it?

I think it is only available in php 5 (not sure though!). And is
included by default in PHP5.

>
> Same question for PEAR. Is there a PEAR for PHP4 or only for PHP5? How do I
> start using its facilities? Is there a require or include directive?
>

Allot of pear libraries are php 4 and 5 compatible. To use a pear lib
like DB you will need to put include('DB.php') in your scripts. Each
library should state if it is compatible with php 4 and 5 and the most
popular ones are compatible with both.

> Lastly, I'd like to start using templates. From what I've read, they
> simplify code so I don't have to play quoting games like:
>
> echo "foo=\"blah\"" . $foo['bar'] . 'blah' . "bar$foo=\"blah\"";
>
> which is a real drag. I can usually simplify lines like above, but they
> never completely simplify to my satisfaction. Googling revealed a bunch of
> template libraries. Is there a generally accepted standard one?
>
> I'm using Debian testing/PHP4/Apache/mysql (but thinking of switching to PHP5
> and postgresql).
>
> Thanks!

Allot of people have their own preferences. But I would say if there is
a standard one is it smarty.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация