Well, I'm fairly new to PHP and trying to build a little personal Image that would display my latest twitter, so that I can put it in my forum signatures and such, and maybe when I'm done with it, I can make it into a generator ( It would be simple )
I have just about everything done, but the actual image. I get a whole bunch of symbols, and It's only when I include my page that pulls the information for the 1 status message.
Here's the source to one of many ways I tried this,
That's only one of the ways I've tried to organize it. (Don't worry about the picture, it was a random box I found)
And here's the code to the includes.php
I know that the TwitterUser and Pass has to be changed, I just changed it here, but can anyone else me?
I've been trying to figure this thing out for hours, and nothing.
It'll be greatly appreciated.
Thanks in Advance
~Rick
I have just about everything done, but the actual image. I get a whole bunch of symbols, and It's only when I include my page that pulls the information for the 1 status message.
Here's the source to one of many ways I tried this,
PHP Code:
<?php
include("includes.php");
header("Content-Type: image/png");
$im = imagecreatefrompng("http://i13.photobucket.com/albums/a287/Rickmasta185/149d6e5d2da9f136898079693.png");
if ($im)
{
ImageString($im, 1, 17, 4, $final, 2);
ImagePNG($im);
}
?>
And here's the code to the includes.php
PHP Code:
<?php
require_once( './my_twitter.php' );
$twitter = new MyTwitter('TwitterUser', 'TwitterPass');
$status = $twitter->userTimeLine();
$total = count(1);
for ( $i=0; $i < $total ; $i++ )
{
$final = $status[$i]['text'];
}
?>
I've been trying to figure this thing out for hours, and nothing.
It'll be greatly appreciated.
Thanks in Advance
~Rick
Comment