ScopeXL Posted May 19, 2009 Share Posted May 19, 2009 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 More sharing options...
eRott Posted May 19, 2009 Share Posted May 19, 2009 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>'; Link to comment https://forums.phpfreaks.com/topic/158832-solved-not-sure-of-this-syntax/#findComment-837728 Share on other sites More sharing options...
ScopeXL Posted May 19, 2009 Author Share Posted May 19, 2009 When I change it to a period, the template gets messed up. View @ http://bnetweb.org at the very bottom footer where it says "Page views since May 17, 2009" also, the file doesn't seem to be included. Link to comment https://forums.phpfreaks.com/topic/158832-solved-not-sure-of-this-syntax/#findComment-837735 Share on other sites More sharing options...
ScopeXL Posted May 19, 2009 Author Share Posted May 19, 2009 Nevermind, I have found a workaround for this. Thank you eRott for your help. Link to comment https://forums.phpfreaks.com/topic/158832-solved-not-sure-of-this-syntax/#findComment-837742 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.