Page 1 of 1

PHP extensions

PostPosted: 03. February 2011 03:46
by mpollymark
Hey gays,
I've installed XAMPP on Suse 11.2. How do I check if XAMPP installed/enabled certain PHP extensions?
How do I add extensions on XAMPP?

Thanks

Re: PHP extensions

PostPosted: 08. February 2011 15:29
by ZumJ
Hey,

You want to edit this section in your php.ini file:
Code: Select all
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
;


That will allow you to load an extension. After doing that, if I'm not mistaken, it will show in the output of phpinfo(). Make a file in your webroot, and call it from a browser:
<?php
phpinfo();
?>


You should get a long page containing all sorts of Apache and PHP config information.

Hope that helps,
Straights