Hi
I've been searching previous posts about this, and looking at the options in the manual but I need a little further help!
I want to execute a "tracert" command in the command prompt via php (using windows)
I've managed to use passthru() to open the command prompt (but it doesn't allow me to use it) and when I close it, it outputs the command prompt output in the browser.
I don't mind whether the result is passed back to the browser to stays in the command prompt window (but that would use exec() I would think).
So how can I tell the command prompt that launches to execute the line
tracert 192.190.201.273
(dummy ip)
So far my experimental code is:
<?php
passthru("c:\windows\system32\cmd.exe");
?>
EDIT: my backslashes have been stripped from the path, but you know what I mean!
Grateful for any help!