Extracting data which is stored as a image in anoter site.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
sanju
Forum Commoner
Posts: 65
Joined: Sat Jun 21, 2008 2:15 am
Location: Kochi, India

Extracting data which is stored as a image in anoter site.

Post 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......
User avatar
Jasheppard
Forum Newbie
Posts: 24
Joined: Tue Jun 17, 2008 11:44 pm

Re: Extracting data which is stored as a image in anoter site.

Post 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?");
Last edited by Jasheppard on Thu Jun 26, 2008 2:30 am, edited 1 time in total.
User avatar
sanju
Forum Commoner
Posts: 65
Joined: Sat Jun 21, 2008 2:15 am
Location: Kochi, India

Re: Extracting data which is stored as a image in anoter site.

Post 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...
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Extracting data which is stored as a image in anoter site.

Post 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?
Post Reply