Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

PHP scripts in sharfed hosting environment

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
netsafe
Smarty Rookie


Joined: 10 Dec 2020
Posts: 5

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: 1785

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 Rookie


Joined: 10 Dec 2020
Posts: 5

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
netsafe
Smarty Rookie


Joined: 10 Dec 2020
Posts: 5

PostPosted: Mon Mar 08, 2021 9:25 pm    Post subject: Reply with quote

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


Does anybody have a view on this? I'm wondering if it would improve my progress in learning?
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Mar 08, 2021 10:22 pm    Post subject: Reply with quote

I'd rather suggest a recent book on PHP+MySQL.
Back to top
View user's profile Send private message
netsafe
Smarty Rookie


Joined: 10 Dec 2020
Posts: 5

PostPosted: Mon Mar 08, 2021 10:25 pm    Post subject: Reply with quote

OK. Thanks. I'll see what I can find. Unless you have a specific recommendation?
Back to top
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Mon Mar 08, 2021 10:29 pm    Post subject: Reply with quote

I would say that book would improve your understanding of where Smarty sits in the development process, and elaborates on the possibilities given to the site designer (as opposed to the data modeller and business process data cruncher).

Published in 2006, it covers Smarty 2 (running on PHP4), but there are discussions on the hows and whys on the basic essentials, as well as advanced approaches, of what projects Smarty can solve - importantly, these discussions carry over to Smarty 3.

However, as this is a book using Smarty 2, be aware that there is the possibility that too much of the discussion may present the concepts using outdated Smarty tags and procedures.

But I think using Smarty 3 won't be all that confusing from initially reading about the concepts presented using Smarty 2.

(Buy a used copy of the book.)
Back to top
View user's profile Send private message
netsafe
Smarty Rookie


Joined: 10 Dec 2020
Posts: 5

PostPosted: Mon Mar 08, 2021 10:37 pm    Post subject: Reply with quote

Quote:
as this is a book using Smarty 2, be aware that there is the possibility that too much of the discussion may present the concepts using outdated Smarty tags and procedures.


Yes, that was my fear but if the principles are just about the same I can refer to the Smarty 3 tags in the documentation to ensure I'm picking it all up something along the correct lines.

Also, Pakt Publishing are offering free access to it online. Which leaves the pocket money available to splash out on a much more recent PHP/MySQL or MariaDB (whichever, they haven't really split yet, code-wise) book in print on paper.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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