Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

danmartinsiss

Do Not access Superglobal $_POST Array Directly on NetBeans

Recommended Posts

Bom dia a todos, estou fazendo um envio de imagens no netbeans porem esta dando essa mensagem quando clico no botao enviar

 

Formulario

<!DOCTYPE html>
<!-- Developed by Daniel Martins -->
<html lang="pt-br">
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
             
        <?php
        include "upload.php";
        ?>
        <form action="" method="post" enctype="multpart/form-data">
    <div class="form-group">
    <input type="file" name="img[]" multiple>
    <input type="submit" name="upload" value="Enviar Imagens">
    </div>
            
        </form>
        
        
    </body>
</html>

upload.php

<?php
if(isset($_POST['upload'])){
    $file = $_FILES['img'];
    
    var_dump($file);
}

quando debugo ele nao aparece, somente me mostra a mensagem como abaixo

 

Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. inC:\wamp\www\carloschagas\upload.php on line 3


a versao do meu php 5.6


inclusive meu php.ini eu coloquei o date.timezone = America/Cuiaba, peguei dentro do proprio PHP

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.