|
Posted by Paul Waring on 10/30/05 01:33
On Sat, Oct 29, 2005 at 03:23:36PM -0700, Patrick Roane wrote:
> 1) finding a server that already had smarty installed.
>
> Does anyone know of a hosting service that has smarty
> onboard already?
I think f2o (who I mentioned earlier) will have it, although any host
worth their salt will probably have Smarty installed globally or will be
able to do it for you on request. There are packages for most Linux
distributions and also for BSD so it shouldn't be a problem.
> 2) I'll need some help installing smarty on a server
> (which I would like to avoid doing because it seems
> like that would be difficult to do.
Smarty is just a load of PHP scripts. Installing it is no more difficult
than extracting a zip or tar file on your local machine and uploading
the contents via FTP (or whatever other method your host provides, such
as sftp or CPanel).
> considering the fact that smarty requires the use of
> Apache and No hosting service that I know of will
> think highly on me accessing their httpd.conf file to
> set up alliases on a shared server
Who told you that? I've never had to make any changes to my Apache
configuration when using Smarty, whether that be my own copy on a shared
host or installing it globally on a server that I have administrative
access to. You *might* have to alter php.ini if Smarty is installed to a
non-default location, but that's only if it's installed globally and if
someone goes to the trouble of doing that they would (I hope!) make the
changes to php.ini at the same time.
> 3) there is the issue of PEAR. Which I would need to
> install as well (or is PEAR standard on most servers
> that have php?).
PEAR comes with the latest versions of PHP, although I think there is a
--without-pear option if you don't want it installed but I have never
seen any host offering PHP without PEAR. Again though it's just a bunch
of PHP scripts so you can install your own local copy if for some reason
it's out of date or your host doesn't have an up to date copy.
> 4) Which brings me back to point number 2: What would
> be the best way to instal smarty/PEAR on a shared
> server (provided I can't find a host that has these
> things already)??
Just create a lib/ directory under your web site and upload the
PEAR/Smarty files to there, then include/require them in your PHP
scripts like you would any other PHP file.
Paul
--
Rogue Tory
http://www.roguetory.org.uk
Navigation:
[Reply to this message]
|