Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://blog.otavio.info/2008/07/autenticao-speedy-com-php.html
- $login = "internet@speedy.com.br";
- $senha = "internet";
- $site = "http://www.algumsite.com/index.html";
- $handle = fopen($site, "r");
- $contents = '';
- while (!feof($handle)) {
- $contents .= fread($handle, 8192);
- }
- fclose($handle);
- if (strpos($contents,"speedy") !== false)
- {
- $speedy = "http://200.171.222.97/wsc/servlet";
- $speedy .= "/logon.do?opcion=internet&";
- $speedy .= "CPURL=&username=$login&password=$senha";
- $handle = fopen($speedy, "r");
- $contents = '';
- while (!feof($handle)) {
- $contents .= fread($handle, 8192);
- }
- fclose($handle);
- //echo $contents;
- echo "conectando";
- } else
- echo "online";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement