CodeIgniter Forums
Parse error: syntax error, unexpected '$autoload' (T_VARIABLE) in - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Parse error: syntax error, unexpected '$autoload' (T_VARIABLE) in (/thread-70098.html)



Parse error: syntax error, unexpected '$autoload' (T_VARIABLE) in - aravind - 02-19-2018

Parse error: syntax error, unexpected '$autoload' (T_VARIABLE) in /opt/lampp/htdocs/codeigniter-login-registration/application/config/autoload.php on line 106
A PHP Error was encountered
Severity: Parsing Error
Message: syntax error, unexpected '$autoload' (T_VARIABLE)
Filename: config/autoload.php
Line Number: 106
Backtrace:

How is purticular error msg in my program.......


RE: Parse error: syntax error, unexpected '$autoload' (T_VARIABLE) in - ciadmin - 02-19-2018

It sounds like your config/autoload.php has a syntax error in it.
Your should post it here, with bbcode markup and with any sensitive information redacted.


RE: Parse error: syntax error, unexpected '$autoload' (T_VARIABLE) in - InsiteFX - 02-20-2018

can be a missing semi-colon quote mark etc;


RE: Parse error: syntax error, unexpected '$autoload' (T_VARIABLE) in - Shahzaib Arshad - 01-12-2020

(02-19-2018, 10:08 PM)aravind Wrote: Parse error: syntax error, unexpected '$autoload' (T_VARIABLE) in /opt/lampp/htdocs/codeigniter-login-registration/application/config/autoload.php on line 106
A PHP Error was encountered
Severity: Parsing Error
Message: syntax error, unexpected '$autoload' (T_VARIABLE)
Filename: config/autoload.php
Line Number: 106
Backtrace:

How is purticular error msg in my program.......
there are many cases when the i faced the very same error and SEMI-COLON (;) was the reason check 105 line of your code there is a big possiblilty that you messed up with semi colon or with name of your variable. hope this will resolve your issue . Heart