Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

including xml into a php document 1

Status
Not open for further replies.

venedos

Technical User
Oct 25, 2006
8
CZ
Is there any way i can include a .xml file into a php document? I tried classical include() and require() functions, but the problem is that the php parser rocognises the question mark at
Code:
<[b]?[/b]xml........

to be the beginning of a php script.
Thx in advance.
 
Make it php-print the part containing "?".
[tt] <?php print('<'.'?');?>xml version="1.0" encoding="utf-8" <?php print('?'.'>');?>[/tt]
 
Now the the "?" signs are ignored by the php parser, that's fine, but the xml content of the file is not evaluated.
It is as if it ignored the xsl (link), which it most probably does because the file extension is php3 and not xml; is there any way i can make the xml parser evaluate the content inside the .php3 file? Thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top