syntax error, unexpected '′' (T_STRING) PHP -
this question has answer here:
- php parse/syntax errors; , how solve them? 11 answers
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
Post a Comment