Jump to content

Quick Question Copying Images


Rifts

Recommended Posts

what DO you know about the images?

might modify this

<?php 
$path_array = array("folder1/","folder2/","folder3/");
$short_filename = 'myimage.jpg'; 
$i=0;
while($i<3){
$filename = $path_array[$i] . $short_filename;
if (file_exists($filename)) { 
	/* use your copy file code here */
	$i = 3; /* exit the while */
}
$i ++;
} 
?> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.