[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 /* 3 * Filename.......: image_cache.php 4 * Author.........: Troy Wolf [troy@troywolf.com] 5 * Last Modified..: Date: 2005/06/21 10:30:00 6 * Description....: Companion script to clas_http.php. When used in conjunction 7 with class_http.php, can be used to "screen-scrape" images 8 and cache them locally for any number of seconds. You use 9 this script in-line within img tags like so: 10 <img src="image_cache.php?ttl=300&url=http%3A%2F%2Fwww.somedomain.com%2Fsomeimage.gif" /> 11 (You must url encode the url within the src attribute.) 12 */ 13 14 /* 15 Include the http class. Modify path according to where you put the class 16 file. 17 */ 18 require_once ('class_http.php'); 19 20 $h = new http(); 21 $h->fetch($_GET['url'], $_GET['ttl']); 22 header("Content-Type: image/jpeg"); 23 echo $h->body; 24 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |