Archive for the ‘PHP’ Category

[Solved] The mysqli extension is missing. Please check your PHP configuration.

When I installed phpmyadmin after installing apache2, mysql-server, php5 on my Ubuntu 11.10 machine,  I was presented with this error when I navigated to phpmyadmin page. The mysqli extension is missing. Please check your PHP configuration. <a href=”Documentation.html#faqmysql” target=”documentation”><img src=”./themes/pmahomme/img/b_help.png” width=”11″ height=”11″ alt=”Documentation” title=”Documentation” /></a> The solution to this is simple, though I had to [...]

[Solved] Error executing pear commands “PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0″

I have php5, php5-cli, and php-pear installed on my system. I was trying to install pear package phing from the pear installer. Whenever I tried to run pear commands like pear channel-discover I got an error message stating PHP Deprecated:  Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line [...]

[Solved] Error Installing Plugins to Eclipse on Ubuntu 10.04

An error occurred while installing the items   session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null –> [R]org.eclipse.cvs 1.0.400.v201002111343, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).   The artifact file for osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343 was not found. I got this error while trying to install PDT after I installed Eclipse platform from the repository in Ubuntu Lucid Lynx. The solution is to install eclipse-pde. In the terminal, type [...]

[How To] Upgrade WordPress automatically on 1and1 Hosting

I host my wordpress blog on my 1and1 hosting account. With new releases of wordpress, the automatic core update didn’t work as expected. It would freeze on the way. The workaround: WordPress Upgrade script needs php5 for functioning. By default, .php extension is parsed with php4 engine in 1and1 webhosting. Add this line to your [...]

Verify Googlebot with PHP

Webmasters maynot be pleased if the content they want to be available to googlebot only is available to any users when they switch their user-agent to Googlebot. But webmaster can easily trackdown this diguised visits. Here is a simple function in php to verify if the visit claiming to be from Googlebot is a true [...]