I am using a webserver with ftp access only(supports php 4.3.3) I need to include smarty template engine to my pages... the problem is I cant edit the php.ini file... I hav to give the include path through my program.... please tell me how to do that.......
[man]set_include_path/man
Also, if running on Apache, you can usually set it via a .htaccess file, for example:
php_value include_path .:/home/username/include:/usr/local/lib/php
I tested your path....
bit not getting... I had given the path like this require('c:/wamp/smarty/libs/Smarty.class.php');
its working locally.......
but not in the server.....
I m getting this error message while given the include path
Parse error: parse error, unexpected T_STRING
Please show us the code that is producing that error if you want us to debug it for you.
NogDog wrote:Please show us the code that is producing that error if you want us to debug it for you.
I solved the problem.....
The error was the access permission to my templates_c folder I changed it.... now its working The permission needed was 'chmod 775'
Don't forget to mark this thread resolved.