Xampp (apache) serves 1x1 px gif images to most GET requests

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Xampp (apache) serves 1x1 px gif images to most GET requests

Postby scarby » 22. April 2009 15:00

i'm having quite an odd problem here that i dont really understand:

when running xampp on windows vista x64 when trying to access certain files all i am being served with is a 1x1 pixel transparent gif. There is also no record of the GET request in the xampp log (or error log for that matter as you would expect with a file not found).
for example:
http://localhost/ad/
correctly serves http://localhost/ad/index.php

however:
http://localhost/ad/index.php
serves a 1px x 1px gif image

by the same token every file linked to from http://localhost/ad/ returns a 1 px gif image inlcuding external style sheets, javascript files, ajax requests (using an ajax request and writing innerhtml simply outputs GIF89a) however anything placed within a php inlude or require statement works without a hitch (even though trying to access these included files through the browser will simply return the same gif image). I have been using apache/PHP/MySQL (usually on linux - however my linux server recently suffered a catastraphic failure) for quite some time and have never encountered anything like this.
scarby
 
Posts: 3
Joined: 22. April 2009 14:31

Re: Xampp (apache) serves 1x1 px gif images to most GET requests

Postby Sharley » 22. April 2009 22:11

Open in your browser http://localhost/xampp/phpinfo.php and look for this line:
Loaded Configuration File
Let us know what it says please.

BTW what version of XAMPP have you installed?

What do you see when you go to http://localhost/
What do you see when you go to http://localhost/phpmyadmin
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Xampp (apache) serves 1x1 px gif images to most GET requests

Postby scarby » 22. April 2009 23:35

Loaded Configuration File E:\xampp\php\php.ini

XAMPP version is 1.7.1

currently localhost points to the xampp setup pages as i havent had the motivation to change this in the apache config/remove the current index page + move current project to root (shouldn't matter as no links are absolute). This works fine. As does PMA.

It seems the only stuff that doesn't work is content i've put in.

unfortunately i cant really afford to loose much more time on this so might have to run out and buy something like an eee box to get my dev server back online if this doesn't get figured out in the next couple days (as much as i would rather wait a week or so till i can grab an old PC back from a friend).
scarby
 
Posts: 3
Joined: 22. April 2009 14:31

Re: Xampp (apache) serves 1x1 px gif images to most GET requests

Postby Sharley » 23. April 2009 00:05

scarby wrote:Loaded Configuration File E:\xampp\php\php.ini

XAMPP version is 1.7.1

currently localhost points to the xampp setup pages as i havent had the motivation to change this in the apache config/remove the current index page + move current project to root (shouldn't matter as no links are absolute). This works fine. As does PMA.

It seems the only stuff that doesn't work is content i've put in.
XAMPP looks to be working fine so as you say your own content may be at fault and I suspect a PHP version issue with your code.

Possibilities are to upgrade your code for use with the latest 5.2.9 PHP version in XAMPP 1.7.1 or use an older version of XAMPP that contains both PHP4 and PHP5 with the ability to switch between them.

The last known version of XAMPP which had this facility is 1.6.8 and this, as well as other previous releases, can be found at the SourceForge Windows Archive.

This approach may save you some time and I hope is also helpful.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Xampp (apache) serves 1x1 px gif images to most GET requests

Postby scarby » 23. April 2009 13:19

there is no version issue with my PHP code i assure you. i am having the same issue with static content such as javascript and css files as mentioned in my first post. I have been running php 5since its release previous development server.
scarby
 
Posts: 3
Joined: 22. April 2009 14:31


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests