Re[2]: [PHP] Graph Question..

2002-11-21 Thread Alexander Lazarchuk
Hello Jim,

The problem is with imagegif() function.
Probably, you have PHP with no GD library (available at http://www.boutell.com/gd/)
Or you have GD library version 1.6

With best regards,
Alexander Lazarchuk

**
Alexander Lazarchuk  *
mail:[EMAIL PROTECTED]*
ICQ: 85839546*
homepage:http://www.lassar2000.h1.ru *
**


Thursday, November 21, 2002, 5:29:35 PM, you wrote:

JH> HI Andrew et al...
JH> On Wednesday 20 November 2002 21:09, Andrew Brampton wrote:
>> Try going direct to the image's URL, this might show any PHP errors. If
>> that doesn't work, you can request the page via telnet and see if any
>> errors are appearing
>>
>> Andrew

JH> I hate to admit it but I don't understand what you mean. (Please note, I'm new 
JH> with PHP.) All the software is on my personal system. I'm not doing this over 
JH> the 'net. 

JH> There is three test files with this software. I picked it up at  
JH> http://www.phpclasses.org/  Using two files I get only the broken box.  

JH> But when I say http://opus.epost.de/~hatridge/graphs/test_pie.php (this is the 
JH> third test file)  I get this 

JH> ###
JH> Warning: Cannot add header information - headers already sent by (output
JH> started at /home/hatridge/public_html/graphs/Piechart.php:159) in
JH> /home/hatridge/public_html/graphs/Graph.php on line 40

JH> Fatal error: Call to undefined function: imagegif() in
JH> /home/hatridge/public_html/graphs/Graph.php on line 43
JH> #

JH> Any ideas?

JH> Thanks 

JH> JIM


>> - Original Message -
>> From: "James Hatridge" <[EMAIL PROTECTED]>
>> To: "PHP-GEN" <[EMAIL PROTECTED]>
>> Sent: Wednesday, November 20, 2002 3:06 PM
>> Subject: [PHP] Graph Question..
>>
>>
>>
>> Hi all,,
>>
>> I d/l'ed a class for graphs last night. When I got the class working
>> instead of a line graph I got the netscape symbol for no picture, ie a
>> broken box. I must have missed something. Could someone give me a clue what
>> I'm doing wrong?
>>
>> Thanks
>>
>> JIM


--
Best regards,
 Alexandermailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Graph Question..

2002-11-21 Thread Hugh Danaher
Jim,
Regarding "undefined function: imagegif()," It could be that your build of
the "GD Library" doesn't include gif support.  You can try replacing this
function with imagejpg() or imagepng().  Imagepng() will likely be faster
and sharper than imagejpg().
Hugh
- Original Message -
From: "Jim Hatridge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 7:29 AM
Subject: Re: [PHP] Graph Question..


HI Andrew et al...
On Wednesday 20 November 2002 21:09, Andrew Brampton wrote:
> Try going direct to the image's URL, this might show any PHP errors. If
> that doesn't work, you can request the page via telnet and see if any
> errors are appearing
>
> Andrew

I hate to admit it but I don't understand what you mean. (Please note, I'm
new
with PHP.) All the software is on my personal system. I'm not doing this
over
the 'net.

There is three test files with this software. I picked it up at
http://www.phpclasses.org/  Using two files I get only the broken box.

But when I say http://opus.epost.de/~hatridge/graphs/test_pie.php (this is
the
third test file)  I get this

###
Warning: Cannot add header information - headers already sent by (output
  started at /home/hatridge/public_html/graphs/Piechart.php:159) in
/home/hatridge/public_html/graphs/Graph.php on line 40

Fatal error: Call to undefined function: imagegif() in
/home/hatridge/public_html/graphs/Graph.php on line 43
#

Any ideas?

Thanks

JIM


> - Original Message -
> From: "James Hatridge" <[EMAIL PROTECTED]>
> To: "PHP-GEN" <[EMAIL PROTECTED]>
> Sent: Wednesday, November 20, 2002 3:06 PM
> Subject: [PHP] Graph Question..
>
>
>
> Hi all,,
>
> I d/l'ed a class for graphs last night. When I got the class working
> instead of a line graph I got the netscape symbol for no picture, ie a
> broken box. I must have missed something. Could someone give me a clue
what
> I'm doing wrong?
>
> Thanks
>
> JIM

--
Vielfeind -- Viel Ehr'
Antiamerikanische Propaganda in der Philatelie des 20. Jahrhunderts
  http:/www.fecundswamp.net/~hatridge/stamps/index.html


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Graph Question..

2002-11-21 Thread Hugh Danaher
Jim,
on the calling page change
echo "\n";
to
echo "something here\n";

