Page 1 of 1

php and ajax

PostPosted: 04. September 2009 03:47
by saturnx
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.

Re: php and ajax

PostPosted: 04. September 2009 05:43
by Altrea
Do you use short open php tags (<?= ... ?>) in your php-files?

Then there are 2 solutions for your Problem:

Replace all
Code: Select all
<?=

with
Code: Select all
<?php echo


or
enable short_open_tags (with ini_set() in your php-files, .htaccess or directly in your php.ini)

Re: php and ajax

PostPosted: 04. September 2009 07:48
by saturnx
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.

Re: php and ajax

PostPosted: 24. January 2010 10:09
by ardienne
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