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;

ASP MDB x64 issue

ADODB.Connection error '800a0e7a'
Kan de voorziening niet vinden. Mogelijk is deze niet juist geïnstalleerd.
/someaspfile.asp, line 123

Okay; moved to a new server… Windows 2016 Standard, 64 bit
So now what? Well, you could read here.

ASP Error: ADODB.Connection error ‘800a0e7a’ Provider cannot be found. It may not be properly installed.
Without naming a source the answer is: “Never mind.  I found the answer on another forum.  “Enable 32-bit applications” needs to be enabled in the connection pool for the website, within IIS Manager 7.”

But how? Well, just:

  • Start Internet Information Services (IIS) Manager
  • Go to your application pools
  • Click on “DefaultAppPool”
  • Click on “Advanced Settings”
  • In General, set “Enable 32-bit Applications” to true

That’s all folks!
Contact My Brain if you need any help!

Disable These Files Might Be Harmful to Your Computer Warning

source: https://winaero.com/blog/disable-these-files-might-be-harmful-to-your-computer-warning/

Disable These Files Might Be Harmful to Your Computer Warning in Windows 10

If you connect a network share, i.e. mount a network drive by IP address of the server, Windows 10 displays a warning message These Files Might Be Harmful to Your Computer when you are opening files stored there. Here’s how to get rid of it.

Continue reading Disable These Files Might Be Harmful to Your Computer Warning

MySQL user not connecting

Problem:
Windows Server 2016, IIS Website, Setup a MySQL server/database, setup a WordPress website, quickly connect with root and root-password. Everything works fine!

Now you want things more secured, so you add a MySQL user with a password and rights to only the wordpress database. Change wp-config.php with the new login and you get a “Error Establishing a Database Connection” when accessing the WordPress website or admin.

Change back to root and the problem is solved. How to fix this?

Continue reading MySQL user not connecting

SEO tips from the guru

Again, found and pasted here; to keep for myself and later use.
Article from March 2018, but still valid I think. Original link: https://www.seoguru.nl/handleiding-seo/seo-tips/ = the last chapter of https://www.seoguru.nl/handleiding-seo/

SEO tips: een volledig en actueel overzicht

Tot slot van deze handleiding geef ik hier een samenvatting in de vorm van SEO tips. Ze zijn hieronder zoveel mogelijk uitgesorteerd naar het stadium van de ontwikkeling van de website. De lijst wordt regelmatig bijgehouden. Indien u zaken ziet die naar uw mening anders moeten of indien u tips mist, dan hoor ik dat graag. Dank!  

Continue reading SEO tips from the guru