FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP/Blogger error





jeremoi
I am trying to redo my blog and it get this error:

Parse error: parse error, unexpected '.' in /home/jeremoi/domains/jeremoi.com/public_html/blog/index.php on line 23



Here is the code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Jeremoi | Blog/title>
<link href="../images/css.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#897B6D">
<table width="795" border="0" align="center" cellpadding="13" cellspacing="7" bgcolor="#39251E">
  <tr>
    <td><?php include(../menu.php); ?></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="7" cellpadding="0" >
      <tr>
        <td bgcolor="#FFFFFF" valign="top" width="516"><Blogger>
   <div  class="date">
<BlogDateHeader><$BlogDateHeaderDate$></BlogDateHeader></div>
<div class="entry" id="post"> <$BlogItemNumber$>
         <div class="title" align="left">
          <$BlogItemTitle$></div>
      <div class="post" align="left">
         <$BlogItemBody$>
      </div>

</div>
        </Blogger></td>
        <td bgcolor="#FFFFFF" valign="top" width="">        <div align="left"><img src="../images/blog_archives.gif" width="92" height="31" /></div>
                  <BloggerArchives>
                  <div class="module-list-item">
                  <div align="left"><a href='<$BlogArchiveURL$>' class="side"><$BlogArchiveName$></a></div>
                </BloggerArchives>
                  </p>
            <div></div>
             
                  <img src="../images/blog_blogs.gif" width="127" height="31" />
                 
                  <div align="left" class="side"><a href="http://www.ultragrrrl.blogspot.com" target="_blank">Ultragrrrl</a></div>
                    <div align="left" class="side"><a href="http://www.Listen-to-sasha-rant.blogspot.com" target="_blank">Listen To Sasha Rant</a> </div>
 <div align="left" class="side"><a href="http://www.ikeepadiary.com" target="_blank">I Keep A   Diary</a> </div>
                    <div align="left" class="side"><a href="http://www.Leather-hips.blogspot.com" target="_blank">Annika</a></div>
                    <div align="left" class="side"><a href="http://www.thesocialcavity.com" target="_blank">Th e Social Cavity</a> </div>
                    <div align="left" class="side"><a href="http://www.fluxblog.org" target="_blank">Fluxblog</a> </div>
                    <div align="left" class="side"><a href="http://www.teendrama.com" target="_blank">Teen Drama</a> </div>
                    <div align="left" class="side"><a href="http://letspushthingsforward.blogspot.com/" target="_blank">Cam</a> </div>                   
                    <div align="left" class="side"><a href="http://joonr.com/" target="_blank">Joonr</a> </div>
                    <div align="left" class="side"><a href="http://www.teenageunicorn.com/" target="_blank">Teenage   Unicorn</a> </div>
 <div align="left" class="side"><a href="http://www.regnyouth.blogspot.com" target="_blank">RegnYouth Archives</a> </div>
                    <div align="left" class="side"><a href="http://www.stereogum.com" target="_blank">Stereogum</a> </div>
                    <div align="left" class="side"><a href="http://www.karenplusone.blogspot.com" target="_blank">Karen Plus One</a> </div>
                  <div align="left" class="side"><a href="http://graceisgone.blogspot.com" target="_blank">Grace   is Gone</a> </div>
                  <div align="left" class="side"><a href="http://themodernage.org/" target="_blank">The Modern Age </a></div>
                    <div align="left" class="side"><a href="http://suddenlylastsummer.blogspot.com/" target="_blank">Suddenly Last Summer</a> </div>
                    <div align="left" class="side"><a href="http://casadepunk.com/" target="_blank">Casa De Punk</a> </div>
</p></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>


Thanks for any help.
mathiaus
this isn't the problem, but you need to close your title tag
Code:
<title>Jeremoi | Blog/title>

should be
Code:
<title>Jeremoi | Blog</title>


Right well from that its finr but you include menu.php so its likely ton be in that file. Please post it Smile
jeremoi
I fixed that but it still gives me the same error message.
mathiaus
I said that wasnt the problem just bad standard. Please include menu.php
jeremoi
menu.php is just
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="778" height="227">
  <param name="movie" value="/images/jermoi_menu.swf" />
  <param name="quality" value="high" />
  <embed src="/images/jermoi_menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="778" height="227"></embed>
</object>
shabda
The blogger template you provided is obvously not one of the default ones, as it uses tables for layout. So if everything else fails why not use a default template till it works out?
I uses the template with one of my blogs, it was broken, but I got a different error than what you reported(Display was wrong).
There seems to be no obvious error, but how are you using this?
Code:
<?php include(../menu.php); ?>

