Setup Helper
| From: | Nick Charsley | Date: | Tue, 25 Mar 2003 17:25:24 +0000 |
| Subject: | Setup Helper | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-1024@lists.php.net to get a copy of this message | ||
Having now been receiving the smarty lists for some time, I've noticed that a lot of the
traffic is based around what could be termed set-up problems. Mostly not having the
paths/permissions correct.
Is there any mileage to creating an examine function for smarty, how I see it working is as follows
$smarty->examine("index.tpl");
this would then investigate if it could process index.tpl, but rather than displaying the processed
file it would provide details as to if the file creation side could succeed. (The file would NOT be
processed, as we are not interested in coding problems, only environment problems)
Possibly report
a) that your running in safe mode and haven't got the appropriate settings set.
b) that the permissions/ownership on the target directories are incorrectly set possibly indicate
what the user is that should own the directories) .
c) that the php version is too low.
d) that the file is not present in the source directory
e) that debug.tpl is missing (possibly only if debugging is enabled)
The time I see this as really useful is not when developing a site, but when you do the publishing
of a locally working site to the server and suddenly it stops working. I always have some trouble
tracking this down.
If people think this may be of use then I'll have a look at coding it (unless anyone's
already doing it)
Regards,
_| _| _| Nick Charsley
_| _| _| Software Engineer
_| _| _| Tensor Systems Ltd
ncharsley@tensor.co.uk http://www.tensor.co.uk
Tel: +44 (0)1480 215530 Fax: +44 (0)1480 403604
-----------------------------------------------------------------------------------------------------------------------------
Important Email Information
The information in this email is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this email
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and unlawful. If you are not
the intended addressee please contact the sender and dispose of this
email.