如何使用記事本來運行參數PHP文件++如何使用記事本++
test.php的
<?php
/* -------
test.php
------- */
if(!isset($_GET['file'])){
exit;
}
$code=file_get_contents($_GET['file']);
echo $code;
?>
demo_file.php運行php文件,參數--- - $(FULL_CURRENT_PATH)
項內容:
的hello world
cd "D:\PHPnow-1.5.6\htdocs\zc_default\my_debug_fw"<br>
"d:\PHPnow-1.5.6\php-5.2.14-Win32\php.exe" "test.php" [what here?]
如何發送「demo_file.php」爲$_GET['file']
到test.php的?
控制檯最後應該輸出:...... hello world
太棒了,謝謝 – linjuming