473,799 Members | 2,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

gd library - Content-type: image/png - set name of image

6 New Member
Hi, basically I create a png image on the fly and that all works fine but when I go to save the image it's taking the name of the .php script used to create it as its default name.

e.g. I visit qrcode.php?id=1 00092 which creates a qrcode png image for "100092" which works fine. I then want to save this png image so I right click and pick "Save Picture As..." which displays a dialog that already has "File name:" filled in as "qrcode" which is from the .php script that was used to create the png image "qrcode.php?id= 100092". Can this be set because otherwise if someone wants to save several different qrcode png images when they come to save them they will all be defaulted to the filename "qrcode" even though they are different images. I wish to have already set the default filename for the user to the id so for the example specified above the default filename would be "100092". Hope this makes sense. Thanks.
Apr 8 '07 #1
0 1527

Sign in to post your reply or Sign up for a free account.

Similar topics

6
2727
by: Rob Long | last post by:
Hey, I've written a custom HTML library using many PHP scripts as seperate files (just like I'd do a java project) and I'm having some problems where I'm including scripts in different directories from already included scripts... basically where there'a an include chain spanning multiple directories. I've reduced the problem to its core:
0
1304
by: Meccalloq | last post by:
I'm doing a program in C++ and I know that the following question seems pretty simple, but I'm using the library "miracl" and I have the problem to assign to a "Big" variable the content of a "Flash" variable (the actual content of the Flash variable to convert is an integer, so teoretically there should not be any problem). The inverse passage gives no problem at all, but all the way I've tried do not work. Do somebody knows the correct...
6
3828
by: Jeff | last post by:
Hi, I'm finishing up developing a speech control jukebox (see intelligentjukebox.com) Can anyone point me to the easiest to use free library that does very basic regular expression matching and substitution? E.g. I need do stuff like this: (perl expression follows) $s =~ s/\&/and/g; # replace ampersands with "and"
0
1395
by: libreria ledi international bookseller | last post by:
BIBLIOTECA DIGITALE THE ITALIAN EBOOK PLATFORM FOR LIBRARIES Libraries’ users ask for more and more accessible information and for even more complete and updated catalogues. The Italian language is spreading all over the world and expecially in the United States where more and more students study Italian as a second language and they require information for opening up new horizons to a different culture. Libuk, an Italian pioneer firm...
1
1802
by: darrel | last post by:
I have two issues: 1) The WYSIWYG content editor we're using for our CMS doesn't truly support xhtml. 2) .net doesn't truly support xhtml my question is if there is a .net library/class/component that can convert from html to xhtml?
2
1405
by: Ben Finney | last post by:
Howdy all, I'm trying to implement some new functionality for an existing PHP web application. Rather than writing a whole lot of stuff in PHP, and looking toward a future when more of the application can be rewritten more sanely, I'd like to write a Python program that generates the content and serves it up to the existing application via HTTP. The existing architecture is as expected:
26
3489
by: Andrew Poelstra | last post by:
I hacked this together this morning so that I could shift my out-of- space code away from the rest of my logic. I wanted to allow array syntax on my dynamic buffers, so I manually created a struct with malloc() and judicious use of void* pointers. I decided to post it because stuff like this is breeding ground for UB, and this group is good at finding it. (I had a dentist analogy for that, but it didn't work out.) Here's my code:
11
4568
by: Jonathan Pritchard | last post by:
Does anyone know of a library to read/write mbox format (used to store emails e.g. in Thunderbird) in ANSI C (cross platform is key)? Is there a more appropriate place to ask this? -- Reclaim Your Inbox! http://www.mozilla.org/products/thunderbird
3
1851
by: tuka | last post by:
Hi All, Is there a way to temporarily suspend the use of imported libraries in xslt ? To be precise the issue I am trying to resolve is , I have a library imported as <xsl:import href="Defaults.xsl" /which strip off html tags like <p> etc from the acted upon xml.
2
2511
by: Frank | last post by:
Hi, Originally I was planning to do some code reuse (yeah.. that exists..didn't want to believe it either) with some class library projects that I now want to use in a asp.net 2.0 web app in VS 2005. The solution contains both the web app and the class libraries. Inside the class libraries there are some xml files marked as content files and configured to be copied to the output directory on build. This worked perfectly fine for a...
0
9689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10269
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10248
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5597
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2942
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.