background-code-coder-177598

Script Storage Update

October 17, 2019 benf101 1

This is an update to a previous post. In another post on this site, it was said that Dropbox Paper is the code storage of choice. This has changed. As of today, I much prefer using Microsoft’s GIT code repository known as: devops.azure.com. The benefits are numerous. Ability to revert […]

No Image

Script Storage

May 2, 2018 benf101 0

Update here: Script Storage Update Throughout my career, my scripts have been a vital piece of my work. Where I store them has changed over the years. The challenge has been in finding a repository that is reliable, searchable, accessible from where I work, and that looks good with color-coding. Additionally, […]

No Image

PHP Regular Expressions – Remove Comments From SQL Text

December 14, 2015 benf101 0

This short block of PHP code takes a SQL script and removes the “dash-dash” and “/**/” comments from it.  Of course, many languages, including PHP itself, use the “/**/” comment style so this could apply to PHP scripts, as well. The line that removes the dash-dash style comments could easily […]

No Image

PHP Date Difference

June 4, 2013 benf101 0

Finding a quick PHP function for date difference was painful.  Now that I found it, here’s the quick easy way. This site was a great help: http://www.phpf1.com/tutorial/php-date-difference.html

No Image

PHP Date Difference

June 4, 2013 benf101 0

Finding a quick PHP function for date difference was painful.  Now that I found it, here’s the quick easy way. This site was a great help: http://www.phpf1.com/tutorial/php-date-difference.html

No Image

Basic PHP Data Setup

December 14, 2012 benf101 0

Ideally, when setting up a data-driven PHP site, you should have your configuration and database connection code separate from your code that generates content.  What I want to display is a simple way to keep things separate and simple to work with. I use a config/index/data file structure.  There are […]

No Image

HTML Checkboxes

May 16, 2011 benf101 0

Occasionally, you discover something that you have been doing wrong for a long time.  Sometimes it wasn’t something outright wrong but was just stupid.  That is what happened to me. When using an HTML checkbox, it “POSTS” to the form submit page with the value of “on”.  I have always […]