Jump to content

Parse error: syntax error, unexpected T_VARIABLE


ShivaGupta

Recommended Posts

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:

 

 

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;
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.