I need some help. I have developed a software for images, at the end of this software it offers you the option to print pictures. So I move the pictures into a folder onto their desktop. I would like to add a button to open that folder for browsing once the transfer has been complete. Here is my code for transferring the images. I have no idea how to open a folder though. Just like when you are browsing a folder for file upload. That is how I want it to look. Any help would be greatly appreciated!!!
PHP
<?php
if(isset($_POST['yesplease'])){
$img = $_POST['print'];
$path = $_POST['path'];
$f = $_POST['f'];
$h = $_POST['h'];
$gp = $_POST['gp'];
$FolderDate = $_POST['f'];
$FolderName = $_POST['gp'];
$hour = $_POST['h'];
// Desired folder structure
$structure = './print/'.$FolderDate.'/'.$hour.'/'.$FolderName;
// To create the nested structure, the $recursive parameter
// to mkdir() must be specified.
if (!mkdir($structure, 0, true)) {
die('Failed to create folders...');
}
foreach ($_POST['print'] as $key => $value) {
echo " ".$value.",";
$file = $path.$value;
$newfile = $structure.$value;
if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
}
}
?>
I AM USING WAMP... I AM NOT ACTUALLY ON A SERVER ONLINE. Thanks!