[eluser]Unknown[/eluser]
Good day! I hope somebody could help me with this.
My site runs perfectly in localhost, but when I uploaded it to a subdomain in cpanel this error appears:
Quote:Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/gpolg/system/helpers/file_helper.php on line 357
Parse error: syntax error, unexpected '/' in /home/gpolg/system/helpers/file_helper.php on line 357
In said line is this (include(APPPATH.'config/'.ENVIRONMENT.'/mimes.php')
:
Code:
if ( ! function_exists('get_mime_by_extension'))
{
function get_mime_by_extension($file)
{
$extension = strtolower(substr(strrchr($file, '.'), 1));
global $mimes;
if ( ! is_array($mimes))
{
if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
{
include(APPPATH.'config/'.ENVIRONMENT.'/mimes.php');
}
elseif (is_file(APPPATH.'config/mimes.php'))
{
include(APPPATH.'config/mimes.php');
}
if ( ! is_array($mimes))
{
return FALSE;
}
}
The hierarchy of the subdomain is:
home/gpolg/
-application
-system
-public_html
--mytestsite/
---index.php
---.htaccess
I've tried moving the app and sys folder (changing the paths, of couse), to the public mytestsite folder with the same result.
The only ENVIRONMENT I could find was in the index.php, which i changed from development to testing and back.
I know is something I did wrong... but I can't find it out. Any ideas why is this happening? Thanks in advance.