Jump to content

[SOLVED] Not sure of this syntax


ScopeXL

Recommended Posts

Hey everyone, I'm having trouble figuring out which syntax to use to parse this data correctly. Someone help me out here?

 

			<td valign="middle" align="center" style="white-space: nowrap;">

				', theme_copyright(), '

				<br/><br/>

				<span class="smalltext">'. $settings['custom_copyright'] . '</span>
				<br />Page views since May 17, 2009<br />
				', include("/counter/count.php");, '
			</td>

 

What I'm having trouble with is the include("/counter/count.php"); part. I can't seem to get that right with the file. I tried setting the include line as a variable, and calling the variable where I want the page included, still no dice. The error it gives me is:

 

Parse error:  parse error, unexpected ',' in index.template.php on line 1037

(That is on the include line I have provided.)

 

Any insight on this? This would help me out a lot. If anyone needs to know, the include script I am trying to include is located at http://bnetweb.org/counter/count.php which I shortened with /counter/count.php in the include line.

Link to comment
https://forums.phpfreaks.com/topic/158832-solved-not-sure-of-this-syntax/
Share on other sites

Well, it's because of the very reason described in the error you were given. Use of period, not a comma.

 

echo '<td valign="middle" align="center" style="white-space: nowrap;">' . theme_copyright() . '<br/><br/>';
echo '<span class="smalltext">' . $settings['custom_copyright'] . '</span>';
echo '<br />Page views since May 17, 2009<br />' . include("/counter/count.php") . '</td>';

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.