47 users online (1 members and 46 guests)  


  Results 1 to 10 of 10

Related

  1. How can i learn HTML..?    Forum: HTML Forum
    Replies: 15
  2. New and want to learn    Forum: General Discussion
    Replies: 1
  3. Where can I start to learn?    Forum: Website Scripts Forum
    Replies: 8
  4. Looks Like I Could Learn Something Here!    Forum: Introduce Yourself
    Replies: 1
  1. #1
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    after messin around and trin to learn php through the manual I thought...

    screw it

    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---?>.

  2. #2
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    no takers?


  3. #3
    Zaire's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Hamburg, NY
    Posts
    312
    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.

  4. #4
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    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

  5. #5
    Zaire's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Hamburg, NY
    Posts
    312
    Live for today, not tommorrow.


    Im don't know much about xml at all, perhaps you could enlighten me?

  6. #6
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    xml

    XML is meant to be displayed, it uses CSS to tell how it is displayed. You create your own tags.

    <?XML version="1.0" ?>

    <Welcome>

    <Welcome1>
    <div class="welcome">Welcome To This Site!</div>
    </Welcome1>

    <Welcome2>
    <div class="welcome">This Site Is The Best!</div>
    </Welcome2>

    </Welcome>

    ?>

    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

  7. #7
    Zaire's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Hamburg, NY
    Posts
    312
    Thanks,
    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

    -Eric

  8. #8
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    xsl

    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

  9. #9
    Zaire's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Hamburg, NY
    Posts
    312
    Ahah!

    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

  10. #10
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    haha

    basketball-web design...psh! How else could you go wrong!

    Don't take the time to get to know xsl either



Tags for this Thread