Need some quick fopen/str replace help

Discussion in 'PHP' started by getatune, Oct 1, 2010.

  1. #1
    in php I want to get (THISISWHATINEED) from a page using fopen how can I do this?
     
    getatune, Oct 1, 2010 IP
  2. NuLLByTe

    NuLLByTe Active Member

    Messages:
    382
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Try using:
    
    file_get_contents($filename);
    
    PHP:
     
    NuLLByTe, Oct 1, 2010 IP
  3. zStorm

    zStorm Peon

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    and to remove html tags:
    strip_tags(file_get_contents($filename));
    PHP:
     
    zStorm, Oct 2, 2010 IP
  4. gurpinder

    gurpinder Guest

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    file_get_contents($filename)
     
    gurpinder, Aug 6, 2012 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    NOT that said markup should even exist in the first place, this isn't 1997.
     
    deathshadow, Aug 6, 2012 IP