sir mark..ive decided to just open an application for my eps files..ive downloaded "IrFanView" and it can open my eps file but when i tried to open the eps file via php, it always prompts an error which is "Can't read file header"..im using this code to open my eps file, although im not sure if im using the correct mime type for eps files..
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/eps';
header('Content-disposition: attachment; filename='.basename($filename));
header('Content-Type: '.$mime);
header('Content-Length: '. filesize($filename));
readfile($filename);
}
?>