CodeIgniter Forums
404 error question? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: 404 error question? (/showthread.php?tid=40451)



404 error question? - El Forum - 04-08-2011

[eluser]R_Nelson[/eluser]
is there a way to get the 404 error to display more info like maybe the URL it is trying to load?


404 error question? - El Forum - 04-09-2011

[eluser]John_Betong_002[/eluser]
[quote author="R_Nelson" date="1302342647"]is there a way to get the 404 error to display more info like maybe the URL it is trying to load?[/quote]

Try this in your 404 error page:
Code:
echo '<pre>';
print_r($_SERVER);
echo '</pre>';

// eg:
// echo $_SERVER['SERVER_NAME'];

This will give a lot of information, pick out what you want


404 error question? - El Forum - 04-09-2011

[eluser]R_Nelson[/eluser]
Thanks that helped me find my error. Someday i will learn to type lol!