TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-30-2010, 10:29 AM   #1 (permalink)
The Wanderer
 
Join Date: Jan 2010
Posts: 10
Thanks: 4
Monferno is on a distinguished road
Default Getting Images

Hi,

I am making a game in flash and I need to be able to get all of the graphics from the Pokemon Sprite Repository, http://www.pokemonelite2000.com/sprites.html
What would be a good way to get all of the sprites and are there any ready make scripts for this?

Thanks in Advanced,
Monferno!
Monferno is offline  
Reply With Quote
Old 05-30-2010, 12:18 PM   #2 (permalink)
The Acquainted
 
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
maeltar is on a distinguished road
Default

Do the sprites need to be local or remote ??

Remote, just use the url to the sprite...

http://www.pokemonelite2000.com/sprites/plfbb/20.png

Local, just download the sprites ...

Maybe a Flash forum would be a better place....
__________________
Thanks... Simon

Sex, Drugs & Linux Rules
Send a message via MSN to maeltar
maeltar is offline  
Reply With Quote
Old 05-30-2010, 12:33 PM   #3 (permalink)
The Wanderer
 
Join Date: Jan 2010
Posts: 10
Thanks: 4
Monferno is on a distinguished road
Default

I need the local and was wondering if there would be a PHP script to get the image url, possibly by scanning the folder, and then saving them into a folder.
Monferno is offline  
Reply With Quote
Old 05-30-2010, 12:49 PM   #4 (permalink)
The Acquainted
 
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
maeltar is on a distinguished road
Default

So what you are looking for is a script to scan the links on the site and download the images for you ???

http://www.httrack.com/

The above is a good tool, but please read http://www.httrack.com/html/abuse.html
__________________
Thanks... Simon

Sex, Drugs & Linux Rules
Send a message via MSN to maeltar
maeltar is offline  
Reply With Quote
The Following User Says Thank You to maeltar For This Useful Post:
Monferno (05-30-2010)
Old 05-30-2010, 03:08 PM   #5 (permalink)
The Wanderer
 
Join Date: Jan 2010
Posts: 10
Thanks: 4
Monferno is on a distinguished road
Default

It's not getting me any of the sprites.
Monferno is offline  
Reply With Quote
Old 05-30-2010, 05:32 PM   #6 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

As suggested, you might be better off learning if there is an efficient way of doing this with actionscript, but if you are determined to use PHP you have two pretty straight forward options. Find out if you have allow_url_fopen enabled on your host, and then it's as easy as;

php Code:
$image_url = 'http://www.pokemonelite2000.com/sprites/plmfa/1.png';
$local = imagecreatefrompng( $image_url );

// This displays the image, but it's just as easy to save it
header( 'Content-Type: image/png' );

imagepng( $local );
imagedestroy( $local );

If allow_url_fopen is disabled, cURL can do what you need.
delayedinsanity is offline  
Reply With Quote
The Following User Says Thank You to delayedinsanity For This Useful Post:
Monferno (05-30-2010)
Old 05-30-2010, 11:58 PM   #7 (permalink)
bajingo
 
skibbli's Avatar
 
Join Date: Feb 2010
Posts: 11
Thanks: 2
skibbli is on a distinguished road
Plugin/Addon DownThemAll

If your a Firefox user, just use the DownThemAll addon. Downloads a specific filetype of all links on one page.

Very handy
__________________
"Stealing! How could you? Haven't you learned anything from that guy who gives sermons at church? Captain what's-his-name?"
skibbli is offline  
Reply With Quote
The Following User Says Thank You to skibbli For This Useful Post:
Monferno (05-31-2010)
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cropping Images using PHP Rendair Advanced PHP Programming 22 05-17-2012 10:22 AM
uploading images into a tabe by multi users sarmenhb Absolute Beginners 1 06-20-2008 02:51 PM
Sliced Images not working in php site Kay1021 XHTML, HTML, CSS 5 06-03-2008 06:40 PM
Uploading images works for me but not others Orc General 13 02-15-2008 11:24 PM
Adding Images to a database from a folder Rendair Advanced PHP Programming 3 01-13-2008 07:40 PM


All times are GMT. The time now is 06:54 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design