2D Imaging / Animation
Adobe Photoshop Adobe Flash 3D Imaging / Animation
Autodesk Maya Cinema 4D Game Development Valve Hammer (Source) Web Adobe Dreamweaver AJAX HTML / CSS PHP Programming C++ Java Python
September 09, 2010, 03:22 PM
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Tutorial Explosion!
 
   Home   Help / Rules Search Login Register  
Pages: [1]
 

Recent Steam Game image


Replies: 0 Views: 246
Posted: January 13, 2010, 05:55 PM
Code:
<?php

require_once('./modules/phpDraw.class.php');
$img = new phpDraw(200120);
$img->add_color("greyish"150,150,150);
$img->fill("black");

if(isset(
$_GET['name'])){
        
$name $_GET['name'];
}

$raw_data file_get_contents("http://steamcommunity.com/id/".$name."/games");
$ARRAY_DATA preg_split('/<div class="gameLogo"><a href="(.*?)"><img src="/'$raw_data); 

$DATA_TIME explode("\n"$ARRAY_DATA[1]);
$times str_replace(array("<h5>","</h5>"), ""$DATA_TIME[2]);
$new_time explode("/"$times);

$link_arr explode(" "$ARRAY_DATA[1]);
$FULL_LINK str_replace("\""""$link_arr[0]);
$img->copy_file($FULL_LINK);
$img->paste_file(8,5,0,0,184,69);
$img->text("greyish"10804trim($new_time[0]));
$img->text("greyish"10954trim($new_time[1]));
$img->output();

unset(
$DATA_TIME$times$raw_data$ARRAY_DATA$new_time$img$FULL_LINK);
?>

Pages: [1]
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!