Finally, this code did the trick for me:

<?php
if (!function_exists('virtual')) {
 echo "<h1>Error, not running as Apache module</h1>";}

// get name of the requested page
$request = rawurldecode($REQUEST_URI);
if(get_cfg_var('magic_quotes_gpc')) $request = stripslashes($request);

// check that this is not called directly
if ($request == $PHP_SELF) {
 echo "This page should not be called directly";
 exit;}

$req = htmlspecialchars ($request);
echo $req . "<br>";
printf('%512s', ' ');
?>

It shows the name of the file that generated the 404 error.

Amrit
http://www.bytesworth.com


____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub


________________ http://www.wdvl.com _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.



Reply via email to