Código
Notice: Undefined variable: tipo in C:\wamp\www\proyecto\subearchivo.php on line 17 Warning: explode() expects parameter 3 to be long, string given in C:\wamp\www\proyecto\subearchivo.php on line 17
Este es mi código y la verdad lo tome prestado y solo ise algunas modificaciones pero no entiendo como para que aplicaron explode.
Código
<?php if ($_POST) { $str = "ABCDEFGHIJKLMNOPQESTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"; $cad = ""; for ($i=0;$i<12;$i++) { } $tamano = $_FILES[ 'file' ][ 'size' ]; $tamano_max="5000000"; if( $tamano < $tamano_max){ $destino = 'uploaded' ; $tipo=$sep; if($tipo == "gif" || $tipo == "jpeg" || $tipo == "gif" || $tipo == "bmp" || $tipo == "pdf"){ include('post.html'); }}} ?>
Si alguien me puede ayudar estaria muy agradecido