Re: Warning: dl(): Unable to load dynamic library

From: Date: Wed, 20 Aug 2003 11:47:31 +0000
Subject: Re: Warning: dl(): Unable to load dynamic library
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160156@lists.php.net to get a copy of this message
In article <005b01c36643$53968040$2f08c8c0@rajeshg>, ashish.borkar@opussoft.com says... > Hello , > I have installed apache and php on AIX. > I compiled my extension module and put it in the > usr/local/lib/php/extensions/no-debug-non-zts-20020429 directory. > In my PHP script i have the code dl('php_API.a');When the script is executed > i get the following message on the web browser. > > Warning: dl(): Unable to load dynamic library > '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_API.a' - No > such file or directory in /usr/local/apache/htdocs/writeread.php on line 9 > > Fatal error: Call to undefined function: read() in > /usr/local/apache/htdocs/read.php on line 17 > What can be the reason??? > Thanks > Ashish Make sure that you have the extensions in the directory set in your php.ini - look for this ; Directory in which the loadable extensions (modules) reside. extension_dir = ./ If you have no php.ini, run a script containing phpinfo() and see what the default location for loadable extensions is. Cheers -- Quod subigo farinam $email =~ s/oz$/au/o; A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet?

« previous php.general (#160156) next »