|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
404 Errors
hey everyone,
Ive made a 404 error page for my site, using .htacess The problem is i want to make a log of all the 404 errors. if i use $_SERVER['PHP_SELF']; it returns the error page, does anyone know how to get the page that was requested?? from the address bar?? would i have to use $_GET ?? or something. |
|
#2
|
|||
|
|||
|
$_SERVER["REQUEST_URI"] should give you what you need. If not, use:
<?php foreach($_SERVER as $k => $v) echo "$k = $v<br>"; ?> |
|
#3
|
|||
|
|||
|
na that didnt work?
i also tryed HTTP_REFERER, but that gave me the last url that worked! werid?? any other ideas? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > 404 Errors |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|