modding the church sign generator
July 10, 2005 8:36 AM
Subscribe
I'm trying to modify the great
Church Sign Generator for my own purposes. I have a php question...
If I wanted the resulting merged image to be written to a file on the server, say, sign.jpg, instead of being displayed in a new window, how would I modify the php to do that?
I don't need every submitted sign to be written to a unique filename. I just need the same file overwritten every time a sign is submitted.
I assume this is the part of the
source code that would be replaced by something different:
+++++++++++++++++++++++++++++++++++++++++++++
/* Now that the image is built, it gets sent to the browser. First, send out HTTP headers to
tell the browser a JPEG image is coming. */
header("Content-Type: image/jpeg");
header("Content-Disposition: inline; filename=churchsign.jpg");
/* The imagejpeg() function sends the output img to the browser. */
imagejpeg($output_img);
++++++++++++++++++++++++++++++++++++++++++++++
??
posted by stupidsexyFlanders to computers & internet (7 comments total)
posted by stupidsexyFlanders at 8:38 AM on July 10, 2005