Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 6th, 2004, 04:21 PM
Authorized User
 
Join Date: Mar 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default saving EPS format

Can someone help me find away to save .esp & jpeg format files on the viewers browser? I can't find it any where.

I am trying to make an application where the user can choose over 100 vector images and can change the colour of the vector image area. After they have selected and worked with the finish art work. I want them to be able to save the image onto there computer for print or web (.eps or jpeg)

I know their a pdf_save but I know a esp format

thanks for your help!!!!


 
Old May 6th, 2004, 04:49 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Check out the comments at the bottom of this page: http://www.php.net/readfile

HTH,

Snib

<><
 
Old May 8th, 2004, 04:59 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default


Code:
<?php

   // download.php
   // Prompt the user to save a file, then download it

   header('Content-Type: MIME TYPE');
   header('Content-Disposition: attachment; filename=suggested file name');

   echo file_get_contents('path/to/image.jpg');

?>
These header adjustments prompt the user to save the file. First you need to supply a MIME type, like image/jpeg or image/gif or image/x-png or whatever. Then you suggest a file name like art.jpg, or whatever, grab the contents of the file and output it to the user.

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::





Similar Threads
Thread Thread Starter Forum Replies Last Post
saving files in windows format rage989 PHP How-To 0 August 30th, 2007 03:07 PM
Read EPS and CDR dparsons ASP.NET 1.0 and 1.1 Professional 0 July 17th, 2006 07:13 AM
Saving Image to sqlserver 2000 in binary format kvanchi General .NET 1 May 10th, 2005 07:24 AM
EXCEL question saving a file saving the the first macupryk VS.NET 2002/2003 0 January 6th, 2005 05:33 PM
saving textfield format in database dhaywirex Classic ASP Databases 3 March 10th, 2004 12:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.