title: How to create watermark on each image while they are uploading with Uploadify?
body: <p>I want to create a watermark using my own text for example. I want to create watermark of "ABDULLAH" on each image. I have these lines of code in my uploadify.php file.</p>
  
  <pre><code>&lt;?php
  if (!empty($_FILES)) {
      $tempFile = $_FILES['Filedata']['tmp_name'];
      $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/'; 
      $ext = end(explode(".", $_FILES['Filedata']['name']));
      $FileName = current(explode('.', $_FILES['Filedata']['name']));
      $originalFileName = $FileName.".".$ext;
      $strRandNum = rand(0,99)+strtotime(date('YmdHis'));
      $randomeFileName = $FileName."_".$strRandNum."_uid_".$_REQUEST['user_id'];
      $completeFileName = $randomeFileName.".".$ext;
      $dir_path =  $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] .'/'. $dirctory_name. "/";
      if( (isset ($dirctory_name)) &amp;&amp; ($dirctory_name != "") &amp;&amp; (is_dir ($dir_path)) ) {
          move_uploaded_file($tempFile,$dir_path.$completeFileName);
      }
      else {
          mkdir($dir_path , 0777);
          move_uploaded_file($tempFile,$dir_path.$completeFileName);
      }
      str_replace($_SERVER['DOCUMENT_ROOT'],'',$targetFile);
  }
  ?&gt;
  </code></pre>