ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  chardirector_php
Posted by prince on Jun-06-2012 21:48
how to resolve this problem:

Error Loading ChartDirector for PHP Extension

It appears this PHP system has not loaded the ChartDirector extension by using an
extension statement in the PHP configuration file (typically called "php.ini"). An attempt
has been made to dynamically load ChartDirector on the fly, but it was not successful.
Please refer to the Installation section of the ChartDirector for PHP documentation on how
to resolve this problem.

Error Log

The version and type of PHP in this system does not support dynmaic loading of PHP
extensions. All PHP extensions must be loaded by using extension statements in the PHP
configuration file.

System Information

    Operating System : Windows NT HP-PC 6.1 build 7601 (Windows 7 Ultimate Edition
Service Pack 1) i586
    PHP version : 5.3.8
    PHP / Web Server interface : apache2handler
    PHP configuration file location : "C:\\wamp\\bin\\apache\\Apache2.2.21\\bin\\php.ini"
    PHP extension directory : "C:\\php"

thanks for help

  Re: chardirector_php
Posted by Peter Kwan on Jun-07-2012 00:10
Hi prince,

Have you installed ChartDirector according to the Installation section of the ChartDirector documentation?

In brief, for your system type, it is by:

(a) Copy all files from "ChartDirector/lib" to your PHP extension directory (which is "C:\\php" as according to your error message).

(b) Modify your "php.ini" (which is at "C:\\wamp\\bin\\apache\\Apache2.2.21\\bin\\php.ini") to include the line:

extension=phpchartdir530.dll

(c) Restart your web server (restart Apache).

Hope this can help.

Regards
Peter Kwan

  Re: chardirector_php
Posted by prince on Jun-07-2012 00:40
thanks for help Peter Kwan

but i don't find  "c:/php"
i think that the extension is "C:\\wamp\\bin\\php\\php5.3.8\\ext" i'm not sure

if you now how can i find  this directory

  Re: chardirector_php
Posted by prince on Jun-07-2012 00:41
thanks for help Peter Kwan

but i don't find  "c:/php"
i think that the extension is "C:\\wamp\\bin\\php\\php5.3.8\\ext" i'm not sure

if you now how can i find  this directory

  Re: chardirector_php
Posted by prince on Jun-07-2012 09:15
now the installation was done succisfly but how can i change the sheetStyle
to print charts with apropriate form

thanks for help

  Re: chardirector_php
Posted by Peter Kwan on Jun-07-2012 23:40
Hi prince,

ChartDirector charts are just normal images, the same as any static images on your web page. So you can print them using the same method. On most browsers, you can print them by pressing the "print" button on the browser. If you like, you can create a CSS style sheet (with media='print') that applies only when the web page is printed.

Hope this can help.

Regards
Peter Kwan

  Re: chardirector_php
Posted by prince on Jun-08-2012 22:21
hay

how can i save the chart as a frame in directory without  print it??

thanks for help

  Re: chardirector_php
Posted by Peter Kwan on Jun-09-2012 00:35
Hi prince,

You mentioned about "save the chart as a frame in directory". Do you mean "save the chart as a file in directory"?

ChartDirector charts are normal images. You can save them just like saving any other images. If a user would like to save an image on the browser, he can "right click" on the image, and choose "Save Picture As". On some browsers, you may also drag and drop the image on the desktop.

Regards
Peter Kwan

  Re: chardirector_php
Posted by Fidi on Dec-23-2012 19:38
I got same problem when I migrate our web server to SUSE 11.
I already updated php.ini add "extension=phpchartdir520.dll" and restart apache.

Error Loading ChartDirector for PHP Extension

It appears this PHP system has not loaded the ChartDirector extension by using an extension statement in the PHP configuration file (typically called "php.ini"). An attempt has been made to dynamically load ChartDirector on the fly, but it was not successful. Please refer to the Installation section of the ChartDirector for PHP documentation on how to resolve this problem.

Error Log


Trying to load "phpchartdir520.dll" from the PHP extension directory "/usr/lib64/php5/extensions".

dl(): Unable to load dynamic library '/usr/lib64/php5/extensions/phpchartdir520.dll' - /usr/lib64/php5/extensions/phpchartdir520.dll: wrong ELF class: ELFCLASS32


System Information

    Operating System : Linux mctwop01 3.0.13-0.27-default #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b) x86_64
    PHP version : 5.2.14
    PHP / Web Server interface : apache2handler
    PHP configuration file location : "/etc/php5/apache2/php.ini"
    PHP extension directory : "/usr/lib64/php5/extensions"

  Re: chardirector_php
Posted by Fidi on Dec-24-2012 12:21
Sorry, I'm wrong to download correct version.
Now it's working after applied with ChartDirector for PHP for Linux (x86_64)

Thanks for this forum, I can search and solve my problem.