Tag Archive: php

Mar 02

Dynamic bind_param for mysqli update query in PHP

If you need to dynamically bind params to an UPDATE query when you are using mysqli statement you will face some troubles. But few lines far you are going to find the right solution for you $query = ”; $flag = false; $bindParam = ”; $refArray = array(); $refArray[] = &$bindParam; //set the 0 field //Manage …

Continue reading »

Feb 29

Fix PHP blank page and manage errors without server access

If  you have a blank page and you don’t any access to web server log you can use these few lines of code before the your PHP code causing the crash. // Display Errors ini_set(‘display_errors’, ‘On’); ini_set(‘html_errors’, 0); // Error Reporting error_reporting(-1); // Shutdown Handler function ShutdownHandler() { if (@is_array($error = @error_get_last())) { return(@call_user_func_array(‘ErrorHandler’, $error)); …

Continue reading »

Jul 27

Send var_dump result to a string variable with PHP

Maybe you need to capture var_dump result in a variable to use it like a string in you context. You don’t want to output result but just have it in your hand.

Continue reading »

Mar 09

Order_status_id = 0 in OpenCart

If you look deep inside OpenCart Db you can find order_status table. In it you find these fields: order_status_id : used by OpenCart in order table to indicate the status of the order, like “Pending”, “Complete”, “Canceled” language_id : if you have only English installed you have “1” as solely value name : the translation …

Continue reading »

Apr 04

Drupal multisite installation and configuration

Drupal , powerful CMS, can be used in multisite configuration . Drupal official how-to page tell us that “single code base” can stand by “multisite” indicating right now one of the most important benefit of multisite installation : SINGLE CODE . You work one time and only one time for all sites.

Continue reading »

Feb 25

Howto change Locale in Zen Cart

Zen Cart is an opensource ECommerce solution. When you get a new Zen Cart installation one problem can arise is date format and localization. This is not a Zen Cart problem but an administrator task because localization resides into your server. In next post i will tell you how to get locale from your server.

Continue reading »

Feb 23

Howto set timezone in php.ini with Plesk

Plesk is one of the most used web administration system , but like anyone else it’s not so easy to understand how it works. Some CMS or softwares need a properly configured timezone in php to work. To set timezone in PHP you need to write some code into parsed php.ini. But which one php.ini file …

Continue reading »

Feb 08

Howto solve problem Fatal error: Call to undefined function curl_init()

When you set a development environment there are default configurations that don’t meet yours requirements: one of these can be possibility to make use of php curl extension. So you can encounter the error :

Continue reading »

Jan 31

howto implement autocomplete in input text form using jQuery , jQueryUI and PHP

When you build a form, allowing autocomplete in input text is one of most  useful thing for yours users and for you. Now we will show you how  a combination of jQuery , jQueryUI and PHP can used to retrieve data from a database and showed to the user during typing in a input field.

Continue reading »

Jan 08

Using .mo and .po file without native gettext php function

If you have followed the article “Setup local translation in PHP using gettext function” and you got in trouble, most probably the problem is around the fact that you don’t have gettext functionality available in you server environment. And now what if you want to take advantage of .mo and .po files and hence of …

Continue reading »

Older posts «