Re: [PHP] Help with JPGraph in PHP.

2002-02-01 Thread Jose Daniel Ramos Wey

Unfortunatly header(Content-type: image/png) won´t help in IIS when PHP is running 
as CGI. You would have to be using PHP as an apache module or something similar. IIS 
won´t let CGIs change the headers. 

The solution is change your webserver, try to run PHP as an ISAPI module or save the 
image as a PNG, then display it.

Regards,
Daniel Wey

---   ---
- José Daniel Ramos Wey -
- Diretor de Tecnologia -
- ONE 2 ONE Interativa  -
- email: [EMAIL PROTECTED] -
- Tel: (11) 3814-9249   -
- Fax: (11) 3819-5263   -
---   ---
- Original Message - 
From: Matthew Walker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 6:24 PM
Subject: RE: [PHP] Help with JPGraph in PHP.


You need to send the headers to tell the browser what kind of data
you're sending. Try something like this:

header(Content-type: image/png);

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 31, 2002 7:57 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Help with JPGraph in PHP.

Also I am using GD2.0.
Does any one know where I can get GD older version ( like GD1.6)?


-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 9:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Help with JPGraph in PHP.


Hi All,

Is any one is using JpGraphs to display graphs with PHP.
If so could you please help me?.

Here is what I have done.

1. Enabled extension php_gd.dll
2. Included jpgraph.php and jpgraph_line.php files.
3. Try to run the following code

$ydata = array ( 11,3,8,12,5,1,9,13,5,7);

$graph= new Graph(300,200);
$graph-setscale(textlin);

$lineplot = new LinePlot($ydata);

$graph-Add($lineplot);
$graph-Stroke();

I am not getting the graph abut I am getting some junk characters like

‰PNG  IHDR,È/

Am I missing anything here?. Do I need to set anything in php.ini file
?. Do
I need to set anything in jpgraph.php?

I am using PHP 4.06 On IIS, WinNT.

Thank you in advance!
Sridhar Moparthy






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





RE: [PHP] Help with JPGraph in PHP.

2002-01-31 Thread Sridhar Moparthy

Also I am using GD2.0.
Does any one know where I can get GD older version ( like GD1.6)?


-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 9:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Help with JPGraph in PHP.


Hi All,

Is any one is using JpGraphs to display graphs with PHP.
If so could you please help me?.

Here is what I have done.

1. Enabled extension php_gd.dll
2. Included jpgraph.php and jpgraph_line.php files.
3. Try to run the following code

$ydata = array ( 11,3,8,12,5,1,9,13,5,7);

$graph= new Graph(300,200);
$graph-setscale(textlin);

$lineplot = new LinePlot($ydata);

$graph-Add($lineplot);
$graph-Stroke();

I am not getting the graph abut I am getting some junk characters like

‰PNG  IHDR,È/

Am I missing anything here?. Do I need to set anything in php.ini file ?. Do
I need to set anything in jpgraph.php?

I am using PHP 4.06 On IIS, WinNT.

Thank you in advance!
Sridhar Moparthy






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Help with JPGraph in PHP.

2002-01-31 Thread Matthew Walker

You need to send the headers to tell the browser what kind of data
you're sending. Try something like this:

header(Content-type: image/png);

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 31, 2002 7:57 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Help with JPGraph in PHP.

Also I am using GD2.0.
Does any one know where I can get GD older version ( like GD1.6)?


-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 9:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Help with JPGraph in PHP.


Hi All,

Is any one is using JpGraphs to display graphs with PHP.
If so could you please help me?.

Here is what I have done.

1. Enabled extension php_gd.dll
2. Included jpgraph.php and jpgraph_line.php files.
3. Try to run the following code

$ydata = array ( 11,3,8,12,5,1,9,13,5,7);

$graph= new Graph(300,200);
$graph-setscale(textlin);

$lineplot = new LinePlot($ydata);

$graph-Add($lineplot);
$graph-Stroke();

I am not getting the graph abut I am getting some junk characters like

‰PNG  IHDR,È/

Am I missing anything here?. Do I need to set anything in php.ini file
?. Do
I need to set anything in jpgraph.php?

I am using PHP 4.06 On IIS, WinNT.

Thank you in advance!
Sridhar Moparthy






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]