background color imagefill


Posted on 16th Feb 2014 07:03 pm by admin

Hello

I would like to ask you why I see this square in red color just in my local xampp installation. If I run the code in the remote server (http://www.arreglaordenador.com/numberimage2.php) I see the square in black color instead of red. Do you have any ideas?

Did you know?Explore Trending and Topic pages for more stories like this.
Code: (text)
<?php

$im = imagecreatetruecolor(100, 100);

// sets background to red
$red = imagecolorallocate($im, 255, 0, 0);
imagefill($im, 0, 0, $red);

header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
Thanks
No comments posted yet

Your Answer:

Login to answer
65 Like 36 Dislike
Previous forums Next forums
Other forums

Help with explandable category tree
I have the below query:

SELECT l1.id as lev1_id,l2.id as lev2_id,l3.id as lev3_id,l1.categ

need help in update query
hi
i have a dynamic form. i need help in how can i use update query when values from dynamic for

Newb advice
Hi all,

I'm a flash front end designer and I've taken on a project that needs some back end p

Get relative path from absolute path
How would one go about getting the relative path to a file from its absolute path?

What do you call the "token" thing?
You know how some sites have links that run on tokens? Tokens are links that only stay alive for a c

How to ... (FAQs)
... get e-mail notifications As several people asked how to get e-mail notifications when new posti

first id from db not showing
I have a php script which displays the content of a mysql table as a html table with sorting, delete

get font info from a font file
hello,

Does anyone know how to get font info from a font file ... using php of course !
<

pointer 102 question
I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main() {

Error when call dll from oracle
Hi all, please help me!

I have dll write C language, I want call it from oracle procedur

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash