open All Channels
seplocked EVE Technology Lab
blankseplocked PHP for retrieving daily influence map - Influence maps collections
 
This thread is older than 90 days and has been locked due to inactivity.


 
Author Topic

Ghost Rider86
Caldari
Posted - 2011.06.15 11:30:00 - [1]
 

Edited by: Ghost Rider86 on 22/06/2011 23:38:31


Greek Pilots can find the download links also here in http://evedust514.gr.


Here are the Files:

Influence maps 2007 and video
Influence maps 2008 and video
Influence maps 2009 and video
Influence maps 2010 and video

2011 Collection Will be available on 01/01/2012.

And Here is my story:

During downtime from DDOS last night I crafted a code snippet for retrieving all >1000 influnce maps from eve files.

With the proper modifications it can retrieve any image from any web server.
Note: You need curl module enabled.

Here it is:



Quote:


<?php

set_time_limit(0);

function save_image($inPath,$outPath){
//Download images from remote server
$in= fopen($inPath, "rb");
$out= fopen($outPath, "wb");
while ($chunk = fread($in,8192)){
fwrite($out, $chunk);
}
fclose($in);
fclose($out);
}

function dates_between($start_date, $end_date = false){
if ( !$end_date ){
$end_date = date("Ymd");
}

$start_date = is_int($start_date) ? $start_date : strtotime($start_date);
$end_date = is_int($end_date) ? $end_date : strtotime($end_date);

$end_date -= (60 * 60 * 24);

$test_date = $start_date;
$day_incrementer = 1;

do {
$test_date = $start_date + ($day_incrementer * 60 * 60 * 24);

//echo date("Ymd", $test_date) . "<br/>";
$x=date("Ymd", $test_date);
$image=$x.'.png';
$image_path='maps/'.$image;

if (!file_exists($image_path)){
save_image('http://go-dl1.eve-files.com/media/corp/verite/'.$image,$image_path);
sleep (1);
}
}
while ( $test_date < $end_date && ++$day_incrementer );
}

dates_between("20070808", "20110615");
?>



Ghost Rider86
Caldari
Posted - 2011.06.16 12:43:00 - [2]
 

Bump

Ghost Rider86
Caldari
Posted - 2011.06.22 23:39:00 - [3]
 

Bumpy!


 

This thread is older than 90 days and has been locked due to inactivity.


 


The new forums are live

Please adjust your bookmarks to https://forums.eveonline.com

These forums are archived and read-only