Server Migration Completed

The main domain (excluding subdomains) has been migrated to a new server.Previously, we were using Cafe24 for hosting, but due to issues with CentOS versions, we received a response that upgrading OpenSSL was impossible. We temporarily patched the WordPress core and plugins to keep things running, but continuous upgrades made the migration unavoidable.We have now...

HTTP Connection Information Logging

This is to check if the connection information is correct for testing when using OpenAPI. Method values, host, POST values upon connection. [PHP] <? $log = $_SERVER['REQUEST_METHOD'].' '.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].' n'; foreach($_SERVER as $k => $v) { if($k=='HTTP_HOST') continue; if(substr($k, 0,5)!='HTTP_') continue; $log .= '$k: $v'." "; } $log .= " "; $post = array_map('urldecode', explode('&', file_get_contents('php://input')));...

Creating Short Links Using Google API

I needed a short link, so I created one using PHP. Simply register for the Google API and you're good to go. Usage: shorturl_google('original address', 'API key'); <?php function shorturl_google($url, $key) { $post = array('longUrl' => $url); $json = json_encode($post); $curlObj = curl_init(); curl_setopt($curlObj, CURLOPT_URL, 'https://www.googleapis.com/urlshortener/v1/url?key='.$key); curl_setopt($curlObj, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curlObj, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curlObj, CURLOPT_HEADER, 0);...

Advertising using the Tenping API

I saw a Tenping ad on Facebook and decided to test it out with PHP. If we consider the overall sales through the revenue rankings on the Tenping site, I wonder if we can keep this running for long... If the results from the test are good, I'll write about various methods to utilize Tenping...