Welcome to WebmasterWorld Guest from 3.231.226.211

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

how to change the way the server link is displayed on an error

     
1:29 pm on Jan 7, 2004 (gmt 0)

New User

10+ Year Member

joined:Jan 7, 2004
posts:12
votes: 0


What i mean is if make a .php file on my own apache server with some rubbish in it and then go tto the link in iexplore it will give errors like:

Warning: main(./extension.inc): failed to open stream: No such file or directory in D:\Apache\Apache2\htdocs\test\index.php on line 25

But how do i change the way D:\Apache\Apache2\htdocs\ is displayed into "www.mysite.com" or something else. Just so ppl dont see entire place where the server runs on my hd.

4:57 pm on Jan 7, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


Leys,

I don't think you can change that, unless you modify your copy of php on the server. That is not a URL, it is a local filepath. It is also not included in a redirect response. Therefore, standard methods of URL rewriting cannot be used.

You may be able to turn *all* error messages off with some php option settings - but I'm not sure, and that is a php-forum question. :)

Of course, the easy answer may be to thoroughly debug your scripts, so that users never get an error. ;)

Jim