If you're gonna echo a string and you need to include variables or functions in the string, you should use a comma and not a dot. A dot will concatenate the string before it outputs it to the buffer. A comma will just echo every part one by one.
<?php if($this == $that) echo '<li>My gran can beat you at ' , $that , ' No problem.</li>'; ?>
If you're goal is to setup a VPS and not worry about configuration, a very good solution is to use : https://runcloud.io/
Easy to use and very cheap for the amount of time you will save using this tool.
Whatever you do, do not self-host you're own emails, it takes a lot of work to setup and maintain. And even if you setup everything perfectly some email providers will just put your mails in spam because they don't trust your server. Use a service, here are 2 that are great and cheap :
Try writing object oriented reusable code. You shouldn't be rewriting the same stuff every time. Put them all in a library to use alone or in a framework, or even in your own framework if you decide to write your own.
It takes a little longer to write reusable code but it's worth it.
If you're gonna echo a string and you need to include variables or functions in the string, you should use a comma and not a dot. A dot will concatenate the string before it outputs it to the buffer. A comma will just echo every part one by one.
If you're goal is to setup a VPS and not worry about configuration, a very good solution is to use : https://runcloud.io/ Easy to use and very cheap for the amount of time you will save using this tool.
Whatever you do, do not self-host you're own emails, it takes a lot of work to setup and maintain. And even if you setup everything perfectly some email providers will just put your mails in spam because they don't trust your server. Use a service, here are 2 that are great and cheap :
And for mass sending emails you can use :
Ratchet does what you want : http://socketo.me
Use IN, it's the smartest way. $query = 'SELECT * FROM
tableWHEREidIN (' . implode(',', $ids) . ');';Try writing object oriented reusable code. You shouldn't be rewriting the same stuff every time. Put them all in a library to use alone or in a framework, or even in your own framework if you decide to write your own.
It takes a little longer to write reusable code but it's worth it.