Vote count:
0
I have tried to execute matlab code in Server in php to get back the result. The following code are my php code. The matlab code is successfully executed however I cannot get the similarityScore back.
However i got an empty text file. I cannot figure the problem.
$command = "matlab -nojvm -nodesktop -nodisplay -r\ "similarityScore=getSimilarityScore('".$musci_path."','./upload/test.jpg','".$photo_upload_path."');\"";
$value=exec($command);echo $value;
$fp = fopen("myText.txt","wb");
fwrite($fp,$value);
fclose($fp);
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire