• Well, I know this has been reported quite a lot of times already but until now, I can’t find my way. I’m also getting Parse error: parse error, unexpected $ in /home2/idyllic/public_html/index.php on line 16. Line 16 is simply <? include("footer.inc"); ?>. I’m new to PHP *sobs* .. please help

Viewing 8 replies - 1 through 8 (of 8 total)
  • Sometimes an error on line 16 is due to an omission in line 15… paste some of the surrounding code so that we have some context.

    Thread Starter zealous

    (@zealous)

    my whole code is: <?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    ?>
    <? include("header_wp.inc"); ?>
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <?php the_date('','<h1>','</h1>'); ?>
    <h2 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2>
    <?php the_content(); ?>
    <p class="comment"><?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>
    <div class="content">
    <h1>Site Updates</h1>
    <? include("updates.inc"); ?>
    <? include("footer.inc"); ?>

    header_wp.inc contains: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
    <HTML xmlns="https://www.w3.org/1999/xhtml">
    <head profile="https://gmpg.org/xfn/1">
    <title>Idyllic # A Personal Site</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <META http-equiv=pragma content=no-cache>
    <META content="noindex, nofollow" name=robots>
    <META HTTP-EQUIV="imagetoolbar" CONTENT="no">
    <META content="Personal website of Bernie. Includes her journal, cravings and creative side as well. " name=description>
    <link href="style_me.css" rel="stylesheet" type="text/css">
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>
    </head>
    <body>
    <p class="outdated">You're reading this because your browser is too outdated. Kindly <A
    >upgrade now, for FREE.
    <div class="container">
    <div id="left">
    <div class="top"> <img src="top_me.jpg" alt="idyllic top" width="500" height="303" title="Idyllic..." /></div>
    <div class="content">

    Thread Starter zealous

    (@zealous)

    can someone help?

    We need footer.inc to look at.
    Please post it at https://paste.uni.cc/ and then post the url it gives you back here.

    Thread Starter zealous

    (@zealous)

    Ok.. https://paste.uni.cc/2175 ..Just ignore the <?php ?> on top and below of the codes because they’re not included in my footer.

    Thread Starter zealous

    (@zealous)

    so? what do you think? =)

    Thread Starter zealous

    (@zealous)

    Oh well, I tried a simple blog script as an alternative to WP… and it works great! Thanks anyways =)

    Oh ….. not a lot of time elapsed here, but good luck with whatever you use.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Parse Error’ is closed to new replies.