Forum Moderators: coopster
Currently I am making a "tool" :) that will grab some websites source code and will search for a specified text (e.g. javascript codes) in it. I am using fsockopen function for connection to a website and it works great if the websites location is normal. E.g. if the website starts at www.example.com then fsockopen works fine, but if the website uses auto-redirect(via Location header field) to www.example.com/en/ or www.example.com/login.php then it doesn work. It only shows the redirect pages headers.
Maybe you have some better ideas how to grab websites source code? I've heard that fopen is not working remotely with most servers..
Any help is very appreciated!
Thanks
as I understand, fsockopen can be used only for connecting to the direct domain (www.example.com) only..
Now I've tried using fopen instead, and with my testing server it works OK, because safe mode is turned off. But it would not work with many more secured servers..