|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (6 bit)
Join Date: May 2003
Location: RI
Posts: 35
|
XML Conversion ??
I currently have a XML File that I am trying to upload. The place I am uploading to only accepts PHP.
Is there something that I can use to convert XML to PHP?? Any help would be appreciated. |
|
|
|
|
|
#2 |
|
Professional gadfly
|
What is the content of the file you are trying to upload? What kind of site are you uploading to?
You can change the file extension to anything you want, but if the site you are uploading to expects PHP code and gets XML, it isn't going to work. |
|
|
|
|
|
#3 |
|
Member (6 bit)
Join Date: May 2003
Location: RI
Posts: 35
|
It is a puplisher XML file.
The code must be PHP changing the extension does not work. Thanks |
|
|
|
|
|
#4 |
|
Professional gadfly
|
XML is just a markup language. There is no easy way to translate it to anything else because of how it is set up. Your best bet is to go to the application that created the XML file and see if there is a way to produce PHP instead.
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Create a file with .php extension, open it in some text editor, add the following in the beginning:
Code:
<?php echo <<<XML_FILE_NEXT copy XML code and paste it here XML_FILE_NEXT; ?> Last edited by aym; 04-08-2004 at 03:21 PM. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|