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

Installing to a web host.

 
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
Czokyu
Smarty n00b


Joined: 13 Aug 2012
Posts: 3

PostPosted: Mon Aug 13, 2012 10:06 pm    Post subject: Installing to a web host. Reply with quote

Is it possible to install Smarty to a web host? I am going through a tutorial on Browser Based game design, and it calls for installing Smarty.

I am just wondering if it is possible to install Smarty onto my web host, rather than just on my PC.

I am currently using 000webhost.com with PHP Version 5.2.17

This is the only part of the tutorial that is currently holding me up and I would like to continue on as it is the only thorough PHP/mysql game making tutorial I have been able to locate.

Any response is greatly appreciated. I am notified on my cell when I get responses here so I can come back and check 'em out quickly.

Thanks - hopefully a future Smarty user

Czokyu
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Aug 14, 2012 2:05 am    Post subject: Reply with quote

yes smarty should install just fine on a web host. you have to be sure on any installation to get the permissions set correctly. follow the install instructions and if you have any problems post them here.
Back to top
View user's profile Send private message Visit poster's website
Czokyu
Smarty n00b


Joined: 13 Aug 2012
Posts: 3

PostPosted: Tue Aug 14, 2012 3:42 pm    Post subject: Reply with quote

My host requires that all files that will be used simply be uploaded to the /public_html folder. This folder is just the normal as anything that is put there is simply added to the end of the web address.

Meaning: When I completed my index.php, I uploaded it to the public_html and the web address was: www.site.com/index.php

So am I correct in thinking that I would be able to upload Smarty to the same directory, but in a subdirectory named Smarty, and just call it as :

<?php

// put full path to Smarty.class.php
require('www.site.com/Smarty/Smarty.class.php');
$smarty = new Smarty();

$smarty->template_dir = 'www.site.com/smarty/templates';
$smarty->compile_dir = 'www.site.com/smarty/templates_c';
$smarty->cache_dir = 'www.site.com/smarty/cache';
$smarty->config_dir = 'www.site.com/smarty/configs';

session_start();
$smarty->assign('name', $_SESSION['username']);
$smarty->display('index.tpl');

?>
Back to top
View user's profile Send private message
Czokyu
Smarty n00b


Joined: 13 Aug 2012
Posts: 3

PostPosted: Tue Aug 14, 2012 3:46 pm    Post subject: Reply with quote

Also, for clarification, I plan on simply unpacking all of the files from their respective folders in the Smarty file pack into the same folder to make them easier to call.
Back to top
View user's profile Send private message
alivianight
Smarty n00b


Joined: 14 Aug 2012
Posts: 1
Location: Miami

PostPosted: Tue Aug 14, 2012 9:29 pm    Post subject: Reply with quote

I will suggest you that you can use xamp as your server. It is open source and very useful to use. So you can use this.
night life pictures
Back to top
View user's profile Send private message
Hohol30
Smarty n00b


Joined: 20 Aug 2012
Posts: 1
Location: http://kinoup.net

PostPosted: Mon Aug 20, 2012 6:52 am    Post subject: Reply with quote

good =)
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