<?php
/*
* userprofile.php
* bshades.com
* Coded by Orgy
* rrawbb[at]gmail[dot]com
*/
require_once("inc/_top.php");
That's my code that's having a problem.
Here's the error message:
Parse error: syntax error, unexpected T_REQUIRE_ONCE in /home/blacksha/public_html/userprofile.php on line 1
As you can see, the require_once isn't even on line 1, so I have no idea what the problem could be.
NBSP
. You had an invisible non-standard whitespace character before your require statement. That's the only reliable way to reproduce this error.
eval( chr(0xA0) . ' require_once(1); ' );
# that's nbsp
// PHP Parse error: syntax error, unexpected T_REQUIRE_ONCE in
0xA0
/nbsp gets interpreted as bareword at that position. Basically the same as having a constant right in front of your statement:
ASCII require_once(123);
This error code can also be reproduced if you forgot the trailing semi-colon ; to terminate a statement...
i.e.
define('FOO', 'foo')
require_once('foo.php');