Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/08/2013, 17:20
way2park
 
Fecha de Ingreso: mayo-2008
Mensajes: 224
Antigüedad: 16 años
Puntos: 4
Respuesta: error con declaracion protected

Bueno no me deja poner todo, a ver.

Pongo la primera parte por si sirve eso solo

Código PHP:
<?php

class UploadHandler
{
    protected 
$options;
    
// PHP File Upload error message codes:
    // http://php.net/manual/en/features.file-upload.errors.php
    
protected $error_messages = array(
        
=> 'The uploaded file exceeds the upload_max_filesize directive in php.ini',
        
=> 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form',
        
=> 'The uploaded file was only partially uploaded',
        
=> 'No file was uploaded',
        
=> 'Missing a temporary folder',
        
=> 'Failed to write file to disk',
        
=> 'A PHP extension stopped the file upload',
        
'post_max_size' => 'The uploaded file exceeds the post_max_size directive in php.ini',
        
'max_file_size' => 'File is too big',
        
'min_file_size' => 'File is too small',
        
'accept_file_types' => 'Filetype not allowed',
        
'max_number_of_files' => 'Maximum number of files exceeded',
        
'max_width' => 'Image exceeds maximum width',
        
'min_width' => 'Image requires a minimum width',
        
'max_height' => 'Image exceeds maximum height',
        
'min_height' => 'Image requires a minimum height'
    
);