Jump to content

help on picture manipulation


alarik149

Recommended Posts

Good evening people:).I`m a little stuck while using some pictures.here is what I need.
I have a directory "pictures/a" that contrains some pictures.I want these pictures placed in an array called $pictures,so I can use them something like $picture[1] or picture[8];.Thanks for your time.
Link to comment
https://forums.phpfreaks.com/topic/27991-help-on-picture-manipulation/
Share on other sites

i love this function... goes to the database, and adds every file into an array :-)
[code]
<?
function get_allfiles($dir="functions/"){
if(is_dir($dir)){
  if($handle = opendir($dir)){
  $files = array();
  while(false !== ($file = readdir($handle))){
    if(($file != ".")&&($file != "..")&&($file != "index.php")){
    $files[] = $file;
    }
  }
  closedir($handle);
  }
}else{
  return false;
}
asort($files);
return $files;
}
?>
[/code]

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.