[英]Calling PHP from C program
我有一個想從C程序運行的php函數。 文件為“ /path/auth.php”,函數為authenticate($ user,$ pwd)。 如果用戶已正確驗證,該函數將回顯1或0。 我需要將此結果返回到C程序,然后根據結果運行其他代碼。 我應該怎么做?
將PHP添加到環境變量PATH
執行腳本的命令是php path/auth.php
php path/auth.php
點擊此鏈接編寫您的C代碼
[英]Calling a PHP script from a C++ Program
[英]Calling C program with PHP
[英]Calling C program from a PHP script using shell_exec()
[英]Calling PHP From C
[英]calling c from php
[英]Calling another php program in a popup window from a php program
[英]calling dll function from php program
[英]Calling a Perl program from PHP and printing the output
[英]Executing a C program from PHP
[英]Running a C program from php
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.