this is your custom menu right? How how can it have relative link on blogger servers? Also can you include php code in blogger template? I think only thing allowed is javascript, css and blogger tags.
jeremoi
I looked at it again, I don't get the error but it just shows up as a blank screen screen. This is the new code.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Jeremoi | Blog</title>
<link href="../images/css.css" rel="stylesheet" type="text/css" />
</head>

<body bgcolor="897B6D">
<table width="795" border="0" align="center" cellpadding="13" cellspacing="7" bgcolor="39251E">
  <tr>
    <td><?php include ('../menu.php'); ?></td>
  </tr>
  <tr>
    <td height="45"><table width="100%" border="0" cellspacing="7" cellpadding="0" >
      <tr>
        <td bgcolor="#FFFFFF" width="516" valign="top"><Blogger>
          <div  class="date">
            <BlogDateHeader><$BlogDateHeaderDate$></BlogDateHeader>
          </div>
          <div class="entry" id="post">
            <div class="title" align="left"> <$BlogItemTitle$></div>
            <div class="post" align="left"> <$BlogItemBody$> </div>
          </div><div>
        <MainOrArchivePage class="post-end"> <span class="post-end">Posted by <$BlogItemAuthorNickname$> at <$BlogItemDateTime$>
            <BlogItemCommentsEnabled>
              <a href="<$BlogItemPermalinkURL$>">
                comments            </a> </BlogItemCommentsEnabled>
        </span></MainOrArchivePage>
        <span class="post-end"><a href="<$BlogItemPermalinkURL$>">(<$BlogItemCommentCount$>)</a> |<a href="&lt;$BlogItemPermalinkURL$&gt;">Permalink</a></span></div>
          <p> </p>
        </Blogger></td>
        <td bgcolor="#FFFFFF" valign="top"><div class="module-list-item">
          <div align="left"><img src="../images/blog_archives.gif" />
                  <BloggerArchives>
                    <div class="side"><a href='<$BlogArchiveURL$>' class="side"><$BlogArchiveName$></a></div>
                  </BloggerArchives>
                  <p></p>
            <div></div>
            <img src="../images/blog_blogs.gif" width="127" height="31" />
                  <div align="left" class="side" id ><a href="http://www.ultragrrrl.blogspot.com" target="_blank">Ultragrrrl</a></div>
            <div align="left" class="side"><a href="http://www.Listen-to-sasha-rant.blogspot.com" target="_blank">Listen To Sasha Rant</a> </div>
            <div align="left" class="side"><a href="http://www.ikeepadiary.com" target="_blank">I Keep A   Diary</a> </div>
            <div align="left" class="side"><a href="http://www.Leather-hips.blogspot.com" target="_blank">Annika</a></div>
            <div align="left" class="side"><a href="http://www.thesocialcavity.com" target="_blank">Th e Social Cavity</a> </div>
            <div align="left" class="side"><a href="http://www.fluxblog.org" target="_blank">Fluxblog</a> </div>
            <div align="left" class="side"><a href="http://www.teendrama.com" target="_blank">Teen Drama</a> </div>
            <div align="left" class="side"><a href="http://letspushthingsforward.blogspot.com/" target="_blank">Cam</a> </div>
            <div align="left" class="side"><a href="http://joonr.com/" target="_blank">Joonr</a> </div>
            <div align="left" class="side"><a href="http://www.teenageunicorn.com/" target="_blank">Teenage   Unicorn</a> </div>
            <div align="left" class="side"><a href="http://www.regnyouth.blogspot.com" target="_blank">RegnYouth Archives</a> </div>
            <div align="left" class="side"><a href="http://www.stereogum.com" target="_blank">Stereogum</a> </div>
            <div align="left" class="side"><a href="http://www.karenplusone.blogspot.com" target="_blank">Karen Plus One</a> </div>
            <div align="left" class="side"><a href="http://graceisgone.blogspot.com" target="_blank">Grace   is Gone</a> </div>
            <div align="left" class="side"><a href="http://themodernage.org/" target="_blank">The Modern Age </a></div>
            <div align="left" class="side"><a href="http://suddenlylastsummer.blogspot.com/" target="_blank">Suddenly Last Summer</a> </div>
            <div align="left" class="side"><a href="http://casadepunk.com/" target="_blank">Casa De Punk</a></div>
            <p></p>
          </div>
        </div></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
