List Info

Thread: Getting PHP to Recognize YAZ




Getting PHP to Recognize YAZ
user name
2006-12-19 21:25:47
Adam and Mark,

I've edited the php.ini which is referenced in phpinfo.php,
but I'm wondering
whether I'm referencing the extension directory correctly.

Is this line correct the way I have written it?  
extension_dir= "/usr/lib/php5/20051025/"

During the apache startup process, is a PHP error log
created that I can look
at to see if the extensions were accepted?

Thanks.

Larry

Lawrence Currie
Academy Librarian
California Academy of Sciences
875 Howard St.
San Francisco, CA 94103
(415) 321-8038
fax (415) 321-8633
 

-----Original Message-----
From: yazlist-bounceslists.indexdata.dk
[mailto:yazlist-bounceslists.indexdata.dk] On Behalf Of Adam
Dickmeiss
Sent: Tuesday, December 19, 2006 11:46 AM
To: Discussion on the YAZ Z39.50 toolkit
Subject: Re: [Yazlist] Getting PHP to Recognize YAZ

Mark Jordan wrote:
> Hi Larry,
> 
> Yes, yaz should be listed in the phpinfo output. One
problem I've had is 
> that I've edited the wrong php.ini file. Change to root
on your box and do
> 
>   find / -name php.ini
> 
> to see if multiple php.ini's exist.

The exact php.ini that PHP uses under Apache is also listed
in phpinfo 
output.

/ Adam

> 
> Mark
> 
> Currie, Larry wrote:
>> Now I'm trying to get PHP5.1.6 to recognize YAZ. 
My php.ini file has 
>> the two lines extension=mysql.so and
extension=yaz.so and the 
>> extension directory has been specified with the
line "extension_dir= 
>> "/usr/lib/php5/20051025/".  The two files
mysql.so and yaz.so are in 
>> this directory.  I have restarted the apache
server.  When I look at 
>> phpinfo.php, should YAZ be listed in the section
Additional Modules?  
>> When I load my php page that uses yaz_connect(), I
am still getting 
>> the fatal error "Call to undefined function
yaz_connect() in ... 
>> search.php on line ...
>>
>>  
>>
>> My installation of yaz seemed to go smoothly; here
are the results of 
>> the install command:
>>
>> Build process completed successfully
>>
>> Installing 
>>
'/var/tmp/pear-build-root/install-yaz-1.0.7//usr/lib/php5/20
051025/yaz.so'

>>
>>
>> Install ok: channel://pear.php.net/yaz-1.0.7
>>
>>  
>>
>> What can you recommend at this point?
>>
>>  
>>
>> Thanks.
>>
>>  
>>
>> Larry
>>
>>  
>>
>> *Lawrence** Currie*
>>
>> Academy Librarian
>>
>> California Academy of Sciences
>>
>> 875 Howard St.
>>
>> San Francisco, CA 94103
>>
>> (415) 321-8038
>>
>> fax (415) 321-8633
>>
>>  
>>
>>
>>
------------------------------------------------------------
------------
>>
>> _______________________________________________
>> Yazlist mailing list
>> Yazlistlists.indexdata.dk
>> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
> 


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list

_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
Getting PHP to Recognize YAZ
user name
2006-12-20 02:12:27
Currie, Larry wrote:
> Adam and Mark,
> 
> I've edited the php.ini which is referenced in
phpinfo.php, but I'm wondering
> whether I'm referencing the extension directory
correctly.
> 
> Is this line correct the way I have written it?  
> extension_dir= "/usr/lib/php5/20051025/"

No quotation marks

> 
> During the apache startup process, is a PHP error log
created that I can look
> at to see if the extensions were accepted?
> 

Not that I know of. However, you can use the PHP function 
extension_loaded() to test whether yaz has been loaded.

Mark

_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )