html/php code that downloads a pic?
html/php code that downloads a pic?
Does anyone have a html/php code that downloads a picture from a site over and over again?....not with the "save and open window" coming up...just downloads without the user knowing.... as in
Enter site
*downloads picture without user knowing*
page contains like a little text just to fool them so they dont get suspicious :/
Enter site
*downloads picture without user knowing*
page contains like a little text just to fool them so they dont get suspicious :/
I think you could use something like this:
Please replace (script tag here) and (end script here).
Suck-o didn't let me post the correct tags.
The only problem is that after downloading a image, the browser will save it to the cache.
Code: Select all
<img src="" name="imagetochange" id="imagetochange" width="1" height="1">
(script tag here)
function LoadPicture()
{
document.getElementById("imagetochange").src = "--put_url_to_image_here--";
return;
}
setInterval("LoadPicture()", 1000);
(end script here)
Suck-o didn't let me post the correct tags.
The only problem is that after downloading a image, the browser will save it to the cache.
This is simple.
You'll have to take out the spaces in the tags. The damn forums kept saying 'the html tags you attempted to use are not allowed'.
Code: Select all
<st yle type="text/css">
img.invis
{
position:absolute;
z-index:-5;
}
</st yle>
<bo dy>
text text text text text
<?
set_time_limit(0);
for($a = 0; $a != 1; $b++)
{
echo "<im g class='invis' src='http://url.to/img.ext'>";
}
?>
Last edited by Gogeta70 on 04 Jun 2006, 17:28, edited 1 time in total.
¯\_(ツ)_/¯ It works on my machine...
i tried the code now, but it doesnt seem to work. i try it on my own server with one of my own pictures. but it only says
**.30.168.*** - - [05/Jun/2006:11:39:12 +0200] "GET /zorse.php HTTP/1.1" 200 283
(don't ask my why i named it zorse ^^)
it doesn't ask for the image.
oh and one more thing....is this suposed to download the image only 1 time? or does it download it over and over again?
**.30.168.*** - - [05/Jun/2006:11:39:12 +0200] "GET /zorse.php HTTP/1.1" 200 283
(don't ask my why i named it zorse ^^)
it doesn't ask for the image.
oh and one more thing....is this suposed to download the image only 1 time? or does it download it over and over again?
- FrankB
- Ph. D. in Sucko'logics
- Posts: 315
- Joined: 06 Mar 2006, 17:00
- 18
- Location: Belgistahn
- Contact:
I think you don't...neo130 wrote:when i try the page i get " text text text text } ?> " (i understand the part of text text text etc)
If you get text text text with the "}" curly brace of the snipped of code plus the closing PHP entity "?>" then PHP is not properly configured on your server (if you have that one set up correctly, which i seriously doubt).
Be a nice guy and post us what you have set in your php.ini file and server config file.
..waiting...
FrankB wrote:I think you don't...neo130 wrote:when i try the page i get " text text text text } ?> " (i understand the part of text text text etc)
If you get text text text with the "}" curly brace of the snipped of code plus the closing PHP entity "?>" then PHP is not properly configured on your server (if you have that one set up correctly, which i seriously doubt).
Be a nice guy and post us what you have set in your php.ini file and server config file.
..waiting...
gogeta70 said that he messed it up and fixed it, after that the ?> dissapeard, and then only the "text text text" was there