General Community > Chit Chat

odd request? ( 'php bug' )

(1/6) > >>

Overseer:
does anyone know if something like this exists, or am I gonna have to learn to write it?

what I want is a php script i can include as a picture on say.. a pm to someone. and it'll grab all the information possible ( ip etc etc )  and append it to a txt file .

something like a 'php bug' ?

so they might not even know it happened.. e.g. the picture returned is 1x1 transparent gif..



or is there a term for this I can't recall right now?

alienine:
great idea, I can't see why it can't be done!  :)

Overseer:
i'd be very suprised if it hasnt been done already... no point reinventing the wheel :)

Aquilo:
somethin like this??
<?php
header ("Content-Type: image/gif");
header ("Content-Length: 43");
// code to get ip's and all info here

// flag a+ : from php.net = Open for reading and writing;
// place the file pointer at the end of the file.
// If the file does not exist, attempt to create it.

   $newfile = fopen ("errorfile.txt", "a+");
      fputs ($newfile,"$errorinfo\n");
   fclose ($newfile);

echo   chr(0x47).chr(0x49).chr(0x46).chr(0x38).chr(0x39).chr(0x61).chr(0x01).chr(0x00).
   chr(0x01).chr(0x00).chr(0x80).chr(0x00).chr(0x00).chr(0x04).chr(0x02).chr(0x04).
   chr(0x00).chr(0x00).chr(0x00).chr(0x21).chr(0xF9).chr(0x04).chr(0x01).chr(0x00).
   chr(0x00).chr(0x00).chr(0x00).chr(0x2C).chr(0x00).chr(0x00).chr(0x00).chr(0x00).
   chr(0x01).chr(0x00).chr(0x01).chr(0x00).chr(0x00).chr(0x02).chr(0x02).chr(0x44).
   chr(0x01).chr(0x00).chr(0x3B);
?>

if you mean to encode hidden info to an image file thats more then I know! :-[

Parham:
this works exactly like how David's (and mines) avatars work, same concept for emails :).

Navigation

[0] Message Index

[#] Next page

Go to full version