views:

512

answers:

2

I'm using XAMPP (latest version) on OS 10.6.2, that's bundled with PHP 5.3.0

I installed the XAMPP development package for the PHP source/header files and ran the following command from Terminal-

sudo ./pecl install uploadprogress

Everything appeared to work fine. My php.ini file (yup - I checked it's the same one being loaded in phpinfo()) has the extension=uploadprogress.so in there fine, and I restarted apache via:

sudo ./apachectl restart

... under my xamppfiles/bin directory.

The issue is, the uploadprogress extension is not shown on phpinfo().

I can't think what I'm missing. I didn't get an Apache/PHP restart errors stating the extension couldn't be loaded, or is incompatible or anything.

Am I missing something obvious? Thanks in advance.

A: 

As far as I know, you need APC enabled in order for this to work.

Try enabling the extension in your php.ini and see if that fixes it!

Alex
Thanks Alex- I actually had to compile APC from source before enabling it, using the same compile flags I've updated in the solution above, since I was using Snow Leopard and 64-bit installation. Took me a lot of searching to discover that- tried compiling using `pecl` too, and that didn't work. Anyone who needs APC first (I had them both installed by the time I got this working, so I couldn't tell if APC was definitely needed or not), compile using the instructions above but replace uploadprogress with the APC package. Do a google search to find it on PECL.
Lee
Good to know :)
Alex
A: 
Lee