php and ajax

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

php and ajax

Postby saturnx » 04. September 2009 03:47

Hi there,

I am having a hard time figuring out my current installation of xampp. I have two development pc's, both running xampp version 1.7.1 and 1.7.2 respectively. I have an existing php file which allows users to check if a domain is available with ajax sending the request to another php file. When i run the same script on the dev machine running xampp 1.7.2, it does not return my search results but instead the entire contents of the php file. It is as if that external file was not being parsed. But on the machine running xampp 1.7.1 it is returning my search results properly. Is there a setting that i have set for my 1.7.2 version? Loading other php files on xampp 1.7.2 is fine, only for this particular script its not working.

This script is working as we've been using it for almost a year now and running on our company website.
Posts: 2
Joined: 04. September 2009 03:05

Re: php and ajax

Postby Altrea » 04. September 2009 05:43

Do you use short open php tags (<?= ... ?>) in your php-files?

Then there are 2 solutions for your Problem:

Replace all
Code: Select all

Code: Select all
<?php echo

enable short_open_tags (with ini_set() in your php-files, .htaccess or directly in your php.ini)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
AF Moderator
Posts: 8248
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: php and ajax

Postby saturnx » 04. September 2009 07:48

By practice i don't use short tags since its been deprecated. If i am not mistaken in 1.7.2 short tags is off by default. The dev machine using 1.7.1 version has short tag support turn off.

It just seems like its not parsing the php file and its just this particular file. i just want to find out what's the difference in settings between 1.7.1 to 1.7.2 that i can tweak for this to work nicely.. I love the additional features in the newer version and would like to continue to use 1.7.2 if possible but need to sort out this error.
Posts: 2
Joined: 04. September 2009 03:05

Re: php and ajax

Postby ardienne » 24. January 2010 10:09

Where can i buy a pair of Canvas shoes for cheap in Ajax, Ont? i live in Ajax. but i cant seem to find a good pair of canvas shies for under 14.99. I see them for 14.99 on the internet, but i cant find any in person! its really frustrating because i NEED a pair of them soon to match with this outfit i want to wear.
UK matrimonials
Posts: 3
Joined: 21. January 2010 07:02

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 44 guests