PHP

Read all posts Tagged for this section

How to fix Call to undefined function apc_fetch() – PHP Fatal Error [Solved]

I have been migrating one of the Joomla website and was stuck with a "PHP fatal error Uncaught Error: Call to undefined function apc_fetch()". If you are stuck with a similar error, then here's how you can solve it. Before that, ...

Not safe to rely on system’s timezone settings -PHP Warning

Here's another error related to Datawrapper installation - "PHP warning:  It is not safe to rely on system's timezone settings". Below is the complete error message from Apache error_log file. PHP Warning:  phpinfo(): It is not safe to rely ...

Yetishare PHP script error-failed to generate download link [Solved]

Yetishare PHP script Error : My client has been using Yetishare file hosting script on his website and came up with a complaint that the script was not allowing users to download files. Also the script displayed a vague message "Failed ...

Disable open_basedir in cPanel for error open_basedir restriction in effect

This tutorial explains how to adjust open_basedir attribute in PHP configuration and in case of shared hosting, learn to disable open_basedir via cPanel. Question: Recently I worked for a client to install Datawrapper application on his Debian Jessie shared hosting server. I ...

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 ...

vps germany

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 ...

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 ...

  1. Pages:
  2. 1
  3. 2