Function ereg()
alguém me ajuda por favor... Da esse erro quando vou cadastrar alguma coisa...
Deprecated: Function ereg() is deprecated in /home/u806549000/public_html/config/class.upload.php on line 2249
Warning: mime_content_type(): open_basedir restriction in effect. File(/usr/share/file/magic) is not within the allowed path(s): (/home/u806549000:/tmp:/var/tmp:/opt/php-5.5/pear) in /home/u806549000/public_html/config/class.upload.php on line 2297
Warning: mime_content_type(/usr/share/file/magic): failed to open stream: Operation not permitted in /home/u806549000/public_html/config/class.upload.php on line 2297
linha 2249
if ($this->uploaded) {
$this->log .= '- file name OK<br />';
ereg('\.([^\.]*$)', $this->file_src_name, $extension);
if (is_array($extension)) {
$this->file_src_name_ext = strtolower($extension[1]);
$this->file_src_name_body = substr($this->file_src_name, 0, ((strlen($this->file_src_name) - strlen($this->file_src_name_ext)))-1);
} else {
$this->file_src_name_ext = '';
$this->file_src_name_body = $this->file_src_name;
}
linha 2297
// checks MIME type with mime_magic
if (!$this->file_src_mime || !is_string($this->file_src_mime) || empty($this->file_src_mime)) {
if (function_exists('mime_content_type')) {
$this->file_src_mime = mime_content_type($this->file_src_pathname);
$this->log .= '- MIME type detected as ' . $this->file_src_mime . ' by mime_content_type()<br />';
}
}Discussão (3)
Carregando comentários...