Jump to content

syntax error, unexpected T_Variable


chrisg777

Recommended Posts

here is some of the code. It keeps telling me its line 42 but I dont see what the problem is. This is a free wordpress theme so i haven't written any of it. I know some coding but mostly just how to hack it apart not write it from scratch.

 

Thanks in advance!

 

35 <li><strong><a href="<?php bloginfo('http://www.bradthrashin.com/wordpress'); ?>/feed/" title="RSS FEED"><span class="feed">RSS</span></a></strong></li><li> Feed Readers: <?php fs_getfeeds_button(); ?><a href="<?php bloginfo('url'); ?>/feed/" rel="nofollow">(Abonnieren!)</a></li>
36 <!-- end rss feed -->
37 		</ul>
38 		
39 
40 		
41 <div id="intro"><div style="width:600px;"><h1><a href="<?php bloginfo('url'); ?>">CHARLOTTENBURG</a><span class="white"> / <?
42 $random_text = array; ("Hello World",
43                     "Welcome at home",
44                     "You Know I'm No Good",
45                     "A Less Ordinary Life",
46                     "Wanna be your idol");
47 srand(time());
48 $sizeof = count($random_text);
49 $random = (rand()%$sizeof);
50 print("$random_text[$random]");
51 ?>!</span></h1></div></div>

dangit I changed it but it still gives the error

check it?

1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
3 
4 <head profile="http://gmpg.org/xfn/11">
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 
7 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » <?php } ?> <?php wp_title(); ?></title>
8 
9 <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
10 
11 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
12 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
13 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
14 
15 <?php wp_head(); ?>
16 </head>
17 <body>
18 <div id="outer">
19 
20 
21 		<ul id="menu">
22 
23 <!-- pages -->
24 
25 <li class="page_item page-item-2"><a href="<?php bloginfo('url'); ?>" title="Blog">Blog</a></li>
26 <li class="page_item page-item-2"><a href="<?php bloginfo('url'); ?>/about/" title="About">About</a></li>
27 <li class="page_item page-item-329"><a href="<?php bloginfo('url'); ?>/work/" title="Work">Work</a></li>
28 <li class="page_item page-item-329"><a href="<?php bloginfo('url'); ?>/downloads/" title="Downloads">Downloads</a></li>
29 <li class="page_item page-item-329"><a href="<?php bloginfo('url'); ?>/photos/" title="Downloads">Photos</a></li>
30 <li class="page_item page-item-1029"><a href="<?php bloginfo('url'); ?>/contact/" title="Contact">Contact</a></li>
31 <!-- end pages -->
32 
33 
34 <!-- rss feed -->
35 <li><strong><a href="<?php bloginfo('http://www.bradthrashin.com/wordpress'); ?>/feed/" title="RSS FEED"><span class="feed">RSS</span></a></strong></li><li> Feed Readers: <?php fs_getfeeds_button(); ?><a href="<?php bloginfo('url'); ?>/feed/" rel="nofollow">(Abonnieren!)</a></li>
36 <!-- end rss feed -->
37 		</ul>
38 		
39 
40 		
41 <div id="intro"><div style="width:600px;"><h1><a href="<?php bloginfo('url'); ?>">CHARLOTTENBURG</a><span class="white"> / <?php
42 $random_text = array("Hello World",
43                     "Welcome at home",
44                     "You Know I'm No Good",
45                     "A Less Ordinary Life",
46                     "Wanna be your idol");
47 srand(time());
48 $sizeof = count($random_text);
49 $random = (rand()%$sizeof);
50 print("$random_text[$random]");
51 ?>!</span></h1></div></div>
52 
53 <div id="quote"><a href="http://www.rhymesayers.com/"><img src="<?php bloginfo('template_url'); ?>/images/72890.gif" alt="Werbung" width="728" height="90" /></a>
54 </div>
55 
56 <!-- END HEADER -->

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.