Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP nightmare!

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38904

    Here is my PHP script:

    
    if (isset($_FILES )) {
    $errors=array () ;
    $allowed_ext= array ('doc','docx','ppt','pptx','pages','html','els','elsx','numbers');

    $file_name= $_FILES ;
    $file_ext= strtolower(end(explode ('.', $file_name)));
    $file_size=$_FILES ;
    $file_tmp= $_FILES ;

    if (in_array($file_ext, $allowed_ext) === false) (
    $errors[] ='Extension not allowed';
    )

    }
    ?>















    I keep on geting error’s and I don’t know why. I’ve been starring at this for hours :(

    #106101

    Thank you so much! This was a massive help

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.