Page 1 of 1

i'm coding php :)

Posted: Mon May 13, 2019 7:23 am
by BayoDino
it's my little thing i've done :D

Code: Select all

<?php 

//variable

$id=mt_rand(0,3);
//Tell the browser that we are sending it a PNG image to display 
header("Content-Type: image/png"); 

//Echo with variables!
if ($id==1){
//Echo the contents of the image file called "dogbaby.png" to send it to the browser 
readfile("1.png"); 
}
elseif ($id==2){
//Echo the contents of the image file called "dogbaby.png" to send it to the browser 
readfile("2.png"); 
}
elseif ($id==3){
//Echo the contents of the image file called "dogbaby.png" to send it to the browser 
readfile("3.png"); 
}
?>


Image

Re: i'm coding php :)

Posted: Thu Jul 04, 2019 7:56 am
by oakhearted
up!