Skip to content

Tag: php

PHPMailer sends the same email twice

I am using PHPMailer to send emails from a PHP file. Here you have all the code for it: And here is how am I calling the php_mailer function: My issue is that PHPMailer is sending every email twice. Answer I suspect your browser is sending repeated requests due to a plugin. This is not an unusual problem; the…

How to force either single or double quotes in PhpStorm?

In a PHP codebase, there is a code style of always using single quotes over double quotes. How do I configure PhpStorm to always use either single or double quotes depending on the project’s preference? I don’t want to think about typing ‘ or “, PhpStorm should transform it for me auto…

$_POST request works with postman but not in android app

I’ve been on this problem for a while now currently trying to convert my php scripts to PDO but the $_POST are always giving me null when ran through isset(). My code in android works fine with my other scripts but this one only works in postman when I change the $_POST to $_REQUEST on each item and the…