answersLogoWhite

0

You use file_get_contents to fetch the website HTML and regular expressions to get what you need from that.

eg:

$html = file_get_contents('http://www.yoursite.com');

preg_match_all(<regular expression here>, $html, $matches);

print_r($matches); // this will contain what you need

If you require cookies or special http headers, you might want to look at cUrl functions in stead of file_get_contents.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Does android supports PHP?

It supports websites made on php but not coding in php. There are workarounds for coding in PHP using Android.


Why is PHP used?

PHP is used to create dynamic websites, this is a step up from HTML as it allows you to do much more than creating static websites. Using a language such as PHP also gives you access to using databases with your website such as MySQL.


How do you datamine websites using PHP and MySQL?

You don't really expect an answer here, do you?


What exactly is a PHP computer system?

A PHP computer system is simply a set of computers using the PHP programming language. It is used in over 200 million websites currently and was created in 1995.


Which language is used more for websites PHP or ASP.net?

Php


What websites use PHP?

There are millions of websites that use PHP, some notable ones are Facebook, Digg, Wikipedia and many more.


Can you run PHP on Linux?

Yes. Many popular websites run PHP on Linux.


Why shoul we join PHP training?

PHP is easy and creating attractive and beautiful websites.


How do you make a blog using PHP and MySQL?

You can create blog in php. In fact, many blogs on the internet created using php. There are many readymade blogs which you can install on your own server. Or, if you wish, you can create your own blog application. Simply, blog is a dynamic website (users can add, delete, update content) and PHP was designed for creation of dynamic websites.


Does Google Chrome have PHP module enabled?

Yes, Chrome has PHP module enabled. It can be used for testing and developing PHP websites.


Is PHP a drug?

PHP is a programming language. You may be thinking of PCP, or a-PHP (a-Pyrrolidinobutiophenone).


What is meant by webdesign?

The creation of websites pretty much, using coding languages like HTML, CSS, PHP and such :) hope i helped