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
oakhearted
Making progress
Making progress
Posts: 5
Joined: Mon Dec 10, 2018 7:11 pm
Tagline: lost in html and css codes
Mood: decent
Contact:

Re: i'm coding php :)

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

up!
6th person to join Shibaface
I am best friends with BayoDino! We code together~ :lol:
This site is dead though :(
oakhearted#8284

Post Reply