I have php (5.2.4) compiled on redhat 4.0 as followed : - ./configure \
-
--with-oci8=$ORACLE_HOME
-
--with-apxs=/usr/local/apache/bin/apxs \
-
--with-config-file-path=/usr/local/apache/conf \
-
--enable-sigchild \
-
--with-gd \
-
--with-ttf=/usr/include/freetype2 \
-
--with-freetype-dir=/usr/include/freetype2 \
-
--with-gd-native-ttf \
-
--enable-shared
-
the make & make install runs without errors
But when using the jpgraph, I get an error png image that there is no TTF-support and says to compile php with FreeType support.
What I doing wrong?
testjpgraph.php -
<?php
-
include ("/install_apache_standalone/jpgraph-1.21b/src/jpgraph.php");
-
include ("/install_apache_standalone/jpgraph-1.21b/src/jpgraph_bar.php");
-
-
$db_conn = ocilogon("****","****","***");
-
$cmdstr = "select * from test";
-
$parsed = ociparse($db_conn,$cmdstr);
-
ociexecute($parsed);
-
$nrows = ocifetchstatement($parsed, $results);
-
for ($i = 0; $i < $nrows; $i++)
-
{
-
$data[] = $results["MARKS"][$i];
-
$leg[] = $results["NAME"][$i];
-
}
-
-
$graph = new Graph(250,150,"auto");
-
$graph->SetScale("textint");
-
$graph->img->SetMargin(50,30,50,50);
-
//$graph->AdjBackgroundImage(0.4,0.7,-1); //setting BG type
-
//$graph->SetBackgroundImage("linux_pez.png",BGIMG_FILLFRAME); //adding image
-
$graph->SetShadow();
-
-
$graph->xaxis->SetTickLabels($leg);
-
-
$bplot = new BarPlot($data);
-
$bplot->SetFillColor("lightgreen"); // Fill color
-
$bplot->value->Show();
-
$bplot->value->SetFont(FF_ARIAL,FS_BOLD);
-
$bplot->value->SetAngle(45);
-
$bplot->value->SetColor("black","navy");
-
-
$graph->Add($bplot);
-
$graph->Stroke();
-
?>
-
-
2 3957 Atli 5,058
Recognized Expert Expert
Hi.
I would assume there is a problem with the FreeType TTF support on your system, although I would have thought the compiler would have picked up on that.
Have you checked if the FreeType thing is working properly?
Or if this is a bug in the PHP code itself?
Hi,
Yes it is a bug in php I have downloaded 5.2.5 rc2 of php, and then it works.
thanks for the reply.
Regards
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: awaegel |
last post by:
Hello,
I've been running php/apache/etc locally on my powerbook for a long
time, but am having problems activating freetype with a new version of
php.
I'm using:
php 4.4.0
freetype 2.1.10 (compiled from source)
gd 2.0.28 (came with php)
|
by: francescomoi |
last post by:
Hi.
I compiled PHP by using:
--------------
'./configure' '--prefix=/usr/local/php'
'--with-apxs2=/usr/local/httpd/bin/apxs'
'--with-mysql=/usr/local/mysql'
'--with-curl=/usr/local/include/curl' '--with-gd=/usr/local/gd'
'--with-zlib-dir=/usr/local/zlib' '-with-jpeg-dir=/usr/local/jpeg-6b'
'--with-ttf=/usr/include/freetype2'
|
by: mchristopher |
last post by:
I'm having trouble compiling DOM XML support into PHP 4.4.2 on CentOS
4.3. Everytime I attempt to compile, it spits back this:
....
chmod 755 /usr/lib/apache/libphp4.so
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PEAR environment: /usr/local/lib/php/
Archive_Tar - already installed: 1.3.1
|
by: Glich |
last post by:
Hi, where can I download freetype (>= 2.1.7)? I need it to use
matplotlib. I have search a lot but still can not find it. Thanks!
|
by: Lorenzo Thurman |
last post by:
I keep getting this error when trying to use fonts with Image_Graph:
PHP Fatal error: Call to undefined function:
imagettfbbox() in /usr/local/lib/php/Image/Canvas/GD.php on line 1240
After Googling the error, it seems that I was missing Freetype support.
I've installed Freetype and rebuilt PHP with Freetype support, but I
still get the same error. I look at the output from phpinfo() and I see
that PHP was compiled with this switch:...
| |
by: rahmawaktu |
last post by:
Dear list, i am new to this forum and to JPGraph too. I just install jpgraph to create a graphic to my website. But i got error.
Here is the complete code :
First is MySQL Database : ( 2 tables) :
1. Table : Hesk_Categories
CREATE TABLE `hesk_categories` (
`id` int(5) unsigned NOT NULL auto_increment,
|
by: luckyG |
last post by:
I have php (5.2.4) compiled on redhat 4.0 as followed :
./configure \
--with-oci8=$ORACLE_HOME
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--enable-sigchild \
--with-gd \
--with-ttf=/usr/include/freetype2 \
--with-freetype-dir=/usr/include/freetype2 \
--with-gd-native-ttf \
|
by: paeh |
last post by:
what's wrong for this php code. when I run did not display anything in browser..
this is code:
<?php
include ("C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/jpgraph-2.3/src/jpgraph.php");
include ("C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/jpgraph-2.3/src/jpgraph_bar.php");
$db = mysql_connect("localhost", "root","") or die(mysql_error());
|
by: AARTHISUBBU |
last post by:
i m quiet new to wamp... is it possible to run jpgraph codes in wamp... else i have to install jpgraph separately and to run?..
if i can run jpgraph codes in wamp,what i have to do? i m using wamp5.....
thanku.....
|
by: eureka2050 |
last post by:
Hi all,
I am creating a radar chart containing 2 plots using jpgraph. My code is as follows:-
include ("./jpgraph/src/jpgraph.php");
include ("./jpgraph/src/jpgraph_radar.php");
// Create the basic radar graph
$graph = new RadarGraph(700,500,"auto");
|
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...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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.
| |