This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-09-15 17:32:02

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

PHP Image Test

http://plaxon.comyr.com/ip_finder.php

Last edited by WindowsExplorer (2011-09-16 03:35:13)


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#2 2011-09-15 17:42:32

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: PHP Image Test

WindowsExplorer wrote:

http://plaxon.comyr.com/ip_address.php

What was this supposed to do?

Last edited by Greenatic (2011-09-15 17:43:15)

Offline

 

#3 2011-09-15 18:01:35

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: PHP Image Test

The image could not be displayed because it contains errors


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#4 2011-09-16 02:58:30

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: PHP Image Test

I'm just testing text to image with php, but it looked like it failed!


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#5 2011-09-16 11:05:34

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: PHP Image Test

if you tell us the code, then we may be able to help you.


http://i.imgur.com/zeIZW.png

Offline

 

#6 2011-09-16 11:08:57

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: PHP Image Test

rookwood101 wrote:

if you tell us the code, then we may be able to help you.

Code:

<?php
header("Content-type: image/png");
$string = $_SERVER['REMOTE_ADDR'];
$im = imagecreatefrompng("images/button.png");
$color = imagecolorallocate($im, 255, 255, 255);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
$py = 9;
$fontSize = 1;
 
imagestring($im, fontSize, $px, $py, $string, $color);
imagepng($im);
imagedestroy($im);
?>

http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#7 2011-09-16 11:19:18

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: PHP Image Test

well first of all, I can't find the button image at http://plaxon.comyr.com/images/button.png


http://i.imgur.com/zeIZW.png

Offline

 

#8 2011-09-16 11:38:21

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: PHP Image Test

rookwood101 wrote:

well first of all, I can't find the button image at http://plaxon.comyr.com/images/button.png

Got the image uploaed, but the text isn't printing.


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#9 2011-09-16 11:49:56

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: PHP Image Test

er yes it is, it's just white so you can't see it very well.


http://i.imgur.com/zeIZW.png

Offline

 

#10 2011-09-16 18:36:49

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: PHP Image Test

This is good! I'm working on a thingy for GE that yousend get data to a php script, and it draws the image of the block with the text in the inserter


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

Board footer