Thanks a hellova lot dan.
Because I suck at PHP:
wth?Quote:
Parse error: syntax error, unexpected ''' in /home/xvisor/public_html/index.php on line 234
Off-topic: Sure.
Printable View
Thanks a hellova lot dan.
Because I suck at PHP:
wth?Quote:
Parse error: syntax error, unexpected ''' in /home/xvisor/public_html/index.php on line 234
Off-topic: Sure.
Well heres a quick varient on the code i would usealy use
PHP Code://Get varible from url
$p = $HTTP_GET_VARS['p'];
//Set page dir and defult
$page_dir = "Pages";
$defult_page = "home";
//if $p aint set, we include home page
if(!$p){ include($page_dir."/".$defult_page.".php"); }
else
{ if(file_exists($page_dir."/".$p.".php")){ include($page_dir."/".$p.".php");} // if the file exists in the directory, we know its real and allowed, so we inclucde it.
else{ include($page_dir."/".$defult_page.".php");} // if its not, its ether a wrong dir or bad hacking attempt, so we include the home page again
Am I bad luck or something:
Quote:
Originally Posted by error
Quote:
Originally Posted by line 228
The problem has happened before the line of code in question, most likly in your own code you have forgotten to add a ; or have missed a }
I'm forced to use iframes because I suck at PHP.
LOL adam <3 Bless. php will work for u one day...
Unlucky :(
Find other coding stuffs.