Now, when you click on the link, the error message should show instead of
the broken box.
Hugh

- Original Message -
From: "Jim Hatridge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 7:29 AM
Subject: Re: [PHP] Graph Question..


HI Andrew et al...
On Wednesday 20 November 2002 21:09, Andrew Brampton wrote:
> Try going direct to the image's URL, this might show any PHP errors. If
> that doesn't work, you can request the page via telnet and see if any
> errors are appearing
>
> Andrew

I hate to admit it but I don't understand what you mean. (Please note, I'm
new
with PHP.) All the software is on my personal system. I'm not doing this
over
the 'net.

There is three test files with this software. I picked it up at
http://www.phpclasses.org/  Using two files I get only the broken box.

But when I say http://opus.epost.de/~hatridge/graphs/test_pie.php (this is
the
third test file)  I get this

###
Warning: Cannot add header information - headers already sent by (output
  started at /home/hatridge/public_html/graphs/Piechart.php:159) in
/home/hatridge/public_html/graphs/Graph.php on line 40

Fatal error: Call to undefined function: imagegif() in
/home/hatridge/public_html/graphs/Graph.php on line 43
#

Any ideas?

Thanks

JIM


> - Original Message -
> From: "James Hatridge" <[EMAIL PROTECTED]>
> To: "PHP-GEN" <[EMAIL PROTECTED]>
> Sent: Wednesday, November 20, 2002 3:06 PM
> Subject: [PHP] Graph Question..
>
>
>
> Hi all,,
>
> I d/l'ed a class for graphs last night. When I got the class working
> instead of a line graph I got the netscape symbol for no picture, ie a
> broken box. I must have missed something. Could someone give me a clue
what
> I'm doing wrong?
>
> Thanks
>
> JIM

--
Vielfeind -- Viel Ehr'
Antiamerikanische Propaganda in der Philatelie des 20. Jahrhunderts
  http:/www.fecundswamp.net/~hatridge/stamps/index.html


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Graph Question..

2002-11-21 Thread Jim Hatridge
HI Andrew et al...
On Wednesday 20 November 2002 21:09, Andrew Brampton wrote:
> Try going direct to the image's URL, this might show any PHP errors. If
> that doesn't work, you can request the page via telnet and see if any
> errors are appearing
>
> Andrew

I hate to admit it but I don't understand what you mean. (Please note, I'm new 
with PHP.) All the software is on my personal system. I'm not doing this over 
the 'net. 

There is three test files with this software. I picked it up at  
http://www.phpclasses.org/  Using two files I get only the broken box.  

But when I say http://opus.epost.de/~hatridge/graphs/test_pie.php (this is the 
third test file)  I get this 

###
Warning: Cannot add header information - headers already sent by (output
started at /home/hatridge/public_html/graphs/Piechart.php:159) in
/home/hatridge/public_html/graphs/Graph.php on line 40

Fatal error: Call to undefined function: imagegif() in
/home/hatridge/public_html/graphs/Graph.php on line 43
#

Any ideas?

Thanks 

JIM


> - Original Message -
> From: "James Hatridge" <[EMAIL PROTECTED]>
> To: "PHP-GEN" <[EMAIL PROTECTED]>
> Sent: Wednesday, November 20, 2002 3:06 PM
> Subject: [PHP] Graph Question..
>
>
>
> Hi all,,
>
> I d/l'ed a class for graphs last night. When I got the class working
> instead of a line graph I got the netscape symbol for no picture, ie a
> broken box. I must have missed something. Could someone give me a clue what
> I'm doing wrong?
>
> Thanks
>
> JIM

-- 
Vielfeind -- Viel Ehr'
Antiamerikanische Propaganda in der Philatelie des 20. Jahrhunderts
  http:/www.fecundswamp.net/~hatridge/stamps/index.html


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Graph Question..

2002-11-20 Thread Van Andel, Robert
What I'm wondering is if you are calling the graphic's placing into the page
correctly.  I believe the class will probably work. 

I have a page that includes a graph that I generate using mySQL and PHP.
This is the code I use to actually display the graphic (not what generates
it).

ImageJPEG($pic,$graphname);

echo "\n";

Of course there is a significant amount of code that actually generates
$pic, but this is what I had to do to make the graphic appear.

Robbert van Andel 

