Related questions about the Fasttemplate

Source: Internet
Author: User
Questions about the Fasttemplate
Today I wrote a PHP fasttemplate code as follows
Include ("Class. Fasttemplate.php3 ");

$template = new Fasttemplate (".");

$template-Define (Array (main = "Main.tpl", newstable = "Newstable.tpl", Newsrow = "newsrow.tpl"));

$LISTF = fopen ("Articlelist.txt", "R");

List ($title, $category, $date, $fname) = Fgetcsv ($LISTF, 4096, ":");
while (!feof ($LISTF))
{
$template-Assign (Stitle, $title);
$template-Assign (Scategory, $category);
$template-Assign (Sdate, $date);
$template-Assign (Sfname, $fname);

$template, Parse (newsrows, ". Newsrow");
List ($title, $category, $date, $fname) = Fgetcsv ($LISTF, 4096, ":");
}
$template, Parse (BODY, newstable);
$template, Parse (OUTPUT, main);
$template-Fastprint (OUTPUT);
?>

But the page output is almost the file class. Fasttemplate.php3 in the content, baffled its solution, please master help. Thanks first!!

------Solution--------------------
Class. Fasttemplate.php3?!

PHP files are generally ended with PHP extensions, if you do not have special settings on the server php3 is also the case.
You try to change the file extension to PHP.
------Solution--------------------
Did you try to change php3 to PHP? Have you tried it?
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.