                        $count_padded = sprintf("%02d", $count);
                        $new_name = $gallery_name."-".$count_padded.".".$ext;
                        $image_type = $_FILES['files']['type'][$f];

                        if(move_uploaded_file($_FILES['files']['tmp_name'][$f], resize($_FILES['files']['tmp_name'][$f], 1920, 1080, $target_dir_high, $new_name, $image_type))){
                            list($w, $h) = getimagesize($target_dir_high.$new_name);
                            $max_size = 500;
                            $long_side = max($w, $h);
                            $ratio = ($max_size/$long_side); //This is a percentage
                            $new_width = floor($w*$ratio);
                            $new_height = floor($h*$ratio);
                            $destImage = imagecreatetruecolor($new_width, $new_height);
                            $sourceImage = imagecreatefromjpeg($target_dir_high.$new_name);
                            imagecopyresampled($destImage, $sourceImage, 0, 0, 0, 0, $new_width, $new_height, $w, $h);
                            imagejpeg($destImage, $target_dir_low.$new_name, 100);
                            imagedestroy($destImage);
                            imagedestroy($sourceImage);
                            if($count == 0){
                                copy($target_dir_low.$new_name, $target_dir.$new_name);
                            }
                            $count++;
                            echo $message = 'Congratulations!  The file '.$target_dir.$new_name.' was accepted.<br />';
                        }
                    }
                }
            }
        } else {
            die('This gallery exists.  Go back and rename.');
        }
    }
?>


A: First you need to check if the dir already exists, use is_dir() for that. i.e.:
$dir = "/home/path/dir";
if(is_dir($dir))
  {
  echo ("dir $dir already exists");
  }
else
  {
  echo ("dir $dir doesn't exist");
  }


is_dir


(PHP 4, PHP 5)
is_dir — Tells whether the filename is a directory
  Returns TRUE if the filename exists and is a directory, FALSE
  otherwise.

We really love our rock stars, don’t we? They’re on our t-shirts, they’re on reality TV, and their music is available at every possible outlet, providing the soundtrack for commercials, video games, sporting events, even political campaigns. Yes, pop culture and its figureheads are everywhere, and Jessica Pallington West must’ve known this when she was collecting quotes for What Would Keith Richards Do? Daily Affirmations from a Rock ‘n’ Roll Survivor, because who better to teach us how to deal with life than Keith Richards?
West’s book serves as a kind of Bible for “Keithism,” a philosophy of life based on the author’s collected Richards quotes. Starting with its first chapter, “Keithism: The Twenty-Six Ten Commandments of Keith Richards, or: How Keith Richards Can Save Your Life,” we’re told to “Accept the Rolling Stones as Your Metaphorical Overlord,” “Accept (or at Least Tolerate) Your Inner and Outer Mick,” “Nurture Your Inner Charlie [Watts],” and “Shit Happens,” among other things. Where one might expect mumbled, tantalizingly cryptic remarks from Richards, the advice here is pretty basic stuff: believe in something, there are two sides to everyone, follow your own drummer, and shit happens (just deal with it).
Some quotes from the Stones’ guitar god are woven in, but some of these appear again later the book—e.g., Commandment 17: “Be Tough, Be Brave, and Don’t Give in to the Dictates of Authority” opens with a quote: “Ever since I left school, nobody has ever heard a ‘Yes sir’ from me. Apart from a few exceptions: in court and in jail.” It appears again in the section entitled “Aphorisms for Living Life the Keith Richards Way,” under “Authority.” It seems in such places that West is trying to maximize a surprisingly thin collection of materials, and the repetition almost convinced me to close the book and put on Sticky Fingers instead.
Chapter Two, “What Would Keith Do? Living Life the Keith Richards Way,” was a missed opportunity for West to really show how Keithism may have affected her own life, or the life of someone she knows. Instead we’re given general hypothetical scenarios and Richards’ hypothetical reactions to them. In “Why Not Me? or: Being Passed over for Honors that Go to Others,” West compares the experience of a typical cubicle-dwelling office worker to that of Keith Richards’ not being nominated for knighthood when Mick Jagger was. Indeed, the office worker must have agonized: What to do?
So what would Keith do? What did Keith do? First: Talk to as many people as you can. Speak specifically to those who will be able to transmit the most bad words regarding your adversary to the largest number of listeners. Let it out. Let it bleed. You’re pissed. Say it. Eventually all the negative attention will focus onto the unworthy one, and the focus will bring up another question to those watching from the sidelines. Specifically: Was he worthy? Why him?
But is this really useful advice? For one thing, Keith Richards wouldn’t be caught dead in a “job” as you and I know it, because he wouldn’t be allowed to dress like a rock ‘n’ roll pirate—even on Casual Friday. For another, creating suspicion among your bosses and coworkers about the newly promoted will only make you look jealous and bitter, and no one will sit by you in the break room. If anyone brings in donuts, no one will stop by your cubicle to tell you about them.
This is a coffee table book, and a decent one, but it goes on too long for what it is. Instead of the shining homage West probably intended it to be, readers get a ridiculous section that pairs Richards quotes with those of some of the great philosophers. They get a Keith Richards timeline that highlights the triumphs of the Rolling Stones and Richards’ own important dates: the birth of his children and grandchildren, the death of his parents, etc.. But much of this feels like filler—especially Richards’ mother’s recipe for Shepherd’s Pie.
West is obviously a dedicated Stones fan who thinks that Richards’ views on life, creativity, and music are interesting and insightful. For that reason, What Would Keith Richards Do? is fun to pick up, thumb through, chuckle a little bit here and there, and then forget. But if you really want to know what Keith Richards will do, I say just wait and watch.
We believe that proper communication is a key to successful co-operation between people, companies, cultures and societies. We strive to ensure that our language services are of the highest quality and allow building of communication bridges between our customers.
We have acquired considerable experience in translations and interpretations in virtually all areas of business. Our team of trusted, reliable translators is capable of accomplishing any language-related tasks, including projects involving thousands of pages and requiring close co-operation between individual translators.
We value reliability, professionalism, punctuality and confidentiality. We ara able to accomplish large translation jobs at very short turnaround time. We provide instant quotations to all inquiries. For our long-term customers, we are happy to work on weekends and public holidays.About Chemona
Chemona manufactures ultra-hydrophobic protective Nanocoatings for a range of different surfaces. Our coatings clean, restore, and protect your surfaces, leaving durable, ultra-hydrophobic protection to existing bare and painted substrates. We have water, alcohol, and epoxy based coatings for invisible, gloss, or matte finishes, but all rely on the same Nanoparticle to offer superior dirt and water repellence. Additionally, we now offer tinted coatings which have all of the protective qualities of our coatings while serving as a paint-substitute instead of a top-coat. All of our coatings are extensively researched and tested to assure effectiveness and ease and safety of application.
Production & Distribution
Chemona develops and manufactures high-quality Nanocoatings. Our coatings find broad use in various industries: hospitality, building maintenance, commercial and residential construction, health-care, recreational and commercial marine and automotive. All of our coatings are manufactured in the Netherlands and Germany for use in Europe and distribution worldwide through network of exclusive importers, distributors and applicators. Our headquarters remains in Voorschoten, Netherlands.
Projects
Partners from Chemona Nanocoat<<Stealing and arson is always wrong - we have twenty trillion cameras but that will not stop anyone doing the deed we will see if it helps catch the perps and how much gaol time these perps get. I am not hopeful.
One of the main reasons they are doing this.... they know for a fact they can get away with it. Majority will not be caught, its strength in numbers and