Latest Posts
-
How to Fix WARNING: Creating default object from empty value
You may encounter this “warning” message when using PHP 5.4 or above E_WARNING: Creating default object from empty value Here is how to fix this ๐
Categories :PHPRead more: How to Fix WARNING: Creating default object from empty value -
How to Change SSH Port with WHM & CSF
If you are using WHM & CSF, under CentOS, you may follow this steps to change SSH port from 22 (default) to something else ๐
Categories :ServerRead more: How to Change SSH Port with WHM & CSF -
How to Install ConfigServer Security & Firewall (CSF) in WHM
To install ConfigServer Security & Firewall (CSF) in WHM, please run this commands in your SSH terminal one by one. wget https://download.configserver.com/csf.tgz tar -xzf csf.tgz cd csf sh install.sh After it completes, there is a new menu in WHM which is under “Plugins” category, named “ConfigServer Security & Firewall”. ๐
Categories :ServerRead more: How to Install ConfigServer Security & Firewall (CSF) in WHM -
How to Install Litespeed in WHM
Here i will explain how to install Litespeed webserver in WHM. According to the Litespeed wiki : Open & login to your SSH terminal Execute this command to download the installer : wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_autoinstaller.sh Next we will make the file executable : chmod a+x lsws_whm_autoinstaller.sh Last step we can execute this command : (please check […]
Categories :ServerRead more: How to Install Litespeed in WHM -
Exporting MySQL Databases Command Line in Linux
Read more: Exporting MySQL Databases Command Line in LinuxTo export a mysql database by linux command line, for example your database name is my_database, your mysql username is my_username, and your mysql password is my_password, you can use this command : mysqldump –opt –single-transaction -umy_username -pmy_password my_database > /your/path/here/export.sql Note: after “-u” and “-p”, there is NO space. ๐
-
CSS Media Query
Here is a simple example of CSS media query ๐ http://pastebin.com/dkdfAvGF
Categories :CSSRead more: CSS Media Query -
Change WooCommerce Items Per Page
Read more: Change WooCommerce Items Per PageTo change displayed WooCommerce Items Per Page, add this code to any PHP file (end of “woocommerce.php” / your theme functions.php, etc) // Woo commerce 9 items per page add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 9;’ ), 20 );
-
Transferring Scrapebox License
I bought a new notebook few weeks ago. Now i have just remembered that i have to use scrapebox on my new notebook. So i went to google for a while and i found this link http://www.scrapebox.com/scrapebox-license-transfer. That page describes everything clearly. And it is free. All i have to do is redownload the scrapebox, […]
Categories :SEORead more: Transferring Scrapebox License -
Best Free iPad Games
I will give review of best free iPad games. All are installed on my iPad. Angry Birds collection. Phenomenal games. You should try at least once ๐ Angry Gran. It is a scrolling game, you will control a grandma and you should hit pedestrians to get money. You can use your money to buy stats […]
Categories :PersonalRead more: Best Free iPad Games -
PHP HtmlEntities for UTF-8 Characters
Read more: PHP HtmlEntities for UTF-8 CharactersIf you just use simple PHP htmlentities function with one argument, you will notice that when you pass string that contains UTF-8 characters, the result is incorrect leaving you with some incorrect characters on the result. To use it correctly, use this code ๐ htmlentities($your_string, ENT_COMPAT, ‘UTF-8’);