-Original Message-
From: Jim Hatridge [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 12:03 PM
To: PHP-GEN
Subject: Re: [PHP] Graph Question..


On Wednesday 20 November 2002 20:37, Van Andel, Robert wrote:
> More information would be helpful.  Perhaps the code to the page that is
> causing you trouble (i.e. the one where you are using the class you
> downloaded yesterday).  Perhaps you are missing a key piece there.
>
> Robbert van Andel

HI Robbert et al..

Below is part of the code. I don't think I should send it all to the list, 
it's quite large. Looking at all this I think that I'm missing a lib for 
graphs. But I can't find anything on my SuSE 8.1 disks. What libs do I need 
for doing graphs?

Thanks

JIM


>
> -Original Message-
> From: James Hatridge [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 7:07 AM
> To: PHP-GEN
> Subject: [PHP] Graph Question..
>
>
>
> Hi all,,
>
> I d/l'ed a class for graphs last night. When I got the class working
> instead
>
> of a line graph I got the netscape symbol for no picture, ie a broken box.
> I
>
> must have missed something. Could someone give me a clue what I'm doing
> wrong?
>
> Thanks
>
> JIM

#

addArray($ar1, $white);
$line->addArray($ar2, $green);
$line->addArray($ar3, $red);
$line->printHTML();

?>


##
-- 
Vielfeind -- Viel Ehr'
Antiamerikanische Propaganda in der Philatelie des 20. Jahrhunderts
  http:/www.fecundswamp.net/~hatridge/stamps/index.html


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


 "The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers." 





Re: [PHP] Graph Question..

2002-11-20 Thread Andrew Brampton
Try going direct to the image's URL, this might show any PHP errors. If that
doesn't work, you can request the page via telnet and see if any errors are
appearing

Andrew
- Original Message -
From: "James Hatridge" <[EMAIL PROTECTED]>
To: "PHP-GEN" <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 3:06 PM
Subject: [PHP] Graph Question..



Hi all,,

I d/l'ed a class for graphs last night. When I got the class working instead
of a line graph I got the netscape symbol for no picture, ie a broken box. I
must have missed something. Could someone give me a clue what I'm doing
wrong?

Thanks

JIM
--
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Graph Question..

2002-11-20 Thread Jim Hatridge
On Wednesday 20 November 2002 20:37, Van Andel, Robert wrote:
> More information would be helpful.  Perhaps the code to the page that is
> causing you trouble (i.e. the one where you are using the class you
> downloaded yesterday).  Perhaps you are missing a key piece there.
>
> Robbert van Andel

HI Robbert et al..

Below is part of the code. I don't think I should send it all to the list, 
it's quite large. Looking at all this I think that I'm missing a lib for 
graphs. But I can't find anything on my SuSE 8.1 disks. What libs do I need 
for doing graphs?

Thanks

JIM


>
> -Original Message-
> From: James Hatridge [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 7:07 AM
> To: PHP-GEN
> Subject: [PHP] Graph Question..
>
>
>
> Hi all,,
>
> I d/l'ed a class for graphs last night. When I got the class working
> instead
>
> of a line graph I got the netscape symbol for no picture, ie a broken box.
> I
>
> must have missed something. Could someone give me a clue what I'm doing
> wrong?
>
> Thanks
>
> JIM

#

addArray($ar1, $white);
$line->addArray($ar2, $green);
$line->addArray($ar3, $red);
$line->printHTML();

?>


##
-- 
Vielfeind -- Viel Ehr'
Antiamerikanische Propaganda in der Philatelie des 20. Jahrhunderts
  http:/www.fecundswamp.net/~hatridge/stamps/index.html


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Graph Question..

2002-11-20 Thread Van Andel, Robert
More information would be helpful.  Perhaps the code to the page that is
causing you trouble (i.e. the one where you are using the class you
downloaded yesterday).  Perhaps you are missing a key piece there.  

Robbert van Andel 


-Original Message-
From: James Hatridge [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 7:07 AM
To: PHP-GEN
Subject: [PHP] Graph Question..



Hi all,,

I d/l'ed a class for graphs last night. When I got the class working instead

of a line graph I got the netscape symbol for no picture, ie a broken box. I

must have missed something. Could someone give me a clue what I'm doing 
wrong?

Thanks

JIM
-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


 "The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers." 





Re: [PHP] Graph Question..

2002-11-20 Thread Jonathan Sharp
Please post code.

-js


James Hatridge wrote:
> Hi all,,
> 
> I d/l'ed a class for graphs last night. When I got the class working instead 
> of a line graph I got the netscape symbol for no picture, ie a broken box. I 
> must have missed something. Could someone give me a clue what I'm doing 
> wrong?
> 
> Thanks
> 
> JIM




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Graph Question..

2002-11-20 Thread James Hatridge

Hi all,,

I d/l'ed a class for graphs last night. When I got the class working instead 
of a line graph I got the netscape symbol for no picture, ie a broken box. I 
must have missed something. Could someone give me a clue what I'm doing 
wrong?

Thanks

JIM
-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php