ShivaGupta Posted July 10, 2013 Share Posted July 10, 2013 trying to build <?php $file="test.bmp" $cmd="curl -F userfile=$file \ -F outputencoding=\"utf-8\" \ -F outputformat=\"txt\" \ http://example.com/ocr_scene.cgi >result.txt" exec($cmd, $result) echo $result; ?> But keep getting Parse error: syntax error, unexpected T_VARIABLE in /home/content/65/11169265/html/testt/index.php on line 3 looks like that's not the issue,help me out plzzzz: Quote Link to comment https://forums.phpfreaks.com/topic/280040-parse-error-syntax-error-unexpected-t_variable/ Share on other sites More sharing options...
Maq Posted July 10, 2013 Share Posted July 10, 2013 Missing a ; Quote Link to comment https://forums.phpfreaks.com/topic/280040-parse-error-syntax-error-unexpected-t_variable/#findComment-1440185 Share on other sites More sharing options...
ShivaGupta Posted July 10, 2013 Author Share Posted July 10, 2013 keep getting Missing a ; <?php $file="test.bmp" $cmd="curl -F userfile=$file \ -F outputencoding=\"utf-8\" \ -F outputformat=\"txt\" \ http://example.com/ocr_scene.cgi >result.txt" exec($cmd, $result); echo $result; ?> Quote Link to comment https://forums.phpfreaks.com/topic/280040-parse-error-syntax-error-unexpected-t_variable/#findComment-1440192 Share on other sites More sharing options...
Maq Posted July 10, 2013 Share Posted July 10, 2013 Keep getting what? Quote Link to comment https://forums.phpfreaks.com/topic/280040-parse-error-syntax-error-unexpected-t_variable/#findComment-1440195 Share on other sites More sharing options...
ShivaGupta Posted July 10, 2013 Author Share Posted July 10, 2013 Parse error: syntax error, unexpected T_VARIABLE in /home/content/65/11169265/html/testt/index.php on line 3 Keep getting what? Quote Link to comment https://forums.phpfreaks.com/topic/280040-parse-error-syntax-error-unexpected-t_variable/#findComment-1440198 Share on other sites More sharing options...
Solution kicken Posted July 10, 2013 Solution Share Posted July 10, 2013 Your missing several ;'s Quote Link to comment https://forums.phpfreaks.com/topic/280040-parse-error-syntax-error-unexpected-t_variable/#findComment-1440200 Share on other sites More sharing options...
AbraCadaver Posted July 10, 2013 Share Posted July 10, 2013 ; ; ; Quote Link to comment https://forums.phpfreaks.com/topic/280040-parse-error-syntax-error-unexpected-t_variable/#findComment-1440207 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.