• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PHP Linking

the easy way is for

page.php?id=xxx

PHP:
<?
if ($id=='index'){include "index.html";exit;}
if ($id=='pics'){include "pictures.html";exit;}
if ($id=='cheese'){include "edam.html";exit;}

include "nothing_here.html";
?>

this is very basic you could have the keyword/links in a db or flatfile etc

the pages index.html/edam.html contain the pages seen by the user
 
<?
if ($id=='index'){include "index.html";exit;}
if ($id=='pics'){include "pictures.html";exit;}
if ($id=='cheese'){include "edam.html";exit;}

include "nothing_here.html";
?>


wat page shall i put for this line:
include "nothing_here.html";

oh and where should I insert the page codes into this page where I put the above codes?

Thanks :D
 
Last edited:

wat page shall i put for this line:
include "nothing_here.html";

nothing_here.html is your defalt page something like - 'requested page doesn't exist.' or '404'

oh and where should I insert the page codes into this page where I put the above codes?
:confused:
 
Originally posted by lucifer

nothing_here.html is your defalt page something like - 'requested page doesn't exist.' or '404'

is that only for 404? how about 500? :D

oh and where should I insert the page codes into this page where I put the above codes?
i have figure it out :eek: :p thanks :)
 
shit!
i think i forgotten which file should i put these code:
Code:
<?
if ($id=='index'){include "index.html";exit;}
if ($id=='pics'){include "pictures.html";exit;}
if ($id=='cheese'){include "edam.html";exit;}

include "nothing_here.html";
?>

where should i put these code into? I mean i should put these codes into wat file and name the file as wat? I remember i figure it out last time but after my f2s account was deleted, i can't get back to refer how it was done! can anyone remind me again plz? :p

Thanks!!! :classic2:
 
Originally posted by <|R0cKm@nX|>


is that only for 404? how about 500? :D


I think we should place something like this: "F*uck off, wanna hack my site? Damn you". Because nobody care of changing you parameters except for checking your vulnerability.
 
Back
Top