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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple <? ?> types

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
I'm just playing right now, but I want to include an xml file from my php file.

My php tags are
<?php ?>

and when I say
include &quot;test.xml&quot;;

I get an error because the first line is
<?xml blahblahblah?>

I remember there being a setting in my php.ini to allow for this, anyone remind me what it is? And further, let me know if this is going to cause helatious issues with other PHP pages which may just be specified as
<?
phpcode here
?>

Thanks

Rob
 
so I think the .ini file just answered it self... I need to turn off the short tags and convert all other apps, yes?

There another way, since what I really want is to allow for other long tags?

-Rob
 
Do you need to include this XML file or can you just read it and print the file (using [tt]readfile[/tt])? //Daniel
 
Neither nor, just goofing around with some functionalities and I noticed this little issue, was wondering if there were workarounds.

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top