Alex
December 12th, 2004, 10:30
I'm trying to get my dialup time usage from my ISP's website. It has a secure login. Here is what I have to connect and get the content:
<?php
$url = fopen("https://user:pass@www.domain.com", "r");
$res = fread($url, 90000);
?>
It doesnt seem to work... :
Warning: fopen(https://...@www.domain.com): failed to open stream: Invalid argument in path\to\file.php on line 7
Warning: fread(): supplied argument is not a valid stream resource in path\to\file.php on line 8
Any ideas on how I could make this work? :cry:
<?php
$url = fopen("https://user:pass@www.domain.com", "r");
$res = fread($url, 90000);
?>
It doesnt seem to work... :
Warning: fopen(https://...@www.domain.com): failed to open stream: Invalid argument in path\to\file.php on line 7
Warning: fread(): supplied argument is not a valid stream resource in path\to\file.php on line 8
Any ideas on how I could make this work? :cry: