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...

Editing a WordPress Theme

This is a method for editing WordPress themes by modifying backup files (referred to as child themes) without touching the original. To easily identify the child theme in use, create a new folder in the “wp-content/themes” directory by combining the theme names. (For example, if the original theme is “twentyfifteen”, create a folder named “twentyfifteen-child”)...

Error Installing Gnuwboard on AutoSet

An error occurred while installing Gnuwboard on the Windows server. I’m not sure about the latest version of AutoSet, but the one installed is ‘v 6.3.1’… (I can’t believe how outdated it isㅠ) Anyway, a '500 error' occurred when accessing the 'data' folder. Deleting the '.htaccess' file confirmed that it worked normally. Modified it to...

Image Warehouse Update

Recently, we have performed server migration and stabilization work due to a sudden increase in traffic. Changed name servers Modified source code Updated design Changed usage instructions Added short domain Supported mobile access Enabled image zoom feature In addition, we plan to enable fast access from overseas through a CDN in the near future. If...