RE: [PHP] Please Help!
| From: | Samantha Savvakis | Date: | Tue, 03 Apr 2001 03:07:19 +0000 |
| Subject: | RE: [PHP] Please Help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46749@lists.php.net to get a copy of this message | ||
I'd check where "class.FastTemplate.php" is located in relation to the
current file you are running. Fully qualify the path for the "include"
statement.
Also, what are the permissions on this file? Are they readable by the apache
user?
> -----Original Message-----
> From: E K L [mailto:phpnewuser@hotmail.com]
> Sent: Tuesday, 3 April 2001 12:52
> To: php-general@lists.php.net
> Subject: [PHP] Please Help!
>
>
> Hi Experts,
>
> It seems to me that, the topic is not attractive or challenging
> that makes
> nobody come to problem. But I really hope those experts or experiance ppl
> can give me ur hands. Please Help!
>
> I'm planning to build a template but failed to do so....
>
> Here is the code:
>
> <?
>
> include "class.FastTemplate.php";
>
> $tpl = new FastTemplate("../usr/local/apache/htdocs/toplevel.tpl");
>
> $tpl->define(array("toplevel" => "toplevel.tpl"));
>
> $tpl->assign("title", "R U THEre");
> $tpl->assign("content", "try this out");
>
> $tpl->parse("main", "toplevel");
>
> $tpl->FastPrint();
>
> ?>
>
> error:
> Warning: Failed opening 'class.FastTemplate.php' for inclusion
> (include_path='.:/usr/local/lib/php') in
> /usr/local/apache/htdocs/tem.php on
> line 3
>
> Fatal error: Cannot instantiate non-existent class: fasttemplate in
> /usr/local/apache/htdocs/tem.php on line 5
>
> Please consult, thanks...
>
> E K
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>