FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » newbie: Zend or PEAR supported on web hosting company?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: newbie: Zend or PEAR supported on web hosting company? [message #171720 is a reply to message #171718] Tue, 18 January 2011 15:28 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Derek Turner wrote:

> On Tue, 18 Jan 2011 13:47:52 +0100, Álvaro G. Vicario wrote:
>> I've never used the Zend framework but... are you sure it contains
>> binary extensions?
>
> The basic Zend framework can simply be uploaded to your space and then
> invoked thusly:
>
> <?php
> set_include_path(get_include_path() . PATH_SEPARATOR . '/home/cantabi1/
> library');
> include_once 'Zend/Mail.php';

This probably suffices only here, because Zend Framework uses an autoloader
extensively that need to be set up, too.

> all this is in the online manual.

And to answer the question: Zend Framework does _not_ contain binary
extensions; it is pure, but elaborate (and sometimes a bit inefficient) PHP,
XML, WSDL, XML Schema, and SQL source code, only *using* php.ini-registered
PHP extensions.

>> As about PEAR, just install it in your computer, upload the files and

You meant _download_, which is unnecessary manually if you use the `pear'
program (which one could, as one would have have just *installed* it.)

>> add the directory to the "include_path" directive. PEAR is only a bunch
>> of PHP code.

A bunch of independently written PHP code following a certain code style,
determined to reuse each other, though, with dependencies that need to be so
well documented in the repository as to be automatically resolvable through
the `pear' program. It appears to me a bit backwards to install PEAR
locally just to re-resolve the dependencies manually on the server.

By contrast, Zend Framework is (AFAIK) not written independently. Where
PEAR packages, among other criteria, MUST NOT use include* and require* to
pass QA and to be admitted in the repository, there is no such rule for Zend
Framework code (however, there is QA and code style there, too).

> My hosting company (JustHost.com) allows you to install PEAR packages
> from the cPanel interface. They added Spreadsheet_Excel_Writer to mine
> even though it is still "beta" (O.9.2).

That's good to know, thanks.


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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Scaling image is losing background transparency
Next Topic: building a simple xml object from scratch without dom but with formatting
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 10:20:22 GMT 2024

Total time taken to generate the page: 0.04219 seconds