How to run php file with parameter using notepad++
test.php
<?php
/* -------
test.php
------- */
if(!isset($_GET['file'])){
exit;
}
$code=file_get_contents($_GET['file']);
echo $code;
?>
demo_file.php -----$(FULL_CURRENT_PATH)
contents:
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?]
how to send "demo_file.php" as $_GET['file']
to test.php ?
The console finally should output:...... hello world