Grow your CSS skills. Land your dream job.

PHP nightmare!

  • # July 14, 2012 at 1:58 am

    Here is my PHP script:

    < ?php
    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';
    )

    }
    ?>

    < !DOCTYPE html>













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

    # July 14, 2012 at 1:07 pm

    If statements use curly braces, not round brackets.

    {}

    not

    ()

    # July 14, 2012 at 7:05 pm

    Thank you so much! This was a massive help

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".