Categories
PHP Programming

Use Mailgun Plain PHP Curl Code

Mailgun is one of some services to send e-mail. It has a nice PHP library here. But for some reason, it only works in my local server, and it does not work at all in remote server and the code returns “Mailgun server is not reachable” error (although i have tried to disable server firewall, which was not a best decision).

Categories
PHP Programming

How to Use Midtrans-PHP in CodeIgniter 3

Here is how to use Midtrans-PHP official library in Codeigniter 3 🙂

Categories
Server

Does CSF Firewall Make Your WHM / Server Slow ?

There are various reasons why CSF firewall may make your WHM / server slow.
Here are some personal tips from me.

Categories
Personal

Splashtop as TeamViewer Alternative

I have used TeamViewer for years. Recently i was bugged with message that i use TeamViewer as business purpose, although i use TeamViewer only to connect to my other computer, in the same house.

I was considering to upgrade my TeamViewer to paid plan. But after considering some factors, i tried to search TeamViewer alternatives.

Categories
PHP Programming

Bitmex PHP API Example

If you are looking for bitmex API example using PHP, you can use this code 🙂
https://github.com/xrvel/xrvel-bitmex-api-php

Categories
PHP Programming

Fix WordPress Cloudflare HTTPS Redirect Loop

If you use Cloudflare flexible SSL certificate to use HTTPS, in some case you may get redirect loop.

I believe it is caused because WordPress does not recognize the “fake” SSL certificate.

Fixing it is simple.

Open your wp-config.php file, and find this first line

<?php
Categories
Server

Find String in Files in Linux

To find some string within files in Linux, you can use this command

grep -rnw '/your/path/' -e "find this string"

-r means recursive
-n means line number
-w means match the whole word 🙂

Categories
JavaScript Programming

How to Install PhantomJS in cPanel / WHM Server

Here is what i did to install PhantomJS in cPanel / WHM 🙂

Categories
Server

Use DKIM Key With WHM, cPanel, Cloudflare

DKIM is one of useful thing to make email which is sent by your domain to be avoided marked as spam.

When you use cloudflare for that domain, there is some change that you need to do on the DKIM key.

For example on your WHM (Edit DNS Zone) or cPanel (Email > Authentication), you will get DKIM key with format like this :

"v=DKIM1; k=rsa; p=XXXX" YYY\;
Categories
Server

How to Append Date and Time to Log File in Linux

If we want to get detailed log report, we can store multiple log files with date and time information on the file name 🙂

We can do this command in Linux :

your_command_here > /path_1/path_2/your_log_$(date +"%Y-%m-%d_%H-%M-%S").txt