PHPMailer is a popular library for sending emails as the project of the title suggest. In the GitHub, readme file has a nice example of a basic setup, but today I’ll give you a similar simple example using jQuery, Swal( Sweet alert ).

So first this is the PHP script that should respond to an ajax request ( I named the filename smail.php):

As you probably know running PHP on Windows is a bad idea as you can get in a plethora of problems even for a simple development setup but, when you want to test a quick script or you just want to write maybe a solution to an algorithmic problem found on some type of programmer improvement site that accepts solutions in PHP you can use of course some prebuild windows binaries from windows.php.net.
Anyway, the main gist of this mini-post is that, I found a recurring bug with CURL library, the bug has been reported before and it consists in the fact that the library will not load(even if you set up correctly php.ini) you and no starting error will be generated so you will inside a PHP script that uses CURLthe following error:Call to undefined function curl_init()
In my case, I was updating from version 7.0.9 to 7.0.24, so the quick and dirty solution is just to replace the php_curl.dll from your extension folder with one from a previous version of PHP that loaded( perhaps is best that …

About some days ago I wrote a sarcastic comment on a youtube clip that was biased from my point of view, and I didn’t do that just cause I think it was biased, cause as I previously imply, objectivity is troublesome to achieve, especially when considering the present polarized society.

The main reason that angered me, wasn’t the biased, it was the way that the clip was made, with many scenes taken out of context, and almost no argument to back a smearing narrative.

So I enabled my sarcastic mode and wrote a pretty darn subjective satiric comment, moreover due to its length, I thought why not to make an article out of it, here it is:

I am sure that Corbyn wants to annihilate all those super genius rich people that care so much about this world, and I know that from the enormous public outcry, let’s all hope that they don’t extenuate to death from all the whining.

Is it only me that wakes up in the middle of the night sweating and being scared to death upon

This game is a fast paced first person shooter, that will require you to have a pretty durable mouse as you will find that you need a huge amount of fast clicks in order to play this game. I played it about two days and took me an approximated time of about 7-8 hours total(both days) in order to complete it. It is incredible but after this time I had a muscle soreness for my index finger(mostly) and a little bit for my middle finger of the firing hand. And I said that is incredible as I didn’t have any muscle soreness for any finger in a period that easily surpasses 10 years.

Some popular old games that in my view happen to be similar are Serious Sam, Quick and maybe Alien Arena. With that said you may imagine that when I wrote fast paced, I actually meant “godlike” speed of movement. And that for me is a very attractive feature as it allows you to dodge in a very effective manner in any situation, and that’s the most important …

I guess that most of APP developers would not prefer a crude exit of their APP when back button was pressed, and as you may already know using ionic you can register a callback on the back button pressed event. That is pretty straight forward, but what comes in the registered callback is most a matter of preference, but nevertheless, this method that I lately used works on the newest 3.1.1 Ionic version.
I will explain in just in 2 phrases, what is the expected behaviour:
The first thing that it will do it will look if there is an overlay view/component active like a Modal, Toast, Alert and if there is it will dismiss that component.
Then it will check if a menu is opened, if it is it will close it, then it will check if the keyboard is opened, and close it in case previous was true, and lastly it will check if you can go back taking into account the current page, and if you can’t it will present a confirmation alert to exit the app.…

My recent book reviews

I found this book to be fabulous, after some reading, I told myself that the author can't be too young, cause this book literally will transpose you in the past so well that you might wonder if time travel was not invented somehow and yo...

I liked the writing style, anything else was predictable and linear, with an "all will be dead soon" end, 3 survivors that have dim chances to stay alive after the escape pulled from the infected boat, and you are left with the picture o...

This book is like a long, long comic book, maybe it was me but the author finds a way to combine ridiculous characters with a unique kind of humor that I didn't grow too fond. Taking into consideration that the author has a military expe...