php

PHP: How To Created Youtube Related Video

This stupid idea come into my head when I analyze the most keywords coming to one of my lyrics site. Mostly people coming to my site with a relevant keyword, example: song title and artist name. I need something to make an interactive place for them to keep them coming back. I was thinking about an video preview and it ended with related video idea. On this short articles I will share the way to created youtube related video using combination of PHP and javascript (using wordpress as CMS, of course you can edit it to fit your site). This… Read More »PHP: How To Created Youtube Related Video

CRON JOB to Repair and Optimize Database

In this short articles we will learn how to automatically repair and optimize our database using Cron Job. Cron Job is most likely scheduler, mean it will run automatically after we setup it. I believe not many of us know how to using this features, We can use it to run periodically some PHP script we made. Example a sitemap generator script which may consume to many resource if we run it manually, we can set it run in schedule follow settings on Cron Job. In this short articles I will give sample how we can use Cron Job to… Read More »CRON JOB to Repair and Optimize Database

PHP: Class For Mobile Device Detection

If we are using wordpress we can easily using plugin to make switch button between desktop version or mobile version for our blog. Question is how if we’re not using wordpress or we already using another CMS which not contain mobile device detection or we want to build it from zero. In this short articles I will write some technique to detecting mobile device or desktop device. Google really inspired my creativity after they allowed my country language showing ads in mobile version. There is 2 version ads which it’s only shown for Android or iPhone and another one is… Read More »PHP: Class For Mobile Device Detection

Make Money: Monetize You Mobile Site With AdMob (Integration)

Hello everyone, In this short articles I will write about possibilities to monetize mobile site and how to integrate admob code into wordpress mobile site. In this short articles I used wodpress as desktop web engine and wp-mobile-pack plugin as mobile web engine. In the past articles on my blog we already know and learn about AdMob as alternative way to monetize mobile site, admob rank become better and legit after google purchase them so don’t worry about their reputation. For wp-mobile-pack you need to learn my past articles how to doing a small modification that will affect your SEO.… Read More »Make Money: Monetize You Mobile Site With AdMob (Integration)

How to: Created XML Sitemap Using PHP

This articles inspired to share from my experience when I need to created custom sitemap in XML format for some of my website. Basically we will using PHP to generated URL following the sitemap in XML format. Why should in XML format? because mostly a great search engine using sitemap with XML format as their standard. So we will using PHP script to generated URL (others will follows standard XML format). Example we have site using PHP and MYSQL we will need to query data from MYSQL and then echo it as URL. The problem is because not all website… Read More »How to: Created XML Sitemap Using PHP

PHP: How To Blocking Bad Referrer Site

In this short tutorial we will learn how to blocking bad referrer site using php script. This idea coming into my head after I’m sick looking at bad referrer site which take opportunity to earn money using my articles. Example: the baddest shortest URL adf.ly, this site shorten URL but it’s reported contain spyware and malware on ads from that page. This will lead our site in problem because people may think we’re spreading spyware/malware. Even if we claim we don’t created that link I believe 99% people wouldn’t trust us. The best thing to stop this madness is blocking… Read More »PHP: How To Blocking Bad Referrer Site

PHP: How To Fix Mostly wp-db.php Out Of Memory

Have you run big wordpress site and suddenly find out there is something not working after your wordpress site become bigger? I do, and sometimes I was thinking to use other CMS because there is no better solution for this case. Out of memory problem can only be solved by raising the memory_limit, The problem is how if I’m still using shared hosting? Actually this case already happen to me long time ago. When my site with worpdress CMS become bigger I notice wp-db.php error in hosting logs. Mostly all errors coming from out of memory. I have not found… Read More »PHP: How To Fix Mostly wp-db.php Out Of Memory

PHP: How To Limit Download By IP Address Per Interval

This issue come to my attention after I moved one of site from my network into another host. When I’m in older host they not limited bandwidth usage but in new host they limited bandwidth usage. I got data statistics bandwidth used daily around 2-5 GB (crazy visitors *lol* text site based can consume 2-5 GB data daily). This is really annoying, I keep upgraded the hosting package to keep the site running. 3 days ago I was looking for solution for this problem, I have an idea to limit the download files to save bandwidth ?abuse? usage. I was… Read More »PHP: How To Limit Download By IP Address Per Interval

PHP: Show Beauty Ads Inside Your WordPress Article

Actually I have been searching the way for doing this trick long time ago. How to show ads inside wordpress post (like a picture) but no lucky on the result. Usually information I got is only showing ads inside the article but with standard size 480×60 or just a simple plugin to show ads in the first,middle or the end article. I want a beauty position, this position will be a good spot for ads inside wordpress article. I fell really stupid when I found the tricks is really simple *lol* Tested it on my technology reviews blog… 😀 The… Read More »PHP: Show Beauty Ads Inside Your WordPress Article

PHP: Creating Custom Title and Meta (Simple Way)

In this article we will learn how to create custom title and meta description for each pages of you website. If you’re using WordPress or script that already have this standard SEO settings, all title and meta can be done setup in easy way. Anyway how if your website using your own design? I mean you designed it from zero! some of us didn’t notice if actually we are using global title and meta that was caused search engine didn’t give good result in return because all categorized as “duplicated“. *sample on false title and meta making my site poor… Read More »PHP: Creating Custom Title and Meta (Simple Way)