Twelve Years of Service
Posts: 937
Threads: 99
get_file_contents php 06-08-2014, 12:45 AM
#1
If I use the grt_file_contents, I'll recieve the whole website.
But how do I only recieve a special part of the websites HTML code?
•
Twelve Years of Service
Posts: 220
Threads: 6
RE: get_file_contents php 06-08-2014, 10:56 AM
#4
Wouldn't you need to POST the login form then, file_get_contents is only a GET.
Presuming you can get that page though just scrape the html(google screen scraping) to get the information.
•
Twelve Years of Service
Posts: 220
Threads: 6
RE: get_file_contents php 06-08-2014, 11:00 AM
#6
But how are you getting the failed login from your PHP code.
file_get_contents won't make a login attempt it will just get the login page.7
You'd probably wnat to use something like cURL to POST
(This post was last modified: 06-08-2014, 11:00 AM by miiike980.)
•