PHP

Read all posts Tagged for this section

What’s the difference between die and exit functions in PHP?

One of my student asked me couple of questions - what is the difference between print and echo (which I have covered already here) and the difference between die and exit functions. Well, there's no difference between exit and ...

Upgrading PHP 5.x to PHP 7.0 on CentOS/RedHat server using Yum

From our earlier posts, you would have seen How to upgrade to php-5.5 using remi repository. Today we shall see How to Upgrade PHP to it's latest version 7.0 from 5.5 through the same Remi repository using YUM. RPM ...

PHP Startup Error : Unable to load dynamic library, wrong ELF class: ELFCLASS64 [Solved]

PHP thrown this error PHP Warning:  PHP Startup: Unable to load dynamic library wrong ELF class: ELFCLASS64, while installing Composer on my CentOS box having PHP version 5.3.3. Below is the complete error message:PHP Warning:  PHP Startup: Unable to load dynamic ...

How to Install Composer, the PHP Dependency Manager?

Composer is a dependency manager for PHP, which allows you to require all dependant libraries for a particular project. In layman terms, composer can bring in all dependant libraries required on a project by project basis and keeps them all ...

How to Check If a Visitor to your Website is from a Mobile or PC in PHP?

Ever want to check if a particular visitor to your website is from a mobile device or desktop using PHP? then here's how you can do that. $_SERVER in PHP, a super global variable or an array that contains information about ...

Why echo and print are not Functions in PHP and their differences

I hear few of my colleagues call 'echo' and 'print' as functions in PHP. But actually they are not. According to the descriptions from 'php.net', echo and print are language constructs and not functions. It means, you are not required to use ...

5 Ways to Customize Product Tabs in WooCommerce!

I was recently working on WooCommerce for some of my client projects, where I learned to customize product tabs according to the client's requirement. Well, you got it. I'm going to share few tips that helped me to customize product tabs ...

[WooCommerce] How to replace ‘Choose an option” with Attribute name in variation select menu?

In WooCommerce, the product attributes used for variations will display as a select menu in product page. For example, if I had created an attribute named 'Size' and used it for variation, then a 'Size' select menu will appear in the ...

How to Display/Fix Indian Currency Symbol in WooCommerce?

Indian Currency symbol was officially announced in 2010 and thereafter operating systems, word processors and websites started to use the new rupee symbol. Particularly for websites, the webrupee api set the tone (for some reason, the webrupee api does ...

How to display Product Variation Price inside Variation drop down list in WooCommerce?

By default, WooCommerce plugin will display product variations as a drop down menu in the single product page. For example, a T-shirt would be available in various sizes/variations (say M, L, XL etc...) and those options will be displayed via select drop ...

vps germany

MediaWiki Image Upload – Fatal exception of type mwexception [Solved]

Question: Hi techglimpse, I have recently installed MediaWiki version 1.25.2 successfully. But I'm not able to upload an image file (say JPEG) via 'Upload file' link present at the sidebar. The MediaWiki fails with an error message as "fatal exception ...

PHP-intl error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix [Solved]

Question: Hi, I was trying to install Mediawiki on CentOS 6.6 machine. I have also installed all the dependant packages such as PHP, APC, Xcache, pecl extensions etc...During the install, Mediawiki shown a warning as "The intl PECL extension is ...

APC Installation Error – sh: phpize: command not found [Solved]

Question: Hi techglimpse, I was trying to install APC for Mediawiki using yum on CentOS virtual machine. To install APC package, I ran pecl command as 'pecl install apc'. But the command failed with an error as "sh: phpize: command not found. ERROR: ...

Customize ‘Error Establishing Database Connection’ in WordPress – Tell Search Engines and Users, the Issue is temporary!

How ugly is that message - Error Establishing Database Connection? I know, it does not sound good and so to the search engines and your website visitors. If you are using Wordpress, then you might have come across this error ...

PHP Warning: require_once(): Unable to allocate memory for pool [Resolved]

Question: For the past two weeks, I started seeing Apache logging PHP warnings as "Unable to allocate memory for pool". The error is logged for every page refresh and occurs for almost every page in my website. Moreover the error ...

PHP Warning: Module ‘modulename’ already loaded in Unknown on line 0 fileinfo [Solved]

If your PHP program throws this warning "Module <some_module_name> already loaded", then  here's how you can fix that. Normally this warning message is seen when you execute PHP program in the command line - as below: $php sam.php PHP Warning: Module 'fileinfo' ...

How to make WordPress Posts to Stick on top of Other Posts? – Sticky Posts!

I was working on a new project - a site based on WordPress, where I had to display four boxes with each box displaying a post from a category called Services. Well, doing that is quite easy, as I just need to use ...

Fix WordPress Error : Call to undefined function wp_get_password_hint()

I updated my WordPress recently and left with few PHP Fatal errors. In one of my previous post, I had written about an ...

Hostinger.in promises to be the perfect host for you & your website

Given the almost routinely daily news of how millions of dollars are being pumped into the Indian e-commerce market by bigwigs, Venture Capitalists and Angel investors alike, chances are that you too must have had atleast a small inkling to try ...

  1. Pages:
  2. 1
  3. 2