Monday, 05.28.2018, 8:12 AM
Welcome Guest | RSS
Albanian Hackers Group
Sign Up
Site menu

Seksioni kategoris
My files [147]

Bookmark website

Sondazhi Yne
Votoni webin
Total of answers: 826


Total online: 1
Guests: 1
Users: 0

Main » Files » My files

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 

function get_content($url)
    $ch = curl_init();

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


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

    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: 349 | Downloads: 0 | Rating: 0.0/0
Total comments: 0
Only registered users can add comments.
[ Sign Up | Login ]

Share Website

Upload your files


Copyright ALBANIAN-HACKER © 2018
Free web hostinguCoz