I am trying to install smarty on my shared hosting plan. I have installed the smarty files on a sub domain that I will be using it for. I am attempting to define the SMARTY_DIR variable, but am not quite sure how to use the absolute hosting path that my web host has provided.
Here is my include path (according to cPanel, found in ‘PHP settings’)
.:/usr/lib/php:/usr/local/lib/php
Now, when I put the Smarty files in the sub domains directory, index.php and libs (directory) are on the same level. So my thoughts were to do something like:
define('SMARTY_DIR','.:/usr/lib/php:/usr/local/lib/php/libs/' );
require_once(SMARTY_DIR . 'Smarty.class.php');
Am I not doing this correctly? I am getting the obvious error that the file does not exist.
Any thoughts / advice is greatly appreciated.
This is not a path, this are two pathes (separated by the path separator, on linux
:, on win;, available in PHP via the constantPATH_SEPARATOR).include(_once)andrequire(_once)don’t support this.