Kako bi u php-u napisao skriptu za izbor random datoteke (*.jpg) na jednom diru !
Ali to ne HTML kodom, vec direkt preko headera
Content-Type: image/jpeg
Content-Length: xxxx
slika
Nešto kao ovo :
http://www.starsphere.net/login/botcheck.aspx
znam za header :
("Content-Type: image/jpeg");
kako da dobijem Content-Length i saljem raw data ?
Za random isto znam : echo rand(1,xx)
kako da spojim to skupa i da stvar radi
probao sam i sa imagejpeg()
i dobio
supplied argument is not a valid Image resource in /home/xxxxx/public_html/test.php
pomoč molim :)
hvala unaprijed
Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."