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

Message ListMessage List     Post MessagePost Message

  error loading chartdiretor for php extension
Posted by clg on Jan-03-2012 10:59
HI,
My server show error "trying to load phpchartdir520.dll from php extension directory
/usr/lib/php4....

1.phpversion is 5.3.2
2.enable_dl=On,safr_mode=Off
3.extension_dir=/usr/lib/php4
4.web server is apache 2.0
5.I have already copied all files included fonts directory to /usr/lib/php4 but it dose not work

  Re: error loading chartdiretor for php extension
Posted by Peter Kwan on Jan-04-2012 01:27
Hi clg,

If you are using PHP 5.3.x, ChartDirector should automatically choose phpchartdir530.dll, not phpchartdir520.dll, unless you are using an old version of ChartDirector that was released before PHP 5.3 exists.

Also, PHP 5.3.x does not support dynamic loading of extension at all (so the enable_dl is ignored by PHP, as "dl" is not even supported). The only method to install extension in PHP 5.3.x is to use extension statements in "php.ini". If your PHP web server interface is SAPI (instead of CGI), you would need to restart the Apache after you modify "php.ini" (because PHP SAPI will not read the "php.ini" until the web server is restarted).

So for your case, please check the followings:

(a) It is suggested you use the latest version of ChartDirector for PHP from our web site. There should be a file "phpchartdir530.dll" and "libchartdir.so" and the fonts subdirectory in your PHP extension directory. If you are using Linux, make sure you use the Linux (i386) edition if you are using 32-bit PHP, and the Linux (x86_64) edition if you are using 64-bit PHP. You may use phpinfo to determine if your OS is Linux (i386/i686) or Linux (x86_64).

(b) If you are upgrading from an older version of ChartDirector, please make sure you have upgraded the "phpchartdir.php" as well. Many developers copy the "phpchartdir.php" to their own script directories, so there may be multiple copies of "phpchartdir.php" scattered around on the computer. Please make sure you have upgraded all of them to the latest version (to the one found in "ChartDirector/lib").

(c) Please double check if you are in fact using PHP 5.3.2 using phpinfo, and that the extension directory is in fact "/usr/lib/php4". Please also note where is the active "php.ini".

(d) Please add the following line in your active "php.ini":

extension=phpchartdir530.dll

(e) Restart Apache

If the above still cannot solve the problem, would you mind to examine the Apache error log and inform me of the exact error message? Also, please inform me the result of "phpinfo".

Regards
Peter Kwan