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 Share on other sites More sharing options...
Maq Posted July 10, 2013 Share Posted July 10, 2013 Missing a ; Quote Link to comment 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 Share on other sites More sharing options...
Maq Posted July 10, 2013 Share Posted July 10, 2013 Keep getting what? Quote Link to comment 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 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 Share on other sites More sharing options...
AbraCadaver Posted July 10, 2013 Share Posted July 10, 2013 ; ; ; Quote Link to comment 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.