Yes I am, get over it

What it's better for the program?

  • Type-in

    Votes: 1 20.0%
  • Random from database

    Votes: 4 80.0%

  • Total voters
    5
  • Poll closed .

Mazamin

Well-Known Member
OP
Member
Joined
Sep 4, 2014
Messages
1,895
Trophies
0
XP
3,086
Country
Italy
A database that anyone can add words into, maybe?
I don't know, it's your choice

--------------------- MERGED ---------------------------

A database is a good idea

--------------------- MERGED ---------------------------

Well, I can make a poll

--------------------- MERGED ---------------------------

Take a look on this:
<?php
$words=array("Mario", "Luigi", "Wario", "Waluigi", "Peach");
$string=("Yes I am ".$words[array_rand($words)].". Get over it!");
$img_number = imagecreate(300,25);
$backcolor = imagecolorallocate($img_number,51,51,51);
$textcolor = imagecolorallocate($img_number,200,200,200);
imagefill($img_number,0,0,$backcolor);
Imagestring($img_number,10,5,5,$string,$textcolor);
header("Content-type: image/png");
imagejpeg($img_number);
?>
 
  • Like
Reactions: SomeGamer

SomeGamer

Well-Known Member
Member
Joined
Dec 19, 2014
Messages
6,827
Trophies
1
XP
4,902
Country
Hungary
I don't know, it's your choice

--------------------- MERGED ---------------------------

A database is a good idea

--------------------- MERGED ---------------------------

Well, I can make a poll

--------------------- MERGED ---------------------------

Take a look on this:
<?php
$words=array("Mario", "Luigi", "Wario", "Waluigi", "Peach");
$string=("Yes I am ".$words[array_rand($words)].". Get over it!");
$img_number = imagecreate(300,25);
$backcolor = imagecolorallocate($img_number,51,51,51);
$textcolor = imagecolorallocate($img_number,200,200,200);
imagefill($img_number,0,0,$backcolor);
Imagestring($img_number,10,5,5,$string,$textcolor);
header("Content-type: image/png");
imagejpeg($img_number);
?>
Can I run it on my PHP server?
 

Touko White

(not)Banned
Member
Joined
Jan 12, 2016
Messages
687
Trophies
0
XP
750
Country
United Kingdom
oh what
but can't we send a POST request through the site to auto-post the content, somehow

one other thing: this needs to work on PHP 5.4.45 on a Windows server if I want to add it to my site
 

Mazamin

Well-Known Member
OP
Member
Joined
Sep 4, 2014
Messages
1,895
Trophies
0
XP
3,086
Country
Italy
oh what
but can't we send a POST request through the site to auto-post the content, somehow

one other thing: this needs to work on PHP 5.4.45 on a Windows server if I want to add it to my site
It works well on PHP 5.4.45

--------------------- MERGED ---------------------------

I don't know if you can, I need to see the site's source

--------------------- MERGED ---------------------------

Anyway I don't want to create a spam bot

--------------------- MERGED ---------------------------

yesiam.php
 

Site & Scene News

Popular threads in this forum

eof

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Pass