Jump to content

integrating c in php, scanf and printf


vks_foe

Recommended Posts

Hi friends,

 

i have an executable made from c code which i call in my php script using exec. The code uses scanf to get input from stdin. But when call this from my webpage, the scanf part is ignored and some junk values are assumed. Is there any means to provide runtime inputs/values to the executable, when called using exec, system, etc in phpscript??

Link to comment
https://forums.phpfreaks.com/topic/239337-integrating-c-in-php-scanf-and-printf/
Share on other sites

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.