File grabbing

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

NetworkTown.Net

Account Closed
Impact
2
HI

I would like to know if any one has some tutorials on php file grabbing so i can learn how php can grab files from urls.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
$data = file_get_contents('http://url/to/file');
That gives you the whole source of that file in one string.

$data = file('http://url/to/file');
That gives you an array with each line being an array item.
(The first line would be $data[0] and the next line would be $data[1], etc.)
 
0
Close
you could use a load of f functions, like I would probably do

fopen, feof, fread etc... but Dans seems much simpler! lol
 
0
Close
Try fsockopen.

The good thing about this is that it can send HTTP headers.

There are many servers who protect from such bots by sending data only after receiving a valid browser header.

You can try http://phpclasses.org
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back