Posted by Michael Fesser on 06/27/07 20:55
..oO(yaaros@gmail.com)
>I found the reason why is errors written in log file but I still don't
>understand that :).
>Before in the code I have got an img tag which was written like that:
>
><img src="?" alt="" width=1 height=1>
>
>It have bad src attribute and this causes somehow my problems. When I
>delete this img tag log file become empty after refreshing pages.
>Intresting huh ??
Logical. The URL in the 'src' attribute is empty. When resolving that,
the browser starts with the base URL, which is usually the one of the
current document unless you use a 'base' element. So in fact requesting
the image leads to a second request of the same page, but with an empty
query string -> exception.
You could also write the content of $_SERVER['REQUEST_URI'] to your
error log to see that.
Micha
Navigation:
[Reply to this message]
|