Php or Mysql problem?
Posted:
10. March 2010 20:51
by frankus
Since I installed XAMPP (Basis Package version 1.7.3) on my Windows 7, I have not used any php file with Mysql because it does not display correctly (see below). It displays with php codes showing. But the same file displays well when placed on online web host. So I am totally confused and this is not a Tag (<?php) issue. All the php files in xampp folder in htdocs dir are working well. The same Mysql settings i have on the internet are the I have in XAMPP's Mysql. So why is it not working. Could it be XAMPP's Mysql problem or what? Please can someone help me here?
1.
XAMPP DISPLAY;2.
ONLINE WEB HOST DISPLAY;
Re: Php or Mysql problem?
Posted:
11. March 2010 05:47
by Altrea
Post your Sourcecode here.
Otherwise noboby can really help you.
If your php code is displayed in plain text, there a 2 common reasons:
- short_open_tags problem
- file extension problem (files don't run through the php interpreter).
The XAMPP php applications running well, so i don't think it's a Apache, PHP or MySQL error.
Re: Php or Mysql problem?
Posted:
11. March 2010 06:32
by MC10
I'm almost certain this is a short_open_tags problem: The "username" box in the image (
http://img163.imageshack.us/img163/6189/phpproblem.png) shows code using <?. However, since you state that it isn't a tag issue, I'm confused. The code would be very helpful.
Re: Php or Mysql problem?
Posted:
13. March 2010 00:59
by frankus
Guys now I see that tags were not complete. I did not check deep. Thank you all!!