Setting the cookie in PHP

Discussion in 'PHP' started by zerandib, Mar 21, 2009.

  1. #1
    hi,

    i want to read the source code of redtube.com (the page where videos resides)
    but when visit to redtube.com , it need to confirm a certain condition.
    (so i want to by pass that condition and read the source of the redtube.com video web page)

    how to do such a thing....
    (i need to by pass that cookie and read the full source)

    when i do like this.... it only shows the source of the welcome screen.
    (where, we need to confirm the message.... ex: Enter/Leave)

    
    <?php
    $fh = fopen("http://www.redtube.com", "r");
    $fullstring;
    while(!feof($fh))
    {
        $output = htmlspecialchars(fgets($fh, 1024));
    	#echo ("$output");
    	$fullstring = $fullstring."".$output; 
    	
    }
    echo $fullstring;
    ?>
    
    PHP:

    thanks
     
    zerandib, Mar 21, 2009 IP
  2. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #2
    You cannot do that unless redtube web developer have not sealed that security hole.
     
    it career, Mar 21, 2009 IP