Skip to content

Sending multiple emails with PHPmailer

Edit: I forgot I’d created the SendMail(); function myself, which is why the explanation doesn’t mention at first what it does. I’m having some trouble with PHPMailer (https://github.com/PHPMailer/PHPMailer) when attempting to send two emails, one directly after the other. The script is almo…

PHP Post Method Error

I am using Post method in my website. In my index.html file is the following code: <meta http-equiv="X-UA-Compatible" content="IE=…

Custom config file for codeigniter

Very new to CodeIgniter, trying to create a custom config file to load special variables into my application. in application/config/ I created custom.php and placed the following code in that file: I then opened up application/config/autoload and altered the following code: I refresh my application and see th…

How to disable PHP Error reporting in CodeIgniter?

I’ve read the official documentation and all they say is that I should have a error_reporting() function located at the top of your main index.php file. But I don’t have index.php file in my project. My base controller is called core so to get to main index I go to www.mysite.dom/core/. So I guess…

How to display a readable array – Laravel

After I write: And after I refresh the browser I get an unreadable array. Is there a way to get that array in a readable format? Answer dd() dumps the variable and ends the execution of the script (1), so surrounding it with <pre> tags will leave it broken. Just use good ol’ var_dump() (or print_r…