syntax error, unexpected '′' (T_STRING) PHP -


this question has answer here:

i getting following error while running php script:

symfony \ component \ debug \ exception \ fatalerrorexception syntax error, unexpected '′' (t_string) 

. symfony\component\debug\exception\fatalerrorexception …/­app/­filters.php:72

    route::any(‘check/purchase-code’, function() {if ($code = input::get(‘code’)) {ini_set(‘user_agent’, ‘mozilla/5.0′);$result = “”;if ($result = 1) {session::put(‘valid-usage’,’1′);return redirect::route(‘install-db-info’);}}return redirect::to(‘/install’);}); route::filter(‘user-auth’, function() 

replace line (be sure ' , ")

route::any(‘check/purchase-code’, function() {if ($code = input::get(‘code’)) {ini_set(‘user_agent’, ‘mozilla/5.0′);$result = “”;if ($result = 1) {session::put(‘valid-usage’,’1′);return redirect::route(‘install-db-info’);}}return redirect::to(‘/install’);}); route::filter(‘user-auth’, function() 

to this

route::any('check/purchase-code', function() {if ($code = input::get('code')) {ini_set('user_agent', 'mozilla/5.0');$result = "";if ($result = 1) {session::put('valid-usage','1');return redirect::route('install-db-info');}}return redirect::to('/install');}); route::filter('user-auth', function() 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -