SitePoint Sponsor

User Tag List

View Poll Results: Will CMS can create powerful and immediate oppertunities for business to seize ?

Voters
1. You may not vote on this poll
  • Full Agree

    0 0%
  • Fully Disagree

    1 100.00%
  • Can't Say

    0 0%
Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2005
    Location
    Ludhiana - INDIA
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Grabbing Website Contents

    hi all

    first thanks to all in advance. i had just registered to this forum and hope get the required help from all budies.

    What i need is to make Site Grabber (PHP). i want to input the sitename (any xyz.com) and wants the html source of index page of that site in my text file and save it !

    hope u buddies can figure out this.

    Thanks

  2. #2
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    echo htmlspecialchars(filegetcontents($_REQUEST['site'])); 
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •