Is this website local to your machine or remote?
If remote, you need to open it up, search for a token string, then scrape the value.
consider the following functions to pull that off (I wont write the code for you)
fopen()
fgets()/fread()
fclose()
preg_match()
if you need to change a graphic, you need to explain more what you are trying to accomplish. Consider using the GD toolkit.