LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-05-2004, 12:53 AM   #1
lynger
Member
 
Registered: Nov 2003
Posts: 36

Rep: Reputation: 15
jpgraph


hi forum..

hello everyone, i have installed gd-1.8 and jpgraph-1.10 but it seems i cant get it working.. pls. help

i got this code to study the basics.. i placed it on jp.php:

<?php

include 'jpgraph.php';
include 'jpgrap_line.php';

$dataArray = array(12,7,23,1,9);

$graph = new Graph(300,200);
$graph->SetScale('textlin');

$lineplot = new LinePlot($dataArray);
$graph->Add($lineplot);

$graph->Stroke();
?>

and call it by <img src="jp.php" border="1">

pls. help
 
Old 02-05-2004, 05:46 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
Check the paths to jpgraph first off. Did you add the entry for jpgraph to the php conf file? Give us a little more info on your server and we can likely figure this one out. I did a jpgraph install less than a week ago so it is still fresh in my RAM.
 
Old 02-05-2004, 06:38 PM   #3
lynger
Member
 
Registered: Nov 2003
Posts: 36

Original Poster
Rep: Reputation: 15
elo

hi my friend

i edited the code specifying the directory of my jpgraph files to:

<?php

include ("/usr/lib/phplot/jpgraph.php");
include ("/usr/lib/phplot/jpgrap_line.php");

$dataArray = array(12,7,23,1,9);

$graph = new Graph(300,200);
$graph->SetScale('textlin');

$lineplot = new LinePlot($dataArray);
$graph->Add($lineplot);

$graph->Stroke();
?>

but still same problem.. the graph still dosen't show up ( only a small red x mark)..

what line will i add to my php.ini? anyway here's my php.ini file..


[PHP]

; Language Options
engine = On
short_open_tag = On
asp_tags = Off
precision = 14
y2k_compliance = Off
output_buffering = 4096
;output_handler =
unserialize_callback_func =
zlib.output_compression = Off
;zlib.output_handler =
implicit_flush = Off
unserialize_callback_func =
allow_call_time_pass_reference = Off


; Safe Mode
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
;open_basedir =
disable_functions =


; Font Colors
highlight.string = #DD0000
highlight.comment = #FF9900
highlight.keyword = #007700
highlight.bg = #FFFFFF
highlight.default = #0000BB
highlight.html = #000000


; Misc
expose_php = Off


; Resource Limits
max_execution_time = 30
max_input_time = 60
memory_limit = 8M

; Error handling and logging
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = On
error_log = syslog


; Data Handling
;arg_separator.output = "&amp;"
;arg_separator.input = ";&"
variables_order = "GPCS"
register_globals = On
register_argc_argv = On
post_max_size = 8M


; Magic Quotes
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
;default_charset = "iso-8859-1"
;always_populate_raw_post_data = On
;allow_webdav_methods = On




;include_path = ".:/php/includes"
doc_root =
user_dir =
extension_dir = /usr/lib/php4
enable_dl = Off
; cgi.force_redirect = On
; cgi.redirect_status_env =
;cgi.rfc2616_headers = 0


; File Uploads
file_uploads = On
;upload_tmp_dir =
upload_max_filesize = 2M


; Fopen wrappers
allow_url_fopen = Off
default_socket_timeout = 60
;from = "anonymous@domain.com"


; Dynamic Extensions
;extension = imap.so
;extension = ldap.so
extension = mysql.so
;extension = pgsql.so


; PHP Accelerator extension
;zend_extension="/usr/lib/php4/php_accelerator_1.3.3r2.so"
;phpa.enable_php_memory_bug_workaround = 1
;phpa.shm_perms = 600
;phpa.shm_user = www
;phpa.shm_group = www
;phpa.shm_max_processes = 1024

define_syslog_variables = Off
sendmail_path = /usr/sbin/sendmail -t -i


[SQL]
sql.safe_mode = Off


[ODBC]
odbc.allow_persistent = Off
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1


[MySQL]
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket = /var/lib/mysql/mysql.sock
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = -1
mysql.trace_mode = Off


[PostgresSQL]
pgsql.allow_persistent = Off
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0


[bcmath]
bcmath.scale = 0


[browscap]
;browscap = extra/browscap.ini


[Session]
session.save_handler = mm
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_dividend = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"


[Assertion]
;assert.active = On
;assert.warning = On
;assert.bail = Off
;assert.callback = 0
;assert.quiet_eval = 0


[Sockets]
sockets.use_system_read = On

phpinfo() displays support for png, gd..

.... pls . help thank you very much for your time

Last edited by lynger; 02-06-2004 at 12:02 AM.
 
Old 02-07-2004, 07:16 AM   #4
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
Hello guys,

I have been googling for a jpgraph rpm for the RH9 server I have at work, but with no luck. Any idea where can I find one ?

Last edited by jalal; 02-07-2004 at 07:55 AM.
 
Old 02-08-2004, 06:55 PM   #5
lynger
Member
 
Registered: Nov 2003
Posts: 36

Original Poster
Rep: Reputation: 15
rpm

jpgraph rpm.. i think its included in your redhat 9 installer.. either disc 1 or disk 2..

goodluck,


you could also try rpm find.com
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ACID+JPGRAPH problem .heeelp zahra79 Linux - Security 3 06-14-2005 05:07 AM
jpgraph lynger Linux - Software 0 02-11-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration