i'm coding php :)

Talk about almost anything here
User avatar
BayoDino
Spreading the wings
Spreading the wings
Posts: 156
Joined: Fri May 03, 2019 5:44 am
Tagline: ✧・゚:* StarLight *:・゚✧
Mood: tired!
Contact:

i'm coding php :)

Unread post by BayoDino » Mon May 13, 2019 7:23 am

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
Image
Image
Lorem
Ispum
Image
Lorem
Ispum
Image
Image

User avatar
virtualworldoverload
Hatched right out of the egg
Hatched right out of the egg
Posts: 4
Joined: Mon Dec 10, 2018 7:11 pm
Tagline: lost in html and css codes
Mood: decent

Re: i'm coding php :)

Unread post by virtualworldoverload » Thu Jul 04, 2019 7:56 am

up!
6th person to join Shibaface
I am best friends with BayoDino! We code together~ :lol:

Post Reply