Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,900 questions

51,831 answers

573 users

How to get and print web page with fopen() in PHP

1 Answer

0 votes
$webpage = "http://www.seek4info.com";
$fp = fopen($webpage, "r") or die("error open $webpage");
while ( ! feof( $fp ))
    print fgets($fp, 1024);
 
/*
run:

<!doctype html>
<html>
    <head>
        <title>Seek.4Info - Relevant Search Engine</title>        
        <meta http-equiv="Content-type" content="text/html; charset=utf-8">
        ...

*/

 



answered Oct 8, 2016 by avibootz

Related questions

1 answer 176 views
2 answers 230 views
1 answer 247 views
1 answer 161 views
161 views asked Sep 13, 2019 by avibootz
3 answers 334 views
3 answers 297 views
297 views asked Sep 12, 2019 by avibootz
...