Beste,
Is het mogelijk om een programma te openen via PHP of iets anders? Bijvoorbeeld dat er staat; Open Notepad, en dan opent hij Notepad. Ik had het volgende script maar op One2xs is popen() al weer geblokkeerd...
Warning: system() has been disabled for security reasons
Is het mogelijk om een programma te openen via PHP of iets anders? Bijvoorbeeld dat er staat; Open Notepad, en dan opent hij Notepad. Ik had het volgende script maar op One2xs is popen() al weer geblokkeerd...
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]function[/COLOR] callTool [COLOR= #007700]([/COLOR][COLOR= #0000BB]$path[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$file[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/chdir"]chdir[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$path[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$call[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$path[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$file[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/pclose"]pclose[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/popen"]popen[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]start /b [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$call[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000][/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]r[/COLOR][COLOR= #007700]));
}[/COLOR]
[COLOR= #0000BB]$location[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"C:WINDOWS"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$filename[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"NOTEPAD.EXE"[/COLOR][COLOR= #007700];[/COLOR]
callTool[COLOR= #007700]([/COLOR][COLOR= #0000BB]$location[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$filename[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]// Of dit, maar dan zegt hij het volgende[/COLOR]
[URL="http://www.php.net/system"]system[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"start notepad.exe"[/COLOR][COLOR= #007700]);[/COLOR]
?> Warning: system() has been disabled for security reasons
