You are here: Re: error-logs() bug ?? « PHP Programming Language « IT news, forums, messages
Re: error-logs() bug ??

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация