Thanks a hellova lot dan.
Because I suck at PHP:
wth?Parse error: syntax error, unexpected ''' in /home/xvisor/public_html/index.php on line 234
Off-topic: Sure.

Thanks a hellova lot dan.
Because I suck at PHP:
wth?Parse error: syntax error, unexpected ''' in /home/xvisor/public_html/index.php on line 234
Off-topic: Sure.
Last edited by tekni; 26-11-2006 at 04:55 PM.
unitedstates,canada,mexico,panama,haiti,jamaica,pe ru,republicdominian,cuba,caribbean,greenland and el salvadour too.
puertorica,colombia,venezuela,honduras,guyana and still, guatamala,bolivia then argentina and ecuador,chile,brazil.
costarica,belize,nicaragua,bermuda,bahamas,tobago, sanjuan,paraguary,uruguay,suriname,frenchguiana,ba rbados and guan.
norway and sweden and iceland and finland and germany now one piece, switzerland,austrira,czechoslovakia,italy,turkey and greece.
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:
Originally Posted by error
Parse error: syntax error, unexpected T_VARIABLE in /home/xvisor/public_html/index.php on line 228Originally Posted by line 228
$p = $HTTP_GET_VARS['p'];
Last edited by tekni; 26-11-2006 at 05:02 PM.
unitedstates,canada,mexico,panama,haiti,jamaica,pe ru,republicdominian,cuba,caribbean,greenland and el salvadour too.
puertorica,colombia,venezuela,honduras,guyana and still, guatamala,bolivia then argentina and ecuador,chile,brazil.
costarica,belize,nicaragua,bermuda,bahamas,tobago, sanjuan,paraguary,uruguay,suriname,frenchguiana,ba rbados and guan.
norway and sweden and iceland and finland and germany now one piece, switzerland,austrira,czechoslovakia,italy,turkey and greece.
I'm forced to use iframes because I suck at PHP.
unitedstates,canada,mexico,panama,haiti,jamaica,pe ru,republicdominian,cuba,caribbean,greenland and el salvadour too.
puertorica,colombia,venezuela,honduras,guyana and still, guatamala,bolivia then argentina and ecuador,chile,brazil.
costarica,belize,nicaragua,bermuda,bahamas,tobago, sanjuan,paraguary,uruguay,suriname,frenchguiana,ba rbados and guan.
norway and sweden and iceland and finland and germany now one piece, switzerland,austrira,czechoslovakia,italy,turkey and greece.
Unlucky![]()
Find other coding stuffs.
Want to hide these adverts? Register an account for free!