Print some strings from code

Discussion in 'PHP' started by shotazi, Dec 2, 2007.

  1. #1
    so i want to script print PHP and Image url from this code:

    <strong>title: PHP </strong>
    <br>
    <img src="image url" />

    how i can do this? :confused:
     
    shotazi, Dec 2, 2007 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    echo ""?? aint that right?? didnt understand ur question though..
     
    bartolay13, Dec 2, 2007 IP
  3. Kwaku

    Kwaku Well-Known Member

    Messages:
    1,217
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    140
    #3
    <strong>title: <?=$title?> </strong>
    <br>
    <img src="image url" />

    ?
     
    Kwaku, Dec 2, 2007 IP
  4. shotazi

    shotazi Peon

    Messages:
    422
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <strong>title: here is some text</strong>
    <br>
    <img src=" here is image url " />

    i want to get text and image url from code above and then write this text and image url in database
     
    shotazi, Dec 2, 2007 IP
  5. Kwaku

    Kwaku Well-Known Member

    Messages:
    1,217
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    140
    #5
    You want to screen-scrape something right? You want to retrieve this information from another (not your) site?
     
    Kwaku, Dec 2, 2007 IP
  6. shotazi

    shotazi Peon

    Messages:
    422
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yes from another site, i have already get content from another site with file_get_content and now whant to get from this content some text and image url and how can i do thos?
     
    shotazi, Dec 2, 2007 IP
  7. shotazi

    shotazi Peon

    Messages:
    422
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    please help me anybody :(
     
    shotazi, Dec 2, 2007 IP
  8. krampus

    krampus Active Member

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    88
    #8
    first.. you didn't gave us the example of that page...

    should that script works on EVERY page.. or just on specific?

    Because, if it should works only on specific page.. and if there is allways one way to represent THE TEXT and PICTURE.. then it shouldn't be a problem...

    But.. if you want this script to work on EVERY page.. then.. it is another problem..
     
    krampus, Dec 2, 2007 IP