note 94742 deleted from function.exec by danbrown
| From: | danbrown@php.net | Date: | Mon, 23 Nov 2009 15:36:23 +0000 |
| Subject: | note 94742 deleted from function.exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163205@lists.php.net to get a copy of this message | ||
Note Submitter: landavia81 at gmail dot com
----
this problem i found in my forum.. hope this would help someone
.. Windows only please
<?
if (isset($_POST['submit']))
{
$temp=exec('c:/"Program Files"/"Internet
Explorer"/IEXPLORE.EXE');//or die('error');
}
?>
<html>
<body>
<form method="post" action="testing.php">
<input type="submit" value="Submit" name="submit"/>
</form>
</body>
</html>
i realy don't understand in the first.. but i found out.. the type must like type in command
prompt
open your command prompt and see if you want to change subdir.. you will type
cd subdirectory
or
cd "sub directory" (if there space in there)