2 question about xhtml and files location

Discussion in 'PHP' started by jonhyhar, May 23, 2011.

  1. #1
    Hello guys, I have 2 questions, I don't know how to do :(

    1.) I crawl search results from turkish and asian sites and some characters are xhtml
    (like ü -> ü)

    I want to insert the words into my db but not like ü
    How can I covert the characters from xhtml to normal by PHP?


    2.) How can I get the zip file location by this url? I tried get_headers but didn't work :/

    
    POST: http://www.free-power-point-templates.com/meeting-powerpoint/
    
    Download link: http://www.free-power-point-templates.com/download/718/
    
    Code (markup):
     
    jonhyhar, May 23, 2011 IP
  2. 50inches

    50inches Greenhorn

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #2
    To question 1:

    I think that when you store it in your DB with utf8, the carachters are automatically converted. If not, in your crawling, try to html_decode before inserting into the DB.
     
    50inches, May 23, 2011 IP
  3. jonhyhar

    jonhyhar Active Member

    Messages:
    166
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3

    I tried that but still doent work :confused:
     
    jonhyhar, May 23, 2011 IP