Environment image

Started on the old forum in March 2006 · view the original in the archive · old links redirect here

37 replies · 5,657 views · started 20 years ago · 1 min read

2 participants
CLINT #1

GumSlone, please help me. I was studying your image counter script and made an environment image here.

I want to add more text under the browser description. How do I do it?

Here is the code:

<?php

$browser = explode ('/', $HTTP_USER_AGENT);

$im = @ImageCreate (45, 45)
or die;
$background_color = ImageColorAllocate ($im, 255, 0, 0);
$text_color = ImageColorAllocate ($im, 0, 255, 255);
ImageString ($im, 3, 4, 1, "$browser[0]", $text_color);

header('Content-Type: image/gif');
Imagegif ($im);

?>

Would you be willing to share your environment image script?

subzero Super moderator Fellow · 3,954 posts #2

how do i put my site name on that ????

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

naveen-PHP LEARNER #3

how do i put my site name on that ????

store your sitename in a variable and draw it on an image using the GD library. To test wheater u have it installed... use

<?
fuction test()
{
$a=gdlib();
if(!isset($a))
{
$reply=0;
}
else
{
$reply=1;
}
return $reply;
}
$b=test();
if($b=1)
{
echo "GD is installed";
}
else
{
echo "GD library is not installed , try php.net and download it!";
}
?>

External image (may be gone)

subzero Super moderator Fellow · 3,954 posts #4

store your sitename in a variable and draw it on an image using the GD library. To test wheater u have it installed... use

<?
fuction test()
{
$a=gdlib();
if(!isset($a))
{
$reply=0;
}
else
{
$reply=1;
}
return $reply;
}
$b=test();
if($b=1)
{
echo "GD is installed";
}
else
{
echo "GD library is not installed , try php.net and download it!";
}
?>

External image (may be gone)

that dont work for me can you make one ??? External image (may be gone) please ?? with ip and phones and my site on it like

opera 200.22.33.1 topsite.6te.net ??

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

naveen-PHP LEARNER #5

that dont work for me can you make one ??? External image (may be gone) please ?? with ip and phones and my site on it like

opera 200.22.33.1 topsite.6te.net ??

You can draw shapes and text using the GD.

<?php 
        header ("Content-type: image/png"); 
        $img_handle = ImageCreate (230, 20) or die ("Cannot Create image"); 
        $back_color = ImageColorAllocate ($img_handle, 0, 10, 10); 
        $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191); 
        ImageString ($img_handle, 31, 5, 5,  "My first Program with GD", $txt_color); 
        ImagePng ($img_handle); 
    ?>

this will generate a black image with Opera(ur browser) IP topsite.6te.net on a dum bulk image. But u can decorate...modify...edit it as ya want. External image (may be gone) External image (may be gone)

subzero Super moderator Fellow · 3,954 posts #6

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

mobix #7

Add more text ? Does it don't do like this:

<?php

$browser = explode ('/', $HTTP_USER_AGENT);

$im = @ImageCreate (45, 45)
or die;
$background_color = ImageColorAllocate ($im, 255, 0, 0);
$text_color = ImageColorAllocate ($im, 0, 255, 255);
ImageString ($im, 3, 4, 1, "$browser[0]", $text_color);
ImageString ($im, 3, 8, 1, "more text", $text_color);
ImageString ($im, 3, 12, 1, "again", $text_color);

header('Content-Type: image/gif');
Imagegif ($im);

?>
Guest #8

How can i put this to my wap???

subzero Super moderator Fellow · 3,954 posts #10

Add more text ? Does it don't do like this:

<?php

$browser = explode ('/', $HTTP_USER_AGENT);

$im = @ImageCreate (45, 45)
or die;
$background_color = ImageColorAllocate ($im, 255, 0, 0);
$text_color = ImageColorAllocate ($im, 0, 255, 255);
ImageString ($im, 3, 4, 1, "$browser[0]", $text_color);
ImageString ($im, 3, 8, 1, "more text", $text_color);
ImageString ($im, 3, 12, 1, "again", $text_color);

header('Content-Type: image/gif');
Imagegif ($im);

?>

pmpl ok smart ass you got me dam i did not think that lol External image (may be gone) External image (may be gone) cheers bro

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #11

just look at that lol did a good job External image (may be gone)

look at this External image (may be gone)

<?php

$browser = explode ('/', $HTTP_USER_AGENT);

