Blog Archives

PHP INTRO, debugging, html quotes, email, closing tags, security, if, cookies, alt. syntax

December 12, 2016

updated 2020-05-11. PHP is now the most popular servers-side scripting language in the world. It is, in fact, the programming component of the “LAMP” environment: Linux, Apache, MySql, Php and is built in to all major linux distributions. PHP is surprisingly more popular than Microsoft’s own ASP web scripting language! PHP initially started on Linux/unix environment but today there are more PHP developers on...

Read more »

moodle: Time Spent in a lesson saved in the lesson timer table is distorted, wrecked

October 29, 2016

updated 2020-05-17 Moodle: Time Spent in a lesson is being falsified since mdl 2.3 note: As of moodle 3.0, a time limit on the lesson can be seconds, minutes, hours, days or weeks. A person can leave and re-enter a lesson at will, but the termination time is set with the first entry into the lesson. Moodle: To require a minimum time spent in...

Read more »

php basic String functions

June 6, 2016

updated 2020-08-28 strlen, strcmp, substring, strtoupper, strtolower, str_replace, addslashes, trim, strstr, strpos, str_repeat, strrev, explode, implode, chunk_split, . . .   string length $length = strlen($str); an empty string if( empty($string) ) : A variable is empty if it’s undefined, null, false, 0 or an empty string.   substring $str = "abcdefgh"; echo substr($str, 1); // bcdefgh echo substr($str, 3); // defgh echo substr($str,...

Read more »

Goodbye Flash plug-in!

December 5, 2014

updated 2016-09-11 by PAUL WAGENSEIL Jun 17, 2016 You Should Disable Adobe Flash Player Now: Here’s How a large chunk of the malware attacking web browsers worldwide is dependent on Flash Player flaws. – tomsguide.com/us/disable-flash-how-to,news-21335.html … the Flash plugin is entirely unnecessary nowadays and serves only as a for the delivery of viruses. – Hacker’s Manual 2016 page 32 April 8, 2016 Time...

Read more »

How to easily Set Up your Fedora-Linux Home Network

May 19, 2013
How to easily Set Up your Fedora-Linux Home Network

updated 2019-11-20 How To copy and share files between Fedora computers and share a printer How to set up a home network on Fedora (or Ubuntu) with a router. (At the begining of this article, I was still using Fedora 11, 13, and 14 on different pc’s and had live copies of Ubuntu 8.4, 9.4, 9.10, and 10.10 that I had looked at). Since...

Read more »

Flash takes over your camera and microphone and writes permanent cookies!

May 4, 2013

REMOVE FLASH! Flash takes control of your webcam and mike. without permission! Web sites advertisers can now silently access your camera and/or microphone and write up to 13 copies of a new type of cookie that was quietly introduced “last year” = 2009. It’s officially called the Local Shared Object (LSO), commonly called a Flash cookie. More persistent and much more dangerous than HTTP...

Read more »

basic loops in PHP

February 10, 2013

Loops execute a block of code a specified number of times, or while a specified condition is true. for for ($i = 1; $i

Read more »

How To automate Linux backups to a remote pc

November 25, 2012

updated 2018-05-03 passwordless ssh: automated Linux shell backups to another computer ssh remote login without a password Accessing a remote site through ssh without a password How to do unattended backups to a remote linux computer Quite often, you want a shell script to ssh into a remote server (your web site?) unattended and do a (regularly scheduled, cron job?) backup, for instance. SSH...

Read more »

SQL: some basic JOIN syntax

November 15, 2012

updated 2019-04-20 INNER JOIN and , (comma) are equivalent in the absence of a join condition and “JOIN” is defined to be equivalent to an “INNER JOIN” Examples: SELECT * FROM customer AS c, orders AS o WHERE c.custkey = o.custkey or (same): SELECT * FROM customer AS c JOIN orders AS o WHERE c.custkey = o.custkey or (same): SELECT * FROM customer AS...

Read more »

SQL: date – time displays, conversions

November 1, 2012
SQL: date – time displays, conversions

updated 10-28-2019 The CURDATE(), CURRENT_TIMESTAMP(), CURRENT_TIME(), CURRENT_DATE(), and FROM_UNIXTIME() functions return values in the connection’s current time zone, which is available as the value of the time_zone system variable. In addition, UNIX_TIMESTAMP() assumes that its argument is a datetime value in the current time zone. The output of CURRENT_DATE has the format: YYYY-MM-DD The DATE_FORMAT() function allows you to return a date in a...

Read more »

Internet, Web Site, Security with .htaccess

October 27, 2012

The surest control over security is with /etc/httpd/conf/httpd.conf when you have the entire server, or in .htaccess files otherwise – if you are on shared hosting. Read the post “Unix-Apache .htaccess” for basic information first, if you are not familiar with this. It will be best if you have your site duplicated on your home pc, where you can test out any changes to...

Read more »

Delete the Zen-Cart Store Demo files, images, and Data

October 11, 2012
Delete the Zen-Cart Store Demo files, images, and Data

How to get rid of zen-carts demo store – including version 1.5.0. “How to clean up default install and remove example store related files.” How to remove, or delete, the “Zen Cart demonstration categories and products”. Help with installing Zen-cart, help removing Zen-cart’s demo store. How to Delete all the Zen-Cart Sample Store files, images, and Data. Install Zen-Cart and choose “NO” to the...

Read more »

make your Zen-Cart 1.5.0+ configuration.php files flexible

September 28, 2012

On you backup or testing server, for development, (not your live, commercial, site!!) you can create a fake SSL certificate (for free, of course!) officially called a “Self Signed Certificate” and operate with SSL turned on everywhere. Regardless! In your zen-cart configuration files, do not hard-code any settings that might be different on your backup or testing server or that you might want to...

Read more »

linux shell command line prompt, history, and editing

September 25, 2012

updated 2016-09-20 How to Retrieve and Edit Commands in Linux All this information assumes the default “bash” shell. If hitting the up arrow does not retrieve the previous command, or the command “history” does not get a list of your previous commands, then you do not have the Bash shell. And, if ctrl-p is the only way to get your previous command, then you...

Read more »

zen-cart v.150: cannot test off-site, “not accepting payments from your region”

September 25, 2012

“Sorry, we are not accepting payments from your region at this time” Problems with testing Zen-Cart 1.5.0 off-site updated Sept. 25th 2012 SSL certificate required for zen-cart on a development server? You’re kidding! I just started testing an upgrade (to v.150) on one of our development servers. I made sure it was working properly as is (v.138a in “test mode”) before starting the upgrade...

Read more »