shabda
I managed to tweak your template to work. Take a look.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Jeremoi | Blog</title>
<$BlogMetaData$>
<style type="text/css">
</style>
</head>

<body bgcolor="897B6D">
<table width="795" border="0" align="center" cellpadding="13" cellspacing="7" bgcolor="39251E">
  <tr>
    <td></td>
  </tr>
  <tr>
    <td height="45"><table width="100%" border="0" cellspacing="7" cellpadding="0" >
      <tr>
        <td bgcolor="#FFFFFF" width="516" valign="top"><Blogger>
          <div  class="date">
            <BlogDateHeader><$BlogDateHeaderDate$></BlogDateHeader>
          </div>
          <div class="entry" id="post">
            <div class="title" align="left"> <$BlogItemTitle$></div>
            <div class="post" align="left"> <$BlogItemBody$> </div>
          </div><div>
        <MainOrArchivePage class="post-end"> <span class="post-end">Posted by <$BlogItemAuthorNickname$> at <$BlogItemDateTime$>
            <BlogItemCommentsEnabled>
              <a href="<$BlogItemPermalinkURL$>">
                comments            </a> </BlogItemCommentsEnabled>
        </span></MainOrArchivePage>
        <span class="post-end"><a href="<$BlogItemPermalinkURL$>">(<$BlogItemCommentCount$>)</a> |<a href="&lt;$BlogItemPermalinkURL$&gt;">Permalink</a></span></div>
          <p> </p>
        </Blogger></td>
        <td bgcolor="#FFFFFF" valign="top"><div class="module-list-item">
          <div align="left"><img src="../images/blog_archives.gif" />
                  <BloggerArchives>
                    <div class="side"><a href='<$BlogArchiveURL$>' class="side"><$BlogArchiveName$></a></div>
                  </BloggerArchives>
                  <p></p>
            <div></div>
            <img src="../images/blog_blogs.gif" width="127" height="31" />
                  <div align="left" class="side" id ><a href="http://www.ultragrrrl.blogspot.com" target="_blank">Ultragrrrl</a></div>
            <div align="left" class="side"><a href="http://www.Listen-to-sasha-rant.blogspot.com" target="_blank">Listen To Sasha Rant</a> </div>
            <div align="left" class="side"><a href="http://www.ikeepadiary.com" target="_blank">I Keep A   Diary</a> </div>
            <div align="left" class="side"><a href="http://www.Leather-hips.blogspot.com" target="_blank">Annika</a></div>
            <div align="left" class="side"><a href="http://www.thesocialcavity.com" target="_blank">Th e Social Cavity</a> </div>
            <div align="left" class="side"><a href="http://www.fluxblog.org" target="_blank">Fluxblog</a> </div>
            <div align="left" class="side"><a href="http://www.teendrama.com" target="_blank">Teen Drama</a> </div>
            <div align="left" class="side"><a href="http://letspushthingsforward.blogspot.com/" target="_blank">Cam</a> </div>
            <div align="left" class="side"><a href="http://joonr.com/" target="_blank">Joonr</a> </div>
            <div align="left" class="side"><a href="http://www.teenageunicorn.com/" target="_blank">Teenage   Unicorn</a> </div>
            <div align="left" class="side"><a href="http://www.regnyouth.blogspot.com" target="_blank">RegnYouth Archives</a> </div>
            <div align="left" class="side"><a href="http://www.stereogum.com" target="_blank">Stereogum</a> </div>
            <div align="left" class="side"><a href="http://www.karenplusone.blogspot.com" target="_blank">Karen Plus One</a> </div>
            <div align="left" class="side"><a href="http://graceisgone.blogspot.com" target="_blank">Grace   is Gone</a> </div>
            <div align="left" class="side"><a href="http://themodernage.org/" target="_blank">The Modern Age </a></div>
            <div align="left" class="side"><a href="http://suddenlylastsummer.blogspot.com/" target="_blank">Suddenly Last Summer</a> </div>
            <div align="left" class="side"><a href="http://casadepunk.com/" target="_blank">Casa De Punk</a></div>
            <p></p>
          </div>
        </div></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

Basically I removed the menu.php and relative css. If you want to style your template either put your css file between style tags or use anon-relative link. Also menu.php was not doing anything useful, and anyway includind php files in blogger template is not allowed. Hope it helps.
shabda
Hey jeremoi your problem solved? If you still getting some problem let us know. If solved let us know too so we may sleep easy.
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.