How to parse HTML files with apache / php7

TL;DR version: here’s how to parse HTML files with PHP hypertext preprocessor on apache 2.4x webserver, and PHP7 on linux

In PHP 7, the newest and ever more popular version of the PHP scripting language, the only files that are parsed by default are the ones that have .php, .phtml, or .php3/php4/php5 extensions. I don’t know who might still be using .php3, .php4 (never seen anyone use this one), or .php5 file extensions, but I’m sure many of you still usually use HTML files, and want to insert some PHP code into it.

Obviously, even though a lot of discussion is against the practice of parsing HTML files with PHP, you might still need this option. Regardless of whether you are a beginner or a pro in the art of website creation, scripting, web programming and alike, you still need to be able to parse files with the HTML or HTM extension, as PHP files, because integrating some PHP code into HTML and viceversa, it’s the easieast way to quickly test out something in a browser. So set aside the “best practices” pride for now, and just accept it as a fact that a lot of people still need this option 🙂

Read more

What is local GEO targeting and why you should care ?

Image of Local GEO targeted pages generator for WordPress
Local GEO targeted pages generator plugin for wordpress

Local geo targeting is the fine-tuning of the RELEVANCE of your search-engine result pages entries, to the specific areas or cities, in which you provide your products or services, and to those specific services, that your business has to offer. And it’s the single biggest improvement you can give your site, if it’s based on wordpress, to get better search engine rankings and outrank your competitors.

Read more

If your booking system is stuck at loading

If your booking system is stuck at loading

Example of booking system (dopbsp) plugin stuck at loading
Image no. 1. Example of booking system (dopbsp) plugin stuck at loading

There are quite a large number of websites based on wordpress that use dotonpaper’s booking system or booking pro plugin, just in my experience as a freelancer, I’ve seen over 50 sites that use it, some of them for travel booking and hotel lodging, others for cleaning services, because from many points of view, the plugin is very easy to use and configure, and it even has (had ?)  a free version.

Read more

Quick apache .htaccess rules writer in PHP

Sometimes it’s good to have a quick .htaccess rules writer for your server / host, to block a larger number of IP addresses from accessing stuff on your site, like spambots, or people (bored kids ?) who try to hack into your site or blog. If you use any kind of statistics plugin on your wordpress blog, or any other stats on other platforms, you can most likely see the IP addresses and the paths these visitors have taken, trying to access your site in an unauthorised way, like trying to exploit a revolution slider vulnerability to show your config.php, or some other plugin.

So here’s the quickest way to deal with these IP addresses, presuming you are on a linux box with PHP installed, or on any computer with PHP available in command line (php5-cli package on debian/ubuntu/mint/fedora/q4os , basically, on most modern linux systems, and xampp or wampp package on windows based machines).

Read more

How to fix the Gimp floating toolbars bug in KDE/TDE trinity

The TDE Desktop environment is an extraordinary piece of software that allows one to keep working with the computer as KDE used to look and feel like before the switch or “upgrade” to KDE 3 and before that, and as the project’s maintainers themselves state, with ” … a primary goal of retaining the function and form of traditional desktop computers.” In other words, TDE development saved a lot of people who didn’t like the direction in which KDE headed from that point forward, from a lot of frustration, and allowed them to work as they were used to.

Some things, however, are not as good as they should be, mainly because the project is still

Read more

Debian, Q4OS, TDE = the holy trinity in linux !

Debian, Q4OS, TDE = the holy trinity in linux !

Finally, I can say wholeheartedly, that after having tried and tested very thoroughly, more then 200 linux distributions found on distrowatch.com, I have found the best, fastest, simplest, most complete, most user-friendly, efficient, task-oriented linux distro to date !

Last time when I was so excited and so pleased about anything in computer technology, was when I discovered Aldus Page Maker, but those times are long forgotten now (1994/1995), and the last time an operating system was so appealing to me, was when I discovered “ubuntu done right”, which was Linux Mint

Read more