PHP & Mysql Archives - Nabtron Technology & Programming Guide Sat, 21 Apr 2018 09:40:14 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://i0.wp.com/nabtron.com/wp-content/uploads/2018/12/nabtron-icon-50.jpg?fit=32%2C32&ssl=1 PHP & Mysql Archives - Nabtron 32 32 13047128 PHP Abstract Class https://nabtron.com/php-abstract-class/ https://nabtron.com/php-abstract-class/#respond Mon, 16 May 2016 23:23:42 +0000 https://nabtron.com/?p=10167 This post is related to abstract classes in PHP and will be updated with related information as time passes. Let me know in comments if you have any feedback, suggestion, correction or query related to this topic and content discussed here. Can Abstract Class have Private methods? I was reading a blog where someone commented […]

The post PHP Abstract Class appeared first on Nabtron.

]]>
https://nabtron.com/php-abstract-class/feed/ 0 10167
Preg_replace vs str_replace https://nabtron.com/preg_replace-vs-str_replace/ https://nabtron.com/preg_replace-vs-str_replace/#comments Sat, 07 May 2016 11:15:51 +0000 https://nabtron.com/?p=10149 I’ve been looking for benchmark tests that compare preg_replace with str_replace, but none was satisfying my exact situation. My exact situation was, that once the page is completely loaded, all thousands of lines of html code, and then run that code through my function to replace the substring in it with mine. Actually converting all […]

The post Preg_replace vs str_replace appeared first on Nabtron.

]]>
https://nabtron.com/preg_replace-vs-str_replace/feed/ 2 10149
PHPMailer – Tips and fixes https://nabtron.com/phpmailer/ https://nabtron.com/phpmailer/#comments Wed, 20 Apr 2016 12:59:34 +0000 https://nabtron.com/?p=10090 This post will cover various common issues encountered with PHPMailer and how to resolve them. It will also include various tips to improve its usage. I will keep updating this post with content related to PHPMailer as it comes along. Set different but single reply-to email address You can provide a different reply-to address to […]

The post PHPMailer – Tips and fixes appeared first on Nabtron.

]]>
https://nabtron.com/phpmailer/feed/ 2 10090
KISS code https://nabtron.com/kiss-code/ https://nabtron.com/kiss-code/#comments Sat, 16 Apr 2016 23:55:30 +0000 https://nabtron.com/?p=10079 I’ve seen numerous people, doing simple things in amazingly complex way! As they say, programming is not typing, it’s thinking. Maybe it’s hard to think for a few minutes instead of coding for many more minutes over the same thing, in a bad way? In this article, I’ll keep adding some KISS (Keep It Simple […]

The post KISS code appeared first on Nabtron.

]]>
https://nabtron.com/kiss-code/feed/ 1 10079
HTML2PDF issues https://nabtron.com/html2pdf-issues/ https://nabtron.com/html2pdf-issues/#respond Wed, 23 Mar 2016 03:20:31 +0000 https://nabtron.com/?p=10003 I was working with one of the clients site where the invoices were being converted to a pdf using mpdf library. However, as usual, there were errors encountered, so I decided to make a post related to html to pdf conversion errors and compile all the html2pdf errors in one place. This list will keep […]

The post HTML2PDF issues appeared first on Nabtron.

]]>
https://nabtron.com/html2pdf-issues/feed/ 0 10003
MySql issues https://nabtron.com/mysql-issues/ https://nabtron.com/mysql-issues/#respond Sun, 10 Jan 2016 21:16:13 +0000 https://nabtron.com/?p=9889 This page will list some of the common mysql related issues and how to solve them. If you’re having any issue not listed here, please let me know through comments and I’ll try to solve them for you. PhpMyAdmin: import file size too large I was trying to import a phpmyadmin file related to one of […]

The post MySql issues appeared first on Nabtron.

]]>
https://nabtron.com/mysql-issues/feed/ 0 9889
PHP 7 – 5 things you need to know https://nabtron.com/php-7-5-things-you-need-to-know/ https://nabtron.com/php-7-5-things-you-need-to-know/#respond Thu, 24 Sep 2015 13:06:48 +0000 http://nabtron.com/?p=9067 PHP 7 candidate has been released and it has some cool improvements to show! Some argue that there wasn’t a need to release it currently as most of the improvements it provides were already quite possible through various ways in previous versions too. Lets see some of the things about PHP 7 and how it […]

The post PHP 7 – 5 things you need to know appeared first on Nabtron.

]]>
https://nabtron.com/php-7-5-things-you-need-to-know/feed/ 0 9067
APC vs Memcached, which one is best https://nabtron.com/apc-vs-memcached-which-one-is-best/ https://nabtron.com/apc-vs-memcached-which-one-is-best/#respond Fri, 12 Dec 2014 19:20:55 +0000 http://nabtron.com/?p=8538 The debate about the best never ends. Today one might be the best, tomorrow some other one! Same goes with caching plugins too. Today a member asked in our group that which one of the caching plugin is best, APC or Memcached. Before going into detail let me clarify that memcache is different from memcached […]

The post APC vs Memcached, which one is best appeared first on Nabtron.

]]>
https://nabtron.com/apc-vs-memcached-which-one-is-best/feed/ 0 8538
Enable PHP short tags on nginx and apache https://nabtron.com/enable-php-short-tags-on-nginx-and-apache/ https://nabtron.com/enable-php-short-tags-on-nginx-and-apache/#comments Thu, 04 Dec 2014 22:29:23 +0000 http://nabtron.com/?p=8491 First of all, if you need to turn on short tags on your nginx or apache based server (linux or mac or windows or any other) for just one single tag, please do yourself a favor and change the single <? it to <?php However if you need it turned on for sure, then continue […]

The post Enable PHP short tags on nginx and apache appeared first on Nabtron.

]]>
https://nabtron.com/enable-php-short-tags-on-nginx-and-apache/feed/ 4 8491
Submit html code via input to WordPress options correctly https://nabtron.com/submit-html-code-via-input-to-wordpress-options-correctly/ https://nabtron.com/submit-html-code-via-input-to-wordpress-options-correctly/#respond Tue, 21 Oct 2014 22:00:16 +0000 http://nabtron.com/?p=8328 I’ve been working on a plugin and it needed to allow users to save html code as options. However while trying to do so, php (or WordPress) would automatically escape the submitted code with a backslash (\). I tried figuring out why and where it was happening and it turned out to be added right at […]

The post Submit html code via input to WordPress options correctly appeared first on Nabtron.

]]>
https://nabtron.com/submit-html-code-via-input-to-wordpress-options-correctly/feed/ 0 8328