เรียกใช้ .exe ใน php

--

เรียกใช้ .exe ใน php

ด้าน php file

<!DOCTYPE html>

<html>

<head>

<title>PHP Test</title>

<meta charset=”utf-8">

</head>

<body>

<?php

$file = ‘test.exe’;

if (!file_exists($file)) echo ‘File does not exists’;

$out= shell_exec($file);

//exec($file, $out);

echo ‘ouput is:: ‘ .$out

?>

</body>

</html>

ด้าน matlab ก่อน build เป็น exe

x=1

y=2

ผลลัพธ์คือ

หมายเหตุท้าย:
หากคุณชอบบทความนี้อย่าลืมคลิก❤ด้านล่างเพื่อแนะนำและถ้าคุณมีคำถามใด ๆ แสดงความคิดเห็นและฉันจะพยายามอย่างดีที่สุดที่จะตอบ คุณสามารถติดตามฉันบน facebook page (https://www.facebook.com/nextsoftwarehousethailand/) และสามารถส่งอีเมลถึงฉัน

--

--

Dr. Pathasu Doungmala
Dr. Pathasu Doungmala

Written by Dr. Pathasu Doungmala

Founder of Next Software — I am working on image processing, pattern recognition and AI to help reduce working in an industry.

No responses yet