Re: safe mode
| From: | Stephan Kaiser | Date: | Sat, 21 Dec 2002 01:51:19 +0000 |
| Subject: | Re: safe mode | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6925@lists.php.net to get a copy of this message | ||
Went several weeks back and that's where I found the answer:
set: $smarty->use_sub_dirs = false;
Not the ideal long-term solution, but anyway...
21.12.2002 02:32:31, Stephan Kaiser <madmax@red-falcon.net> wrote:
>Hello,
>I guess this topic ("php's safe mode") doesn't occurr for the first time,
>but the mailing list doesn't have a search feature...
>Of course, if you could provide me a link
>to the corresponding message, that'd be great.
>
>Problem:
>I installed Smarty on some webspace a few long nights ago,
>and encountered a severe problem:
>Smarty could not create the necessary
>directories for the compiled templates.
>I tried the permissions without success until I found out
>that PHP is run as a module and therefore the executed
>script has a different uid (wwrun or somethin) than the script
>owner. The scripts fail to create directories (except in my base
>directory).
>
>I've read on smarty.php.net that smarty should work in safe mode,
>so here are my little questions: Is this restricted to PHP running as .exe ?
>If not, what can I do to get Smarty working OR what can I ask my
>provider to do ?
>
>I've developed some really nice application on my own machine where,
>of course, it works fine. It just didn't occur to me that this could
>provide such severe problems!
>
>Once again, if this topic was already handled, please point me to the message ;)
>I've gone through a lot of options the last few nights but I don't seem
>to be able to find a solution. I also mailed my provider which created a folder
>with the correct permissions, put a sample script in there also with the correct
>permissions, but I'm not able to access it (neither FTP nor by another script with
>'normal' permissions).
>
>I really appreciate your help!
>Stephan K.
>