Useful feature for dummies like me...

0 views
Skip to first unread message

itibook

unread,
Nov 4, 2008, 8:49:34 AM11/4/08
to Clipperz

Hi guys,

I ran into the bcmath-not-installed problem... luckily I have two
hosts so I could install clipperz on the one that had the bcmath (yes
I am a dummy and a lazy cow :-)

It would be good to use the "extension_loaded" in the install file to
verify the presence of all needed extensions before hitting the
"install" button...

http://nl3.php.net/extension_loaded

hope it helps

ciao

Luca

Giulio Cesare Solaroli

unread,
Nov 5, 2008, 3:59:51 AM11/5/08
to luca.f...@gmail.com, Clipperz
Hello Luca,

thanks for the suggestion, but we are definitely not PHP experts. Any
contribution on how to improve the community edition code is very
welcome! :-)

Regards,

Giulio Cesare

itibook

unread,
Nov 5, 2008, 4:19:29 AM11/5/08
to Clipperz

Hi Giulio,

well I consider myself more of a dummy :-)

anyway, try to add the below to the code... haven't tested it though,
but should work...

ciao

Luca

//Check extensions
$errors=0;

if(!extension_loaded('bcmath')){
echo '<b>BCmath extension seems to be missing please check your
PHP installation</b><br>';
echo 'More info here - BCMath: <a href="http://it.php.net/bc">http://
it.php.net/bc</a><br>';
$errors++;
}

if(!extension_loaded('json')){
echo '<b>JSON extension seems to be missing please check your PHP
installation</b><br>';
echo 'More info here - JSON: <a href="http://aurore.net/projects/php-
json/">http://aurore.net/projects/php-json/</a><br>';
$errors++;
}


if(!extension_loaded('pdo')){
echo '<b>PDO extension seems to be missing please check your PHP
installation</b><br>';
echo 'More info here - PDO: <a href="http://ca.php.net/pdo">http://
ca.php.net/pdo</a><br>';
$errors++;
}

if ($errors > 0){
echo '<b>You seem to be missing '.$errors.' extension/s that are
fundamental for the installation of Clipperz</b>';
die();
}



On Nov 5, 9:59 am, "Giulio Cesare Solaroli" <giulio.ces...@gmail.com>
wrote:
> Hello Luca,
>
> thanks for the suggestion, but we are definitely not PHP experts. Any
> contribution on how to improve the community edition code is very
> welcome! :-)
>
> Regards,
>
> Giulio Cesare
>

Giulio Cesare Solaroli

unread,
Nov 11, 2008, 4:44:22 AM11/11/08
to luca.f...@gmail.com, Clipperz
Luca,

thanks for the suggestion. We will try to integrate them next time we
will update the Community Edition.

Thanks,

Giulio Cesare

Reply all
Reply to author
Forward
0 new messages