It's been awhile since I did anything with PHP and I actually forgot the friggin include code that makes the link look like http://www.yourname.com/main.php?id=test.html
PHP Help
Started by J-John, Aug 17 2006 08:39 PM
3 replies to this topic
#1
Posted 17 August 2006 - 08:39 PM
#2
Posted 17 August 2006 - 08:49 PM
well...i would not advise ever ever ever using include like that as even a beginner at php could hack you site like that.
Again please dont use a user defined file like you are. Use switch or another method for navigation.
include "file.ext";
Again please dont use a user defined file like you are. Use switch or another method for navigation.
#3
Posted 18 August 2006 - 05:00 AM
if(isset($_GET["page"])) {
if($_GET["page"]=="home") {
include "index.php";
} else if($_GET["page"]=="gallery") {
include "gallery.php";
} else if($_GET["page"]=="hidden") {
include "porno.php";
} else if($_GET["page"]=="contact") {
include "contact.php";
}
} else {
include "index.php";
}
defaults to include index.php
#4
Posted 20 August 2006 - 05:54 AM
i think if u using like that, it will make a hole in ur website and someone can explore that.
it can be like this (for example) : http://www.yourname....hp?id=index.php and bangggg....
it can be like this (for example) : http://www.yourname....hp?id=index.php and bangggg....
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
