Why won't PHP recognise this extension!
February 25, 2007 11:40 AM   Subscribe

PHP Filter: Why won't PHP recognise the SSL2 extension.

I installed the SSL2 extension (php_ssh2.dll) on my php installation (Apache/2.0.59 (Win32) PHP/5.2.1) by setting the ext_dir path in php.ini and putting the php_ssh2.dll file in the ext directory. IT WORKED! It showed up in phpinfo() and I started writing a script.

BUT!

My computer crashed and now it doesn't work!!!??? Nothing has changed. I've spent hours trying to get it to work. From the command line (php.exe -m) shows the extension but phpinfo() doesn't - and the scripts I have written now complain of undefined functions relating to the SSL2 extension.

What is going on!? How can I get php to recognise this damn extension!

TIA
posted by xoe26 to Computers & Internet (3 answers total)
 
Is extension=php_ssh2.dll present (and not commented out) in your php.ini? And remember to check which php.ini PHP is actually using (you can easily end up with one in the Windows directory, one in the PHP home directory etc) — you can check which PHP.ini is in use in phpinfo(). And restarting Apache and hoping for the best never hurt anyone.
posted by matthewr at 11:49 AM on February 25, 2007


Also, do you have multiple versions of PHP, and/or multiple Apache servers running?
posted by matthewr at 11:54 AM on February 25, 2007


It's normal for the CGI version, the command-line version, and the Apache(2) module instances of PHP to each have a different php.ini - there are in fact uses for that ability, not that this is especially relevant to you right now.

You're almost 200% definitely looking at the wrong copy of php.ini. Search the drive for others - if you're lucky, the folders they turn up in will illuminate with context.
posted by genghis at 2:43 PM on February 25, 2007


« Older Warning, this is a bad site!   |   Why is my flight delayed? Newer »
This thread is closed to new comments.