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:[EMAIL PROTECTED]]
> Sent: Tuesday, 3 April 2001 12:52
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]