Page 1 of 1

Graphicals libraries not loaded.

Posted: Thu May 18, 2006 1:43 pm
by cheikhbouchihda
Hello,
The graphical libraries had been well installed, with Debian Linux, in the directory /usr/share/doc.
In the file, php.ini, I have decommented the ligne: extension=gd2.so, and added the path for the directory extension:
extension_dir=/usr/share/doc.
However, after the reboot of the pc(and apache), I look to the phpinfo and notice that the "table" gd does not exist!
I tryed to do an essay, by executing the following php file(let's call it gd.php):

Code: Select all

//gd.php 
 <?php 
    print "<pre>"; 
    print_r (gd_info()); 
    print "</pre>"; 
    ?>



Here is the result of the execution of gd.php:

Code: Select all

lynx http://localhost/gd.php
Fatal error: Call to undefined function: gd_info() in /var/www/gd.php on line
3



That mean: the graphical libraries that I have installed, are not loaded.
Ma question is: what must I do in order that the gd will be activated?
Thanks in advence for the help.

Posted: Thu May 18, 2006 1:49 pm
by pickle
Try typing:

Code: Select all

dl('gd.so');
at the top of the file. dl() tries to load the extension its passed.

Not too sure how to get gd loaded at at start up - seems like you've got everything in order.