php Quotes Script – Free Source Code Download

Hello everyone,

I wanted to let everyone know that I’ve been nominated for Free File of the Month on Envato. Everyone can download the source code of my Premium Quotes Directory PHP Script. Check that out and share it with your friends who might need this. It will be there for the whole month of December 2016.

Cheers,

Fabian.

WordPress – How to fully go from HTTP to HTTPS

If you’re having a WordPress website and you’re finally moving to HTTPS then this will be a quick and good read for you.

I had some troubles myself when recently moving from HTTP to HTTPS protocol on another website of mine..

So I want to share with you what I did to make everything work nicely on my WordPress installation.

Firstly, make sure your Hosting provider did install the certificate and it is working properly. When everything is set up on their end, you can continue with some small changes on your wordpress in order to fully go from http to https.

You can either install a WordPress Plugin that will help you achieve this or you can go and edit your .htaccess file on your wordpress installation and add the following code.

This will make sure everyone who enters the website is using the https protocol and redirecting them to it if they are using basic http.

This is pretty much it, thank you for reading !

Node.js Set cookies on HTTPS Requests

If you are not sure how to set up cookies with Node.js and HTTPS / HTTP requests to a specific page then this will definitely help you understand how you can do it.

I’ve confronted with this confusion too since I did not find much on the documentation of specific Node.js libraries that provide requests.

Lets say you have a Node.js https.get and you want to send a request to a specific page but you need a cookie in order to access that page for some reason. Here is how it should look :

 

If you want to send multiple cookies in one request then it would look something like this

 

Hope this helps you ! Have a nice day

How to Update XAMPP Version

XAMPP is a popular AMP ( Apache Mysql Php ) that is available for Windows, OS X and also Linux.

If you’re looking to update your XAMPP, meaning you you want to have a newer version of phpmyadmin, php ..etc then you’ve found the right place.

Updating the software without losing your content ( files or databases ) is pretty simple. I know I searched a lot for this just to find out that this can be done in just a few minutes.

After installing the newer XAMPP, you only need to copy and paste the htdocs and the mysql folder from the old installation to the new one.

You’re done, simple as that 🙂

Notice: If you had any other Apache configurations then you need to copy those too from the Apache folder

Get Minecraft Server Status with NodeJs Request

With this simple snippet and quick snipped you can get the status of your or other’s minecraft server just by entering 1 command line with NodeJs.

Keep in mind that you should have some basic understanding of NodeJs and a local installation where you can test out the code below.

 

You should also have installed the NodeJs Request library. The code above is basically sending a GET request to mcapi.us to get the current status of the minecraft server.

Run it like this:

node app.js SERVER_IP SERVER_PORT

Check if MySQLi extension is enabled with PHP

Checking if the MYSQLi extension is installed and enabled is pretty straight forward. We can call the function_exists() on a mysqli function and that will give us true or false, depending on the server, if it’s installed or not.

This can be quickly adapted to other usages, like checking for the GD Library extension or anything else.