PHP variables and strings

Sometimes you have to be reminded of the basics:

“How to use a dollar-sign $ in a string?”
In single quotes a dollar sign isn’t parsed as anything. Nothing is auto parsed in single quotes in php. If you use double quotes they are automatically parsed:

echo "$var"; // this will print the value of $var;
echo '$var'; // this will print $var;
echo "\$var";// this escapes the dollar sign so it will print $var;

PHP mail on IIS Windows 2016 Server


Configure SMTP E-mail here to send using an external mailserver will work for ASP scripts – Deliver to SMTP server with credentials

Configure the SMTP server here to make the PHP mail-function work.
Access-Connection – Grant only your own server IP and
Access-Relay – Grant only your own server IP and
Delivery-outbound security – Basic Auth login details TLS
Delivery-Advanced – Smart Host smtp server name

smtp_port = 25

configure SMTPSVC to start automatic, so you won’t go crazy after your next reboot…

Phonegap Build Android Splashscreen

Here we go again …
CLI-8.1.1 is new, new is better, ehm, except that the splashscreen stopped showing on Android. Stepping back to cli-7.1.0 solves this problem, but that is not really solving it.

<!-- Platforms to compile -->
    <gap:platform name="ios" />
    <gap:platform name="android" />

<!-- Define a specific version of PhoneGap to build -->
<platform name="android">
       <preference name="phonegap-version" value="cli-7.1.0" />
<platform name="ios">
        <preference name="phonegap-version" value="cli-8.1.1" />

Of course you search for solutions and may find out about density and qualifier, but neither keyword works. Also this link does not help by adding:

< platform name="android">
< preference name="SplashScreen" value="splash" />
< /platform>

the only “solution” so far is…

<platform name="android">
   <preference name="phonegap-version" value="cli-7.1.0" />