Little help please.

    Date: 01/31/06 (PHP Community)    Keywords: php, html

    Wondering if someone can give me a hand with this code I'm trying to use. I can't find my error so I'm hoping someone can be my second eyes and catch it. I used a tutorial as I'm quite a newbie to php so anyone that can help, I'll be grateful.

    I get this error - "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/silveri/public_html/beta/index.php on line 7"

    Here is the code from index.php that I'm trying to use:

    require_once("lib/template.php");

    $page = new Page("template.html");

    $page->replace_tags(

    array(
      "title" => "HOME",
      "descript" => "Welcome to my website!",
      "main" => "dat/index.dat",
      "menu" => "dat/menu.dat",
      "left" => "dat/submenu.dat",
      "right" => "dat/right.dat",
      "footer" => "dat/footer.php"
    );

    );

    $page->output();
    ?>

    Is there something I missed?

    Update After many hours and with some help, problem fixed.

    Source: http://community.livejournal.com/php/404849.html

« debugging/tracing || Adding text »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home