junction.exe is a simple command line tool to create symbolic links in Windows... similar to "ln -s" in Unix.
This is the code I am trying to use:
Code: Select all
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
$newsitename = $_GET['site'];
// Create static link
$command = 'C:\\Inetpub\\wwwroot\\Daxko\\includes\\junction.exe C:\\Inetpub\\wwwroot\\Daxko\\'.$newsitename.' C:\\Inetpub\\wwwroot\\Daxko';
print($command);
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run($command, 0, false);
?>What am I doing wrong?