Results 1 to 10 of 10
10-22-2001, 07:38 PM #1
after messin around and trin to learn php through the manual I thought...
I went out and bought a book and now am beginning to grasp the full potential php can have But one problem...php no like xml.
To offically be called "xhtml" the site I learned from said to put <?xml version="1.0" encoding="iso-8859-1" ?>
(Well I actually put the ' encoding="iso-8859-1" ' part in there instead of in the <meta> section or whatever, but I deleted that and it still didn't work). When I put php on my html page, save it as .php, and view it and stuff, with the <xml> in there, it gets a parse error (it says on line one), I delete the xml thing and the php works. Is there any way around this?
I'm not using the <?---?> shortcut version of php, my book says that might mess it up, I use the normal <?php---?>.
11-01-2001, 01:35 AM #2
11-01-2001, 01:28 PM #3
You don't need X*L to use php dude!
And as well, that is the wrong tag, http://sitepoint.com has a nice XSL article, which also shows the correct XML tags.
11-01-2001, 05:33 PM #4
haha I know
I just want the <xml> tag there for future browsers ya know I had the correct xml tags, but php tags won't display on a page with the <xml> on it. That's my problem
11-02-2001, 01:54 PM #5
Live for today, not tommorrow.
Im don't know much about xml at all, perhaps you could enlighten me?
11-03-2001, 04:53 PM #6
XML is meant to be displayed, it uses CSS to tell how it is displayed. You create your own tags.
<?XML version="1.0" ?>
<div class="welcome">Welcome To This Site!</div>
<div class="welcome">This Site Is The Best!</div>
However I use it for XHTML, which is just a "correct" form of HTML. There's 3 "doctypes", I"ll mention two however: Transitional, Strict.
Transitional has most the HTML tags in it however leaving out a lot still.
Strict has a lot of HTML tags taken away.
I use the <XML> for my XHTML. You can also open xml like in php <? stuff ?>, but my book said that would confuse php and cause an error. I use xml correctly but I can't get the php to work. I'll have to look up this problem I guess. Sorry for the long definition if it wasn't wanted, I'm just bored
11-03-2001, 08:34 PM #7
I have been readin' up on XML at devshed.com, xml.com, sitepoint.com and w3schools.org
But thanks for the quick lesson, every bit helps
11-03-2001, 11:38 PM #8
ugh...I was just lookin up XSL, another type of style sheet. I think I'll just stick with CSS...
CSS and XHTML aren't leavin anytime soon right? Cause combined with a little PHP you can't beat the combo
all these up-coming technologies...killin me
11-03-2001, 11:55 PM #9
Your allstar.. I was wondering who you were, so I checked out your profile.. ahh, love the profile
As for XSL.. I have no idea what it is, or how it works
11-04-2001, 12:53 AM #10
basketball-web design...psh! How else could you go wrong!
Don't take the time to get to know xsl either