guys..i need some help..i want to let my users open an eps file in photoshop using php...
can anyone help??..ive tried using this script to open it, but there is no image displayed in the photoshop..
im opening it in photoshop cs2.PHP Code:
<? include('db.php');
$query = mysql_query("SELECT * FROM directory");
$row = mysql_fetch_row($query);
$image_folder = 'file:///'.$row[4];
if (isset($_GET['name']) && basename($_GET['name']) == $_GET['name']) {
$img = $image_folder.$_GET['name'];
$filename = $img;
$mime = 'image/vnd.adobe.photoshop';
header('Content-disposition: attachment; filename='.basename($filename));
header('Content-Type: '.$mime);
header('Content-Length: '. filesize($filename));
readfile($filename);
}
//image/vnd.adobe.photoshop
?>