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

Message ListMessage List     Post MessagePost Message

  PHP function problem
Posted by mathieu on Apr-30-2010 20:57
Hi,

We are trying to use the Chartdirector library on an Apache server but since the new version of PHP, we have a problem :

    In the file phpchartdir.php , the fonction dl() don't exist. It was cancelled in the new version of PHP. So, that'why, we can't use Chartdir with this new version 5.3.0.

   How can we do ? and what is your solution?

Thank's !

  Re: PHP function problem
Posted by Peter Kwan on May-01-2010 00:38
Hi mathieu,

PHP 5.3 does not support dynamic loadingn of extensions. The only method to install any PHP extension is to modify the "php.ini". This is described in the Installation section of the ChartDirector documentation. In brief, the steps are:

(a) Copy *everything* in "ChartDirector\\lib" to the PHP extension directory.

(b) Add the following line in "php.ini":

extension=phpchartdir530.dll

(c) Restart Apache (required only if your are using Server API PHP; not required for CGI PHP).

Hope this can help.

Regards
Peter Kwan

  Re: PHP function problem
Posted by mathieu on May-03-2010 14:37
Hi Peter,

I have made all your 3 steps.

But I have created a chartdir.ini in the php.d directory instead of writing the "extension" line in the php.ini.

And now, our Chartdirector works normally.

Thank's a lot Peter

Best regards