Results 1 to 8 of 8
11-12-2001, 07:17 PM #1
Someone hava problem with XML and PHP?
I was lookin' at a XML tutorial, trin' to understan how it worked, and I came accross something interesteing.
XML files use <?....?> to open with, and php also uses this, and it's called php's "short-style tag"
Well, if you use those for php, it doesn't know if you redeclaring the XML file or not, so you have to use
For your php code.. That is the normal tag anywayz
Hope it helps.. i think it was derek
11-12-2001, 08:24 PM #2
it was me...
but unfortunetly I read that in my php book, I copied the exact code block on from my book with the <?xml ?> things (not short tag for php), and it still didn't work. Maybe it's Foxserve? I dunno thx for tryin I'll fcheck into that I'd never thought maybe it was foxserve.
11-12-2001, 09:28 PM #3
So you had somethin' like this
<title><?php echo($title); ?></title>
<body><?php echo($body); ?></body
11-13-2001, 12:10 AM #4
it won't take <?xml version="1.0" ?> at all or anything like that...and anything just plain <? ?> is registered as php.
11-13-2001, 12:23 AM #5
That's not what I ment..
The xml start stays like that, but any php you use in the xml, has to be normal tag style <?php ... ?>
11-13-2001, 12:37 AM #6
no that's what what I mean ;) haha
that's what I was saying...in a confusing style I guess all I know is anything with <xml> at the start of it is rejected by the .php. With mine anyways. How's it with yorus? It doesn't matter what's on the rest of the page the first line is rejected..the line with the <xml> on it. and I do use the <?php; ?> style on it.
11-13-2001, 12:40 AM #7
Any chance you tried namin' it .xml ?
11-13-2001, 12:48 AM #8
but it's way late so I don't want to get into anything I'm just gonna go to bed but no I haven't, but would php work with the .xml extension?