Hi,
I'm haveing some problems I'm trying to generate bar charts dynamically by
pulling data from an MS Access databasae using an ODBC connection and then
generating the bar charts, this is all on WinXP Pro by the way. I have no
problems with getting the data out of the database and sorting it. I was
using this tutorial http://www.phpbuilder.com/columns/wi...r20001218.php3 as a guidline to
generating the images, but nothing seems to be working for me.
My problem is that I cannot generate any images using any of the
GD image functions. I have loaded the php_gd2.dll in the php.ini file and I
can see that the dll is loaded when I do a phpinfo(); the probelm is that
none of the pages are generating any images.
I would be greatful if somebody would be able to assist.
Thanks,
Tony 5 1686
On Wed, 10 Nov 2004 21:18:24 -0000, "Tony Clarke" <cl*****@eircom .net> wrote: I'm haveing some problems I'm trying to generate bar charts dynamically by pulling data from an MS Access databasae using an ODBC connection and then generating the bar charts, this is all on WinXP Pro by the way. I have no problems with getting the data out of the database and sorting it. I was using this tutorial http://www.phpbuilder.com/columns/wi...r20001218.php3 as a guidline to generating the images, but nothing seems to be working for me. My problem is that I cannot generate any images using any of the GD image functions. I have loaded the php_gd2.dll in the php.ini file and I can see that the dll is loaded when I do a phpinfo(); the probelm is that none of the pages are generating any images. I would be greatful if somebody would be able to assist.
Example code? What errors do you get? What happens when you try to view the
images? Have you sent the right content-type header? Are there PHP error
messages being produced (this corrupts the image)?
--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
I dont get any errors, doing a phpinfo(); shows GD installed. I use a html
with an <img> tag to call the php file that is supposed to generate the
image. Example code below is saved in a file called chart.php and use the
img src tag to call it. On the html page I just get a space as if the html
page could not find the image. Any help would be greatly appreciated.
<HTML>
<BODY>
<H1>RMAs Raised</H1>
<IMG SRC="test1.php" HEIGHT="250" WIDTH="480">
</BODY>
</HTML>
<?php
//-------------------- chart.php file
header ("Content-type: image/png");
$img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
$back_color = ImageColorAlloc ate ($img_handle, 0, 10, 10);
$txt_color = ImageColorAlloc ate ($img_handle, 233, 114, 191);
ImageString ($img_handle, 31, 5, 5, "My first Program with GD",
$txt_color);
ImagePng ($img_handle);
?>
"Andy Hassall" <an**@andyh.co. uk> wrote in message
news:i8******** *************** *********@4ax.c om... On Wed, 10 Nov 2004 21:18:24 -0000, "Tony Clarke" <cl*****@eircom .net>
wrote: I'm haveing some problems I'm trying to generate bar charts dynamically
bypulling data from an MS Access databasae using an ODBC connection and
thengenerating the bar charts, this is all on WinXP Pro by the way. I have
noproblems with getting the data out of the database and sorting it. I was using this tutorial http://www.phpbuilder.com/columns/wi...r20001218.php3 as a guidline
togenerating the images, but nothing seems to be working for me. My problem is that I cannot generate any images using any of
theGD image functions. I have loaded the php_gd2.dll in the php.ini file and
Ican see that the dll is loaded when I do a phpinfo(); the probelm is that none of the pages are generating any images. I would be greatful if somebody would be able to assist.
Example code? What errors do you get? What happens when you try to view
the images? Have you sent the right content-type header? Are there PHP error messages being produced (this corrupts the image)?
Sorry, that image tag below should be
<IMG SRC="chart.php" HEIGHT="250" WIDTH="480">
"Tony Clarke" <cl*****@eircom .net> wrote in message
news:gY******** ***********@new s.indigo.ie... I dont get any errors, doing a phpinfo(); shows GD installed. I use a html with an <img> tag to call the php file that is supposed to generate the image. Example code below is saved in a file called chart.php and use the img src tag to call it. On the html page I just get a space as if the html page could not find the image. Any help would be greatly appreciated.
<HTML> <BODY> <H1>RMAs Raised</H1> <IMG SRC="test1.php" HEIGHT="250" WIDTH="480"> </BODY> </HTML>
<?php //-------------------- chart.php file header ("Content-type: image/png"); $img_handle = ImageCreate (230, 20) or die ("Cannot Create
image"); $back_color = ImageColorAlloc ate ($img_handle, 0, 10, 10); $txt_color = ImageColorAlloc ate ($img_handle, 233, 114, 191); ImageString ($img_handle, 31, 5, 5, "My first Program with GD", $txt_color); ImagePng ($img_handle); ?> "Andy Hassall" <an**@andyh.co. uk> wrote in message news:i8******** *************** *********@4ax.c om... On Wed, 10 Nov 2004 21:18:24 -0000, "Tony Clarke" <cl*****@eircom .net> wrote: I'm haveing some problems I'm trying to generate bar charts
dynamically bypulling data from an MS Access databasae using an ODBC connection and thengenerating the bar charts, this is all on WinXP Pro by the way. I have noproblems with getting the data out of the database and sorting it. I
wasusing this tutorial http://www.phpbuilder.com/columns/wi...r20001218.php3 as a
guidline togenerating the images, but nothing seems to be working for me. My problem is that I cannot generate any images using any
of theGD image functions. I have loaded the php_gd2.dll in the php.ini file
and Ican see that the dll is loaded when I do a phpinfo(); the probelm is
thatnone of the pages are generating any images. I would be greatful if somebody would be able to assist.
Example code? What errors do you get? What happens when you try to view the images? Have you sent the right content-type header? Are there PHP error messages being produced (this corrupts the image)?
Tony Clarke wrote: I dont get any errors, doing a phpinfo(); shows GD installed. I use a html with an <img> tag to call the php file that is supposed to generate the image. Example code below is saved in a file called chart.php and use the img src tag to call it. On the html page I just get a space as if the html page could not find the image. Any help would be greatly appreciated.
<HTML> <BODY> <H1>RMAs Raised</H1> <IMG SRC="test1.php" HEIGHT="250" WIDTH="480"> </BODY> </HTML>
<?php //-------------------- chart.php file header ("Content-type: image/png"); $img_handle = ImageCreate (230, 20) or die ("Cannot Create image"); $back_color = ImageColorAlloc ate ($img_handle, 0, 10, 10); $txt_color = ImageColorAlloc ate ($img_handle, 233, 114, 191); ImageString ($img_handle, 31, 5, 5, "My first Program with GD", $txt_color); ImagePng ($img_handle); ?>
"Andy Hassall" <an**@andyh.co. uk> wrote in message news:i8******** *************** *********@4ax.c om... On Wed, 10 Nov 2004 21:18:24 -0000, "Tony Clarke" <cl*****@eircom .net> wrote: I'm haveing some problems I'm trying to generate bar charts dynamically bypulling data from an MS Access databasae using an ODBC connection and thengenerating the bar charts, this is all on WinXP Pro by the way. I have noproblems with getting the data out of the database and sorting it. I was using this tutorial http://www.phpbuilder.com/columns/wi...r20001218.php3 as a guidline togenerating the images, but nothing seems to be working for me. My problem is that I cannot generate any images using any of theGD image functions. I have loaded the php_gd2.dll in the php.ini file and Ican see that the dll is loaded when I do a phpinfo(); the probelm is that none of the pages are generating any images. I would be greatful if somebody would be able to assist.
Example code? What errors do you get? What happens when you try to view the images? Have you sent the right content-type header? Are there PHP error messages being produced (this corrupts the image)?
Try commenting out the header() line, make sure error reporting is on and see
what's up. That should give you a human-readable error. I'm asssuming you have
your paths right (your 2 files have to be in the same directory)...
Shawn
--
Shawn Wilson sh***@glassgian t.com http://www.glassgiant.com
On Wed, 10 Nov 2004 22:51:36 -0000, "Tony Clarke" <cl*****@eircom .net> wrote: I dont get any errors, doing a phpinfo(); shows GD installed. I use a html with an <img> tag to call the php file that is supposed to generate the image. Example code below is saved in a file called chart.php and use the img src tag to call it. On the html page I just get a space as if the html page could not find the image. Any help would be greatly appreciated.
<HTML> <BODY> <H1>RMAs Raised</H1> <IMG SRC="test1.php" HEIGHT="250" WIDTH="480"> </BODY> </HTML>
<?php //-------------------- chart.php file
These are two separate files, right?
Also the <img> references test1.php whereas the comment says this is
chart.php.
header ("Content-type: image/png");
If image creation is going wrong, it can be useful to comment out the
content-type header line so you get it dumped out as text - that way you'll see
any error messages.
$img_handle = ImageCreate (230, 20) or die ("Cannot Create image"); $back_color = ImageColorAlloc ate ($img_handle, 0, 10, 10); $txt_color = ImageColorAlloc ate ($img_handle, 233, 114, 191); ImageString ($img_handle, 31, 5, 5, "My first Program with GD", $txt_color); ImagePng ($img_handle); ?>
--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rob Brown |
last post by:
I put together an installation program and it works great the first time.
The problem I have is that we want the users to be able to rerun the
installation without needing to uninstall the older package first. How can
I set up the package to overlay the existing installation without forcing
the
user to run an uninstall first?
Thanks,
Rob Brown
|
by: Michał Januszczyk |
last post by:
Hello.
I've got the following problem:
I created a windows installer project that installs my application.
The application works with some files. I want to include some
example files with the installation package.
These files by no means are critical for the application itself.
They are included only to help application user to get aquaintanced
with the app.
|
by: 3f |
last post by:
Hello;
We have made a web application that people can download from our web site
and installed on:
Windows XP
Windows 2000 Professional
Windows 2003 Server
Windows 2000 Server
|
by: mb12036 |
last post by:
All-
Having a problem installing a DB2 client on a machine running AIX
version 5.0. Client appeared to install one time succesfully, then
was uninstalled and a reinstall was attempted. For some reasons, it
does not complete the reinstall. See the status report from the GUI
installer at the end of this note. Errors are towards the bottom.
Everything installed in /usr/opt for DB2 but the sqllib folder that is
supposed to be created in...
|
by: news.symantec.com |
last post by:
Hi All,
I'm trying to install DB2 Enterprise Edition 8.1 (partitioned installation)
onto a clean Win 2k SP4 advanced server box. The problem is the partitioned
installation requires a "Domain User" account for the partition (at least
that is what it tells me at some point during the install) whereas a
non-partitioned installation doesn't need one. Whenever I try to install DB2
logged in as a domain admin the installation tells me that...
| |
by: Will Honea |
last post by:
Wanting to look at V9, I attempted to install Db2 Express-C on a Suse Linux
box I use as a sandbox. Since I was less that thorough when removing
previous installations of V8 and V7, the installation failed creating the
admin server. I now have a phantom instance that I can't access or drop so
the de_install fails but the installation is essentially useless. Is there
a reasonable way to remove all traces of V9 so that I can start over?
...
|
by: James |
last post by:
I am going to install DB2 version 9 on Windows XP workstation. But I
can not continue the installation after I issue the command "setup /i
en". System shows me that "A major error occoured while installing DB2
on this computer".
The following is a part of the installation log.
Action ended 22:43:57: SetInitialPropertiesCA. Return value 1.
|
by: =?Utf-8?B?R3JlZw==?= |
last post by:
I have no idea where to post this question, or even if its appropriate for me
to post it here. I don't know if installing a VB.Net program has caused the
problem I'm having or not. All I know is I did install a VB.Net program on my
desktop computer and lately its been acting very strangely. It could also be
the result of something else, but I'm not sure.
The symptom I'm having is the following.
When I start up my desktop computer I am...
|
by: Now You Know |
last post by:
Best Christmas Lights Decoration Sale Installation in Los Angeles
818-386-1022
(These types of Innovative lights will definetly add to your Christmas
decor)
Here are the tips to use:
The most common color combinations appropriate for the Christmas
season include red, green and copper lights that denote festivity;
blue and green lights for more subdued arrangements; novelty
combinations such as blue and red lights; and mauve, blue and...
|
by: Now You Know |
last post by:
Best Christmas Lights Decoration Sale Installation in Los Angeles
818-386-1022
(These types of Innovative lights will definetly add to your Christmas
decor)
Here are the tips to use:
The most common color combinations appropriate for the Christmas
season include red, green and copper lights that denote festivity;
blue and green lights for more subdued arrangements; novelty
combinations such as blue and red lights; and mauve, blue and...
|
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...
| |
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...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |