Hi,
ich weiss nicht ob es besser ist hier auf deutsch oder englisch zu schreiben, deshalb hier beide Varianten:
I tried to install 4images 1.7.6 on IIS using PHP 5.2.5 via fast-cgi. Most things seem to work, but I cannot use captchas: Neither IE nor Firefox is displaying the image. Manually pointing the browser to
http://localhost/captcha.php doesn't show me an image.
I then tried to download the captcha using wget. This returns a file, but gimp cannot open this file, stating it would not start with the jpeg header but with 0x0d0a
When I manually inspected the file, I saw that the file starts with hex: 0d0affd8
So there is a CR/LF before the real data starts. When I delete this leading CR/LF the image gets displayed.
I think PHP/IIS is somewhere injecting a newline where it should not? Any ideas?
===============================
Ich habe versucht 4images 1.7.6 auf IIS6 oder IIS7 mit PHP 5.2.5 über fast-cgi zu installieren. Das funktioniert auch, bis auf die captchas. Die werden nicht angezeigt (weder in Firefox noch im IE). Dann habe ich mit wget die datei
http://localhost/captcha.php runtergeladen und festgestellt dass sie mit 0x0d0affd8 beginbt, daher es gibt nen initialen CR/LF bevor die eigentlichen jpeg-magic-bits beginnen. Ist das Problem irgendwie bekannt? Die Forensuche konnte mir leider nicht helfen.
Gruß
orgler