Page 1 of 1
Extracting data which is stored as a image in anoter site.
Posted: Wed Jun 25, 2008 1:22 am
by sanju
Hi all,
I want to grab an email_id from another site. but this email id is stored as an image and is encrypted.
Cant take it through view source page. How can I take it.
Pls help......
Re: Extracting data which is stored as a image in anoter site.
Posted: Wed Jun 25, 2008 2:16 am
by Jasheppard
well first of all you need to be able to decrypt it.
what i use to get the source from files form a different site is:
(Only if your php host supports fopen_url)
Code: Select all
$externalfile = @fopen('http://blabla/bla.txt','r');
if ($externalfile) {
// Do stuff eg;
$line[] = fgets($externalfile); // $line[0]
$line[] = fgets($externalfile); // $line[1]
// and more stuff
@fclose($externalfile);
}
else die("Error?");
Re: Extracting data which is stored as a image in anoter site.
Posted: Wed Jun 25, 2008 2:39 am
by sanju
Hi,
I am extracting data through curl, fopen() not working.
When we seeing the view source page the data is
/string_image.php?ct=AAAAAQAQUzYb8boTzm5tOyPma4-h8QAAABh0K5lczs9IdALBmOI8AvTFQ
And through image property from element property we get
/string_image.php?ct=AAAAAQAQUzYb8boTzm5tOyPma4-h8QAAABh0K5lczs9IdALBmOI8AvTFQ2PZ
Tar7ISg%2C&fp=8.7&state=0&highlight=
Pls look at it...
Re: Extracting data which is stored as a image in anoter site.
Posted: Wed Jun 25, 2008 2:57 am
by onion2k
It's encrypted to stop you taking it. Clearly the person who designed the page doesn't want you to get it. Why not respect their wishes?