Page 1 of 1
[SOLVED] Includes again....
Posted: Sat Nov 29, 2003 4:46 am
by Dale

I have a problem with those stupid includes again....
I put that in:
Code: Select all
<?php include("{$_GET['url']}.php"); ?>
But when i enter the following url:
http://www.jasonbucher.com/dale/punbb/i ... p?url=main
It suppose to say: main page (thats what i quickly wrote on there, to see if it works)
But instead it says:
Fatal error: Call to undefined function: inlcude() in g:\apache\htdocs\dale\punbb\index.php on line 26
(And i've just noticed that INCLUDE has been spelt wrong in the error aswell...

)
Posted: Sat Nov 29, 2003 7:07 am
by mchaggis
Try:
Code: Select all
<?php include "{$_GET['url']}.php"; ?>
Have u considered the security implications of the above line tho?
http://www.jasonbucher.com/dale/punbb/i ... c/password
If some1 can trick the include to ignore the .php blah blah blah
Posted: Mon Dec 01, 2003 4:00 am
by Dale
Fatal error: Call to undefined function: inlcude() in g:\apache\htdocs\dale\punbb\index.php on line 27
Posted: Mon Dec 01, 2003 4:04 am
by Dale
Fixed
Thx