Using local folder path as URL
eg., use D:\GitRepos\project instead of http://127.0.0.1/git/project
the same for pull data from Server
Friday, December 28, 2018
Thursday, September 6, 2018
Run .exe from PHP
PHP範例
<?php $answer = shell_exec("exe\AplusB.exe 1.3 2.5"); //路徑要用 反斜線 啊 windows echo $answer."</br>"; ?>
C++ 範例 (AplusB.exe):二個數值相加
#include <stdlib.h>
int main(int argc, char* argv[]) { if (argc <= 1) return -1; double a = atof(argv[1]); double b = atof(argv[2]); printf("%lf + %lf = %lf\n", a, b, a + b); return 0; }
PHP執行結果:
1.300000 + 2.500000 = 3.800000
[Reference]
https://stackoverflow.com/questions/12251634/how-to-run-abc-exe-using-php
http://eeepage.info/php-system-exec-passthru/
Sunday, August 26, 2018
Sunday, May 27, 2018
Saturday, May 26, 2018
Subscribe to:
Posts (Atom)
phpMyAdmin 無法存取 MariaDB 10 的解決方法
[Reference] https://www.qnap.com/zh-tw/how-to/faq/article/%E7%82%BA%E4%BB%80%E9%BA%BC%E7%84%A1%E6%B3%95%E5%9C%A8-phpmyadmin-%E5%AD%98%E5%8...
-
[ M LiDAR Viewer ] Windows 7 環境下, 在OpenGL視窗使用GDI即時繪圖,例如操作滑鼠繪出框選矩形時, 原來在視窗上的圖案會被清除。此時必須關閉[桌面轉譯緩衝處理]。 1.在程式的圖案上按滑鼠右鍵, 開啟程式[內容]對話盒. 2.按[相容性]頁面...
-
看這裏 http://social.technet.microsoft.com/Forums/en/w7itpronetworking/thread/1f22d98f-e150-4a54-9967-1641fa86dbc5
-
[Reference] http://www.programmer-club.com.tw/ShowSameTitleN/cb/10992.html 在主程式 WinMain() 加入下面程式碼 WINAPI WinMain(HINSTANCE, HINSTANCE, LPST...