title: Strict Standards: Only variables should be passed by reference in please
body: <p>Strict Standards: Only variables should be passed by reference in please</p>
  
  <pre><code>if(isset($_FILES['image'])){
    $errors= array();
    $file_name = $_FILES['image']['name'];
    $file_size =$_FILES['image']['size'];
    $file_tmp =$_FILES['image']['tmp_name'];
    $file_type=$_FILES['image']['type'];
    $file_ext=strtolower(end(explode('.',$_FILES['image']['name'])));
  
    $expensions= array("jpeg","jpg","png","docx","pdf");
  
    if(in_array($file_ext,$expensions)=== false){
       $errors="&lt;div align='center'&gt;&lt;font color='red'&gt;extension not allowed, please choose a JPEG or PNG file.&lt;/font&gt;&lt;/div&gt;";
    }
  </code></pre>