Re: newbie: Zend or PEAR supported on web hosting company? [message #171719 is a reply to message #171715] |
Tue, 18 January 2011 14:50 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Rob wrote:
> Two web hosting companies both use Zend's PHP v5.2.x
AFAIK there is not such a thing. PHP is open source software developed by
the PHP Group, which I understand is a group of volunteers¹, using the Zend
Engine developed by Zend Technologies Ltd.²
_____
¹ <http://php.net/credits.php>
² <http://www.zend.com/>
> As far as PHP frameworks go, I read a lot about PEAR but I do not see
> any PEAR packages available on the web hosting companies.
Because that would not make sense. A web hoster cannot know beforehand
which packages their users would need, or if they even used PEAR packages
to begin with.
> Nor do I see any Zend PHP libraries in the phpinfo() results.
It should say at least
"This program makes use of the Zend Scripting Language Engine:
Zend Engine v2…"
> I do see many PHP settings available.
As you should.
> I don't really know the pro's/con's of Zend framework vs PEAR
> framework (can they even be used together) but:
Zend Framework is a number of PHP *script* libraries, available and to be
used as source code only. PEAR is a code repository (the *P*HP *E*xtension
and *A*pplication *R*epository), not a framework.
> [1] How can I load a Zend or PEAR framework onto my account on my web
> hosting company?
You can download Zend Framework for free and set it up in your webspace.
Preferably you would do it so that it is located *above* your Web root,
and adapt your include path accordingly. IOW, it would be best if your web
hoster installed Zend Framework at a central location, and kept it up-to-
date.
PEAR can be accessed using the `pear' program from the server's console (you
should have SSH access). It is necessary that you are allowed to make
outgoing connections from the server, as PEAR packages will be downloaded
and installed automatically according to a packages dependecies. Probably
you also need to be root on that (virtual) machine, unless you want to
resolve the dependencies yourself.
> [2] Is one framework lighter-weight than the other? Meaning, can I
> load pieces of one framework instead of the whole thing?
One is a framework, the other is not. Apples and oranges.
> [3] Which framework provides a cache for both database results and
> page content?
Zend Framework does. It is also the only framework of the two.
> I'm coming from a Java/J2EE world and checking out PHP. My apologies
> for the newbie questions.
Even as a newbie you could have STFW before posting, and RTFFAQ.
Groveling is no substitute for doing your homework.
<http://www.catb.org/~esr/faqs/smart-questions.html>
PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
|
|
|