How do execute a c Program in php | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

How do execute a c Program in php

Hi, I'm currently working on a project that Checks the weight of some bottles and then sende the value to a raspberry pi, my code is written in c and it's working but I want to also execute it via php. I tried exec ("myprogram", $output ); But when I try it i get an empty Page could anyone help me out?

7th Dec 2017, 10:56 AM
Shahriayar Mustafa
Shahriayar Mustafa - avatar
1 Réponse
+ 1
thank you :)
7th Dec 2017, 12:59 PM
Shahriayar Mustafa
Shahriayar Mustafa - avatar