[APACHE] 윈도우용 아파치 D드라이브 사용(가상:Alias)
1. httpd.conf 추가
Alias /record/ "D:/record/"
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
2. 아파치 재시동
3. 확인 페이지(1)
echo "D:\\record\\";
phpinfo();
?>
4. 확인페이지(2)
/* dir 명령어 사용 */
$cmd = "dir D:\\record\\";
$output = shell_exec($cmd);
//$output = exec($cmd);
echo $output;
?>
댓글