Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

PHP scripts in sharfed hosting environment

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
netsafe
Smarty n00b


Joined: 10 Dec 2020
Posts: 2

PostPosted: Sat Dec 12, 2020 9:47 pm    Post subject: PHP scripts in sharfed hosting environment Reply with quote

Hi Folks,

From the docs, Basic Installation, Ch2 Installation,
Quote:

Here's how you create an instance of Smarty in your PHP scripts:

<?php
// NOTE: Smarty has a capital 'S'
require_once('Smarty.class.php');
$smarty = new Smarty();
?>


I'm on a shared web space environment, where mistakes can interfere with other users so I'm somewhat chary of just going for it, should I put that in /home/myshare/smarty-3.1.35/libs/ ?

I've put the smarty directory in /home/ for now to try things out but it will have to go in the individual domains eventually as each host will not have access to that level.

Also, there is a book in Packt Publishing but it looks old. Is it still a viable learning resource for Smarty?

TIA

Mike
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1679

PostPosted: Tue Dec 15, 2020 1:41 am    Post subject: Reply with quote

Use composer already.
Back to top
View user's profile Send private message
netsafe
Smarty n00b


Joined: 10 Dec 2020
Posts: 2

PostPosted: Tue Dec 15, 2020 9:13 am    Post subject: Reply with quote

Thanks @AnrDaemon. Just the ticket.Most grateful.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP