Jump to content

ChiragJhaveri

New Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

ChiragJhaveri's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I am learning PHP and trying to read webpages using PHP. I am trying to read http://www.sonyliv.com/channel/sony-sab The problem is that the website doesn't load all the shows until you scroll down. It slowly loads the shows when you scroll down. Is there any way to handle this and get the complete list via PHP? I believe it uses java script to load the following data. However I am very new and not sure how to handle this. Please help........ Thanks
  2. Really really thanks for your answer. The other problem I found is that when I was reading the webpage which provides me these links had a carriage return at the end. That was the issue for not getting any return using file_get_contents earlier. Minor issue but I think for a person like me its a great learning. Used below code before getting file_get_contents and it worked. (Had to remove carriage returns from the link). $sourceLink = str_replace(array("\r", "\n"), "", $sourceLink); $sourcePageHTML = file_get_contents($sourceLink);
  3. Hi, Thanks for your reply. Can you please provide the PHP code which you are using to get the website source code in PHP? I tried to use file_get_contents($URL) but returns nothing. So, I must be doing something wrong. I know it will go down soon. Just trying to understand why for some websites normal file_get_contents won't work... Thanks Chirag
  4. Hi, I am new to PHP. Usually I use file_get_contents to get the content of the URL. however somehow, I am unable to get content for below website. http://fullmovie-hd.com/jurassic-attack-hindi-dubbed-nowvideo/ I used http://onlinecurl.com/ website to look at the result of curl and the response header is HTTP/1.1 200 OK Server: nginx Date: Thu, 03 Sep 2015 02:37:29 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive X-Powered-By: PHP/5.4.35 Link: <http://fullmovie-hd.com/?p=42820>; rel=shortlink I have tried various different things like using curl, changing init header etc. but nothing worked. Can anyone please help? I am writing a scrapper for Kodi and it will help everyone as it will be free scrapper to use. Thanks in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.