Lowyat.NET Forums

Welcome Guest ( Log In | Register )

LYN wins Intel-Lenovo-Tangs Blogathon challenge. Thank you everybody!
 
RSS feedBump TopicReply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> Problem with PHP in XML files.

JusticeDeserves
post Nov 4 2009, 02:15 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #1


Regular
******

Group: Senior Member
Posts: 1,009
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Aug 2009
From: Your House






I've added
CODE
AddType application/x-httpd-php .xml

into my .htaccess file

and
[CODE]<? header('Content-type: text/xml'); ?>[CODE]
to the top of my XML file which I want to add PHP support to.

When I visit it using XAMPP, it works fine, it shows the latest feed but when I try it out with Mozilla and IE and Chrome, it downloads the file, and in the file, it contains all my php codes, so why is this happening i would like to ask to all the experts smile.gif

thanks in advanced notworthy.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Bump TopicReply to this topicTopic OptionsStart new topic
 



----debug section please ignore----
Lo-Fi Version Time is now: 24th November 2009 - 11:14 AM
All Rights Reserved 2003-2009 Vijandren Ramadass (~living on a prayer~)