PHP

Read all posts Tagged for this section

Fix HTTP 403 Forbidden, Failed to Open Stream – PHP Copy function

I wrote a simple PHP program to copy an image from a website to local directory. The copy() function will copy a file to the specified destination and it can be used to copy a file that's stored locally and ...

How to install LEMP on Ubuntu 14.04 LTS

LEMP is a group of open source software stack used to setup web server, database and PHP on a Linux operating system to serve dynamic web pages. LEMP stands for Linux, Nginx (pronounced as Engine X) web server, MySQL database ...

Install PHP 7 on a fresh Ubuntu VPS: [Fix] Unable to locate package PHP

Recently one of my client provided a fresh VPS and asked me to install PHP 7, Apache and MySQL. While installing PHP, I encountered the below error: root@webimage:~# apt-get install php Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to ...

Call to undefined function simplexml_load_file() – PHP Error [Solved]

While working on a migration of a Joomla powered website on to a new VPS with PHP version 7.0 and Apache 2.4, encountered the an error "Call to undefined function simplexml_load_file()". Below is the complete error. Error displaying the error page: Call ...

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

vps germany

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

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

  1. Pages:
  2. 1
  3. 2