Prev | Current Page 93 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"


5. Create a folder named include in the tshirtshop folder. This folder will store all the configuration files of
the application. Inside this folder, create a folder named configs; we??™ll use this latter one to store Smartyspecific
configuration data.
6. If you??™re using a Linux or Unix operating system, you also need to ensure that Apache has write access to
the templates_c directory, where the Smarty engine needs to save its compiled template files (you??™ll learn
more about this a bit later). Execute the following command to ensure that your Apache server can access
your project??™s files and has write permissions to the templates_c directory:
chmod a+w /home/username/tshirtshop/presentation/templates_c
?– Note Setting permissions on a Linux or Unix system as shown here allows any user with a shell account
on your Linux box to view the source code of any files in your folder, including PHP code and other data
(which might include sensitive information such as database passwords, keys used to encrypt/decrypt credit
card information, and so on). To fine-tune the security settings, consult your system administrator.
7. Check the errata page of this book for updated instructions about Smarty installation and configuration.
This way we make sure you don??™t run into trouble, should any future version of Smarty break any existing
TShirtShop functionality.


Pages:
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
noclegi świnoujście SPA papa na dach dopobrania.com.pl Rowy noclegi