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

Message ListMessage List     Post MessagePost Message

  Error Loading ChartDirector for PHP Extension
Posted by hoangchung on Sep-06-2013 17:37
Attachments:
I have read all the post and following but my php still not working, please help me. I send
you the php.ini as attached file

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 CHUNGHUUHOANG 6.1 build 7601 (Windows 7 Ultimate
Edition Service Pack 1) i586
    PHP version : 5.4.7
    PHP / Web Server interface : apache2handler
    PHP configuration file location : "C:\\xampp\\php\\php.ini"
    PHP extension directory : "C:\\xampp\\php\\ext"
php.ini
php.ini

77.07 Kb

  Re: Error Loading ChartDirector for PHP Extension
Posted by Peter Kwan on Sep-06-2013 23:58
Hi hoangchung,

(1) First, please determine which operating system edition of PHP you are using. Note that if you are using 64-bit Windows, you may still be using 32-bit PHP, or you may be using 64-bit PHP. It is because 64-bit Windows can run both 32-bit and 64-bit applications. The site where you download your PHP should indicate what type of PHP it is. From experinece, unless the Apache/PHP specifically mentions that it is 64-bit, it is likely to be 32-bit.

(2) Please download the ChartDirector for PHP which matches your PHP operating system edition. If you are using 32-bit PHP for Windows, please download ChartDirector for PHP for Windows 32-bit.

(3) Unzip the distirbution and copy all files from "ChartDirector\\lib" to your PHP extension directory. From the error message, your PHP extension directory should be at "C:\\xampp\\php\\ext". After copying, you should see the files "C:\\xampp\\php\\ext\\phpchartdir540.dll", "C:\\xampp\\php\\ext\\phpchartdir540nts.dll", "C:\\xampp\\php\\ext\\chartdir.dll" and some other ChartDirector files.

(4) Please determine whether you are using thread-safe or non-thread-safe PHP. You may use phpinfo to check. Non-thread-saft PHP is traditionally considered to be more reliable, but many open source distribution uses thread-safe PHP for performance reasons. If you are using thread-safe PHP, please add the following line to your "C:\\xampp\\php\\php.ini":

extension=phpchartdir540.dll

If you are using nno-thread-safe PHP, please add the following line to your "C:\\xampp\\php\\php.ini"

extension=phpchartdir540nts.dll

Please make sure you are editing "C:\\xampp\\php\\php.ini" and not another "php.ini". (There can be multiple "php.ini" in your system.)

(5) Please restart Apache. In many systems, the "php.ini" is only read during system start up.


If the above still cannot solve the problem, please examine your Apache error log file to see what is the error. Please provide me with the following information:

- the result of your phpinfo

- the directory list of your PHP extension directory:

     cd c:\\xampp\\php\\ext
     dir

- the error message in the Apache error log file


Regards
Peter Kwan