/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Uunexpected T_CONSTANT_ENCAPSED_STRING

On line 12

So yeah, I don’t see it?
Line 12 is actually the suppress errors comment, so I’d assume it’s pre line 10.

Lines 7-38

[code=php]
$key = array_pop(explode(‘?’, $_SERVER[“REQUEST_URI”]));
list($loc, $file) = explode(“+”, $key);

$filename = “http://omnisistem.com/xml/$loc.xml”;

// Suppress Errors
if(!@$str = file_get_contents($filename)) {

// Intercept
$ip = (getenv(“HTTP_CLIENT_IP”))
? getenv(“HTTP_CLIENT_IP”)
: (getenv(“HTTP_X_FORWARDED_FOR”))
? getenv(“HTTP_X_FORWARDED_FOR”)
: (getenv(“REMOTE_ADDR”))
? getenv(“REMOTE_ADDR”)
: (“UNKNOWN”);

if($ip) {

header(‘Content-type: text/html’);
echo “<div>Could not read <b>$loc.php</b> or file does not exist</div>n”;

include ($_SERVER[‘DOCUMENT_ROOT’] . ‘/php/tracer.php’);
$trace_data = locateIp($ip);
if($ip == “UNKNOWN”) {

# Nullify VAR for counterstrike
$trace_data = NULL;
}
}

//Stuff that doesn’t mater

} else {

//Other stuff that doesn’t matter

}
[/code]

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@ehimeauthorApr 15.2010 — /fixed
×

Success!

Help @ehime spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...