0

i have a question. Example i have a film web, this link: http://www.phimmoi.net/phim/mui-ten-xanh-phan-4-3154/xem-phim.html I want to get source link video in that link, as to Internet Download Manager software. So how can i get link by php? thank you.

Mr. Tuan
  • 85
  • 1
  • 6

1 Answers1

1

In this cases you should get content of link:

for example:

$homepage = file_get_contents('http://www.phimmoi.net/phim/mui-ten-xanh-phan-4-3154/xem-phim.html');

Now you have html content of that page and can use from regex for getting video link and even download that with other tools. about regex you can send pattern which this website have and others will suggest regex for you.

See below links about regex:

How to extract img src, title and alt from html using php?

PHP/regex: How to get the string value of HTML tag?

see below link about download:

Download File to server from URL

Community
  • 1
  • 1
Majid Abbasi
  • 1,531
  • 3
  • 12
  • 22