1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

assigning whole file contents to a variable ?

Discussion in 'PHP' started by chandan123, May 27, 2008.

  1. #1
    how to assign whole file contents to a variable :confused: ?
    SEMrush
     
    chandan123, May 27, 2008 IP
    SEMrush
  2. Im The ONE

    Im The ONE Peon

    Messages:
    800
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #2
    $abc = file_get_contents(xyz.txt)
     
    Im The ONE, May 27, 2008 IP
    chandan123 likes this.
  3. chandan123

    chandan123 Prominent Member

    Messages:
    11,591
    Likes Received:
    577
    Best Answers:
    0
    Trophy Points:
    360
    #3
    thanks rep added u saved my lot of time because i am starting php still :)
     
    chandan123, May 27, 2008 IP