I tried that and got the same error. I'm trying to place the smarty directories outside my webroot to minimize security risks, however given my experiences thus far, I don't really see that being possible.
Would a viable solution perhaps to be to include the smarty directories in the webroot such that my scripts can access them, but to protect the directories via .htaccess to prevent direct execution of files from said directories, since my scripts will be including them but are themselves executed from valid locations? Cheers and TIA, Pablo -----Original Message----- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Saturday, September 25, 2004 1:52 PM To: Pablo Gosse Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Problems installing smarty on a shared host Pablo Gosse wrote: > Hi folks. I've recently moved my site to a shared host, and this is the > first time I've had to set up my site in a really restrictive > environment, and I'm running into problems getting smarty installed. > > Using the basic example set up from the Smarty docs, when I run the file > I get the following error: > > Warning: main(Smarty.class.php): failed to open stream: No such file or > directory in /home/virtual/site357/fst/var/www/html/smarty.php on line 4 > > Fatal error: main(): Failed opening required 'Smarty.class.php' > (include_path='.:/php/includes:/usr/share/php:/home/pablogosse/smarty/') > in /home/virtual/site357/fst/var/www/html/smarty.php on line 4 You are including from file that is located in /home/virtual/site357/fst/var/www/html/, and the smarty class is in /home/pablogosse/smarty/? The paths seems strange, what if you try include_path = /home/virtual/site357/+ whatever is the relative path to Smarty.class.php from smarty.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php