CainFool Posted February 7, 2009 Posted February 7, 2009 I'm much of a noobie to PHP. I've seen people have http://mydomain.com/index.php?action=contact I know that the code for that is inside the index.php part, but I would be greatful if somebody could tell me that. Thanks. Quote
shedh Posted February 7, 2009 Posted February 7, 2009 Re: [REQUEST] PHP Help depends on how you want that to work. if you want to use page includes read this: http://www.sebastiansulinski.co.uk/web_design_tutorials/php/php_url_parameter.php their are some other ways that people may want to show you so pick wisely ;) Quote
CainFool Posted February 7, 2009 Author Posted February 7, 2009 Re: [REQUEST] PHP Help Well I was looking around the internet and I found this code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That seems alot easier, by the term "includes". Quote
John99 Posted February 7, 2009 Posted February 7, 2009 Re: [REQUEST] PHP Help Well I was looking around the internet and I found this code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That seems alot easier, by the term "includes". Ya, but everytime you want to include a page there your making the code a lot bigger than it needs to be, using functions and cases, and the switch method. Like shedh said. http://www.sebastiansulinski.co.uk/web_ ... ameter.php Will just work as good as the one you have. Quote
CainFool Posted February 8, 2009 Author Posted February 8, 2009 Re: [REQUEST] PHP Help I just want to try PHP out, as I'm pretty new to it. Quote
Isomerizer Posted February 8, 2009 Posted February 8, 2009 Re: [REQUEST] PHP Help All I can do at that link is laugh!! page.php?include=../../../.htpassword_file - wow! Just took a minute to try use this injection method on my game and like I feared it worked. Pretty simple to block it, filter out ../ or just allow letters/numbers... and maybe a char restriction... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
CainFool Posted February 9, 2009 Author Posted February 9, 2009 Re: [REQUEST] PHP Help I've just worked out another new code. You don't need case or any of that, just small things. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now that's alot easier. With my last codes I found, i noticed that they dont just come up on ?page=contact, they come up on the index page aswell, and the code now doesn't. And that code is alot easier I'm using now. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.