HTTP authentication via php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GhOsTTeCh
    New Member
    • Dec 2008
    • 22

    HTTP authentication via php?

    basicly i set up a little script to go to an address 10 times, this address needs to be logged (like the .htpasswd way) in (its cpanel).
    how would i go about logging in progrmaticly?? thanks

    Code:
    <?php
    $i = 10;
    $p = 1;
    while ($p < $i){
    	
    file_get_contents("http://REMOVED");
    echo "Did URL " . $p . "<br />";
    
    $p++; };
    ?>
    also very sorry for the lack of punctuation/spelling and lack of terminology im very tierd and want to get this over and done with.
Working...