Thursday, 04.25.2024, 6:41 AM
Welcome Guest | RSS
Albanian Hackers Group
Main
Sign Up
Login
Site menu

Seksioni kategoris
My files [147]

Bookmark website

Sondazhi Yne
Votoni webin
Total of answers: 833

Statistika

Total online: 1
Guests: 1
Users: 0

Main » Files » My files

PHP-GET-HTML
01.05.2011, 8:21 PM

I was wondering how I could get the html from a certain page and put it into a variable. I managed to do this but once I tested I realized it lost the session. I need it to keep the login session while obtaining the html. 
Using this code I got the html but lost the session 

Code:
function get_content($url)
{
    $ch = curl_init();

    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_HEADER, 0);

    ob_start();

    curl_exec ($ch);
    curl_close ($ch);
    $string = ob_get_contents();

    ob_end_clean();
   
    return $string;    
}

I noticed when using IFrame it keeps the session, how can I do something like this? If it is actually a complicated thing I am willing to pitch out a few dollars for your help.


~ Herb is the healing of a nation, alcohol is the destruction. ~

~ When you smoke the herb, it reveals you to yourself. ~

Category: My files | Added by: albanian-hacker
Views: 716 | Downloads: 0 | Rating: 0.0/0
Total comments: 0
Only registered users can add comments.
[ Sign Up | Login ]
Kerko

Share Website

Upload your files

VIDEO


Copyright ALBANIAN-HACKER © 2024
Free web hostinguCoz