Posts

Showing posts with the label error

Display All Php Errors As Well As Warnings

I am annoyed why my php script doesn't demo errors together with warnings similar it did before. It seems my server admin has default config gear upwards non to demo the errors together with warnings. Every fourth dimension I was debugging the code I constitute myself searching around for the niggling chunk of code to display all PHP errors together with warnings. So, I order inwards the my post service then it was ever nearby when I needed. If yous wishing to run into all the PHP errors together with warnings inwards your script, include the next chip of code to override the php default config setting. error_reporting(E_ALL); ini_set('display_errors', '1'); Sumber http://developer-paradize.blogspot.com

How To Railroad Train Mime Type Mistake Using Codeigniter Sendmail?

If yous are using Codeiginiter postal service course of didactics function, yous tin become next type of MIME type error. This is a multi-part message inwards MIME format. Your e-mail application may non back upwardly this format. How to laid upwardly the MIME error: Follow the next steps if yous become MIME type sendmail error. 1. Open system/libraries/email.php 2. Edit var $newline = "\n"; var $crlf = "\n"; to var $newline = "\r\n"; var $crlf = "\r\n"; Hope this solves your problem. If yous establish whatever occupation as well as solution, create portion to other readers equally well. :) Sumber http://developer-paradize.blogspot.com

How To Grip Php Detect Error?

A honor way that spell your code volition operate every mo expected, it isn't written "like it should be". It's similar the compiler telling yous "I know what yous hateful hither too I tin plow over notice produce it, but yous shouldn't rely on this. Please write it differently too thus I don't convey to brand assumptions". The next code generates a honor if $n is non set. if($n==1) { //do something } Therefore a honor past times itself doesn't hateful that something bad happens well-nigh of the time. However, fixing the notices is a pretty unproblematic task. Influenza A virus subtype H5N1 solution or proposition would live on something similar this: if (!empty($n) && $n == 1) { //do something } empty checks for beingness automatically (just similar calling isset earlier it) but it every mo good checks to brand certain your value doesn't evaluate every mo imitation amongst values similar false, 0, or '' (e...