Category: developer

LOCATION BASED ADVERTISEMENTS

At its most basic, an agent on a website has an IP address. By using a database, then known ip address ranges can narrow down the search. We have seen many problems with mixed http and https configurations. OBTAIN THE CLIENT IP ADDRESS $protocol = "http://"; $useraddress =  $_SERVER[‘REMOTE_ADDR’];$protocol = "http://"; $useraddress =  $_SERVER[‘REMOTE_ADDR’]; if ($_SERVER[’HTTPS’] == ‘on’) …

Continue reading

1.5 MILLION WORDPRESS WEBSITES HACKED

About 1.5 million WordPress sites have been defaced thanks to the use of plug-ins that allow PHP to be used in comments etc. Remote code execution and worse is possible, If PHP is needed, then we strongly suggests developing a plug-in to handle the backend code.

ADVERTISING WIDGETS FOR WORDPRESS

There are several advertising widgets for WordPress. Most are commercial as they want a piece of the action. There are a few free ones that are crippled commercial ones. We use a 325 pixel wide sidebar on this site which fits the 300×250 medium banner ad. This size of banner is a very common format …

Continue reading

HELPFUL WORDPRESS PLUGINS

Over 1 million sites use WordPress. We have become expert WordPress both with Linux hosted or with Windows Server. One posted online the entire site is managed with a browser. This few plugins are very helpful and are the best choice for websites. SITEMAP.XML Google and Bing both want sitemap.xml files so that it makes …

Continue reading

WORDPRESS 4.7

WordPress 4.7 has now been released. Version 4.7 of WordPress, named “Vaughan” in honor of legendary jazz vocalist Sarah “Sassy” Vaughan, is available for download or update in your WordPress dashboard. New features in 4.7 help you get your site set up the way you want it. The new REST API will be helpful for new …

Continue reading

#PRAGMA ONCE

While not part of the standard yet, the widespread use of #pragma once is likely to find more support down the road. The big advantage is the simplicity for novice developers, no worrying about problems. The old #ifndef approach has a disadvantage of cluttering the global namespace as well. We recommend for new code that #pragma …

Continue reading

SECURING IFRAME CONTENT

Generally speaking the iframe tags are supposed to sandbox and lockdown the contents. Recently this was breached by Microsoft Live who broke out of the <iframe> sandbox and redirected the site to live.com Microsoft used at least 2 frame busting techniques to break out of the sandbox. Both of which show that browser security is …

Continue reading

HTTP 301 REDIRECT

Ordinarily when a web site URL changes HTTP 301 permanent redirect is used tell a search engine where to look, HTTP 404 errors can be categorically sent to the home page. There is a full search capability with any SQL driven system and WordPress supports it with all themes. Given some URL errors we estimate …

Continue reading

HTML 5.1

HTML 5.1 is now published, it adds a few more tags for images etc to make it easier for search engines to find an image for mobile phones etc. Among the more interesting new bits, the <picture> and srcset attributes .The <menuitem> and “context” can change menus which might affect dome dynamic site designs. WordPress …

Continue reading

INSTALL WORDPRESS ON LINUX SERVER

If you are using a self hosted WordPress setup it easy to install a new site with Linux. wget https://wordpress.org/latest.tar.gz then you can unpack it and open the site for configuration with a browser. tar -xvf latest.tar.gz generally a database will need to be created for the wordpress setup so its not a bad idea …

Continue reading