Dynadot โ€” .com Transfer

Need PHP "fetch a web page" script

SpaceshipSpaceship
Watch

dabb

Established Member
Impact
7
Can somebody point me to a PHP script or code snippet that will let me fetch a web page using GET or POST methods? I'd be happy to donate some NP$ to the person who steers me to what I need.

Thanks!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
What do you mean by fetch a website?
 
0
•••
0
•••
PHP:
$contents = file_get_contents("http://www.google.ca");

You can replace "http://google.ca" with the form variable.

$_GET['site']
$_POST['site']
 
0
•••
be very careful with this as you may make it possible for rogue scripts to be run on your server.
 
0
•••
eagle12 said:
PHP:
$contents = file_get_contents("http://www.google.ca");

I should have known PHP would have a single function to do this, thanks! I'm a C guy, but thought I'd do my latest project in PHP to learn the ropes.

Thanks again, NP$ sent!
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back