$im = @ImageCreate ( 80, 50)
or die;
$background_color = ImageColorAllocate ($im, 0, 295, 255);
$text_1 = ImageColorAllocate ($im, 255, 0, 0);
$text_2 = ImageColorAllocate ($im, 6, 475, 289);
$text_3 = ImageColorAllocate ($im, 4, 225, 199);
$text_4 = ImageColorAllocate ($im, 655, 0, 0);
$text_5 = ImageColorAllocate ($im, 2, 255, 255);
ImageString ($im, 0, 3, 1, "$browser[0]", $text_1);
ImageString ($im, 0, 3, 10, "$REMOTE_ADDR", $text_2);
ImageString ($im, 0, 3, 20, "".date("H:i")."", $text_3);
ImageString ($im, 0, 3, 29, "".date("D d M y - ")."", $text_4);
ImageString ($im, 0, 3, 39, "topsite.6te.net", $text_5);

header('Content-Type: image/gif');
Imagegif ($im);

?>

if any one knows the color change can they share it please thanks External image (may be gone)

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Guest #14

Thanks...

Frnds...

4

This i Like it very much.

CLINT #15

Now u can have ur local time.

<?php
$TimeZone="8"; ////Change the TimeZone accordingly!
$New_Time = time() + ($TimeZone * 60 * 60);
$time=date("H:i",$New_Time);
$date=date("D d M y",$New_Time);
$browser = explode ('/', $HTTP_USER_AGENT);

$im = @ImageCreate ( 80, 50)
or die;
$background_color = ImageColorAllocate ($im, 0, 295, 255);
$text_1 = ImageColorAllocate ($im, 255, 0, 0);
$text_2 = ImageColorAllocate ($im, 6, 475, 289);
$text_3 = ImageColorAllocate ($im, 4, 225, 199);
$text_4 = ImageColorAllocate ($im, 655, 0, 0);
$text_5 = ImageColorAllocate ($im, 2, 255, 255);
ImageString ($im, 0, 3, 1, "$browser[0]", $text_1);
ImageString ($im, 0, 3, 10, "$REMOTE_ADDR", $text_2);
ImageString ($im, 0, 3, 20, "$time", $text_3);
ImageString ($im, 0, 3, 29, "$date", $text_4);
ImageString ($im, 0, 3, 39, "LandOfWap.net", $text_5);

header('Content-Type: image/gif');
Imagegif ($im);

?>
lamar-wap #16

how do i add this look? http://mobileplace.idohost.com/info2.php

<?php $TimeZone="8"; ////Change the TimeZone accordingly! $New_Time = time() + ($TimeZone * 60 * 60); $time=date("H:i",$New_Time); $date=date("D d M y",$New_Time); $browser = explode ('/', $HTTP_USER_AGENT); $im = @ImageCreate ( 80, 50) or die; $background_color = ImageColorAllocate ($im, 0, 295, 255); $text_1 = ImageColorAllocate ($im, 255, 0, 0); $text_2 = ImageColorAllocate ($im, 6, 475, 289); $text_3 = ImageColorAllocate ($im, 4, 225, 199); $text_4 = ImageColorAllocate ($im, 655, 0, 0); $text_5 = ImageColorAllocate ($im, 2, 255, 255); ImageString ($im, 0, 3, 1, "$browser[0]", $text_1); ImageString ($im, 0, 3, 10, "$REMOTE_ADDR", $text_2); ImageString ($im, 0, 3, 20, "$time", $text_3); ImageString ($im, 0, 3, 29, "$date", $text_4); ImageString ($im, 0, 3, 39, "LandOfWap.net", $text_5); header('Content-Type: image/gif'); Imagegif ($im); ?>
subzero Super moderator Fellow · 3,954 posts #18

there's nothing wrong with the script just the users pmpl..... try better server External image (may be gone)

<?php $TimeZone="8"; ////Change the TimeZone accordingly! $New_Time = time() + ($TimeZone * 60 * 60); $time=date("H:i",$New_Time); $date=date("D d M y",$New_Time); $browser = explode ('/', $HTTP_USER_AGENT); $im = @ImageCreate ( 80, 50) or die; $background_color = ImageColorAllocate ($im, 0, 295, 255); $text_1 = ImageColorAllocate ($im, 255, 0, 0); $text_2 = ImageColorAllocate ($im, 6, 475, 289); $text_3 = ImageColorAllocate ($im, 4, 225, 199); $text_4 = ImageColorAllocate ($im, 655, 0, 0); $text_5 = ImageColorAllocate ($im, 2, 255, 255); ImageString ($im, 0, 3, 1, "$browser[0]", $text_1); ImageString ($im, 0, 3, 10, "$REMOTE_ADDR", $text_2); ImageString ($im, 0, 3, 20, "$time", $text_3); ImageString ($im, 0, 3, 29, "$date", $text_4); ImageString ($im, 0, 3, 39, "topsite.6te.net", $text_5); header('Content-Type: image/gif'); Imagegif ($im); ?>

http://subwap.funpic.org/info8.php

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close