Friday, March 12, 2010

How can I tell if a perl module is installed?

TO LOOK FOR A SPECIFIC MODULE:
find `perl -e '{print join $/, grep {/[^.]/} @INC}'` -name '*pm' 2>/dev/null |grep -i <>

where <> is the name of the module you are looking for

TO LIST ALL INSTALLED MODULES:
find `perl -e '{print join $/, grep {/[^.]/} @INC}'` -name '*pm' 2>/dev/null

Tuesday, March 9, 2010

Updating PHP variables without access to PHP.ini

http://www.karakas-online.de/EN-Book/change-php-parameters.html

has the following information:

although you will probably not achieve the desired result, due to restrictions that your ISP has set in place, to change the maximum execution time limit of your PHP scripts, add:

php_value max_execution_time 60

This will set the time limit to 60 seconds.


In general, to set values in an .htaccess file, use the following format:

php_value PHP-VARIABLE VALUE

where the string php-value is a literal.