• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

nSiteful Web Builders

Building a Better Web - One Site at a Time.

  • Home
  • About
    • Testimonials
    • Resources
  • Web Sites
  • Online Marketing
  • WordPress Support
    • Customized WordPress Training
    • 60-for-60 Sessions
  • Web Applications
  • Blog
    • Archive Listing Minimalistic
    • Blog Articles Grouped by Category
    • Case Studies
    • General
    • Portfolio
    • Reviews
    • Snippets
    • Techniques
  • Contact Jeff
    • Purchase Retainer Consulting Hours
    • About Retainer Consulting Hours

php

By Jeff Cohan, April 25, 2017

Why, When, and How to use sprintf and printf

This article is for php coders who are familiar with the sprintf (and printf) functions but who haven’t yet figured out why, when, and how they should use them. Until recently, I was one of them. Although I’ve been coding in php since 2001, I could count on one hand the number of times I’ve […]

Written by Jeff Cohan · Categorized: Techniques · Tagged: php

By Jeff Cohan, May 13, 2016

Display WordPress and WooCommerce Tags as Lists

Screenshot

Instructions for displaying a tag cloud as a list in WordPress and WooCommerece.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: php, Taxonomies, WooCommerce, WordPress

By Jeff Cohan, October 22, 2015

Diagnostic PHP: Get All User Constants

Sometimes I want to see all the constants I have defined. Here is some diagnostic PHP I use for displaying all user-defined constants.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: Diagnostics, php

By Jeff Cohan, October 21, 2015

Diagnostic PHP: Get All User Functions

Sometimes I want to see all the user-defined functions that are in memory when a page loads. Maybe the page doesn’t need certain functions and I can realize performance improvements by removing them. And sometimes — I’m being candid here — I copy functions from one application into a library file for another and don’t need any of them for the current application. This function, offering some diagnostic PHP, helps.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: Diagnostics, php

By Jeff Cohan, October 20, 2015

Diagnostic PHP: Get All Included Files

Sometimes when developing, it’s helpful to echo some diagnostic information to the screen. Here’s some simple diagnostic PHP I use for displaying all included files.

Read more…

Written by Jeff Cohan · Categorized: Snippets · Tagged: Diagnostics, php

By Jeff Cohan, October 9, 2015

Hayes Shutters Online Ordering System

Word-of-mouth referrals are still our favorite source of new business. One day no so long ago, I called a fellow (actually lady) Web developer after reading her humorous and all-too-familiar account of a “sales call from hell” on her Facebook timeline. After some commiserating, we shared highlights of recent projects and agreed to think of each other if and when opportunities to collaborate arise. Before we hung up (a soon-to-be-obsolete metaphor, I imagine), I had contact information for two prospects who might need my services. A little more than a month later, one of those prospects became a client. This article describes my first project with that client.

Read more…

Written by Jeff Cohan · Categorized: Case Studies · Tagged: Images, php, Web forms, WordPress

By Jeff Cohan, September 13, 2015

Custom Web Form: Contract Generator in PHP & MySQL

Custom Web Form

Forms are the engine that drive user interactivity on the Web. We see them everywhere — they are the meat of eCommerce Web sites and online surveys, and simple versions of forms are common on “Contact Us” pages. Some forms are easy to make, using basic HTML, online form builders, or plugins for platforms like WordPress. But there are other applications for Web forms — including some applications for which you might not initially think a form is the answer — that require a custom solution with custom programming. This article describes a project in which we created a form-based system for generating contracts for a private school’s Independent Study Program. This system, housed within the existing password-protected Intranet/Administrative area of the school’s Web site, automates and streamlines the process of generating contracts, minimizing the need for manual calculations and eliminating most, if not all, of the opportunities for user error.

Read more…

Written by Jeff Cohan · Categorized: Case Studies · Tagged: MySQL, php, Web forms

By Jeff Cohan, June 4, 2015

Sort Multidimensional Arrays with PHP array_multisort

Without question, the most common operation in the Web applications I build is retrieving gobs of structured data and displaying that data in some order. In most cases, the data comes from database tables. But not always. In this article, I share what I’ve found out about how one can use the array_multisort function to sort multidimensional arrays.

Read more…

Written by Jeff Cohan · Categorized: Techniques · Tagged: Arrays, php, Web applications

By Jeff Cohan, May 15, 2014

How to add an About Us blurb to every WordPress blog post

screen capture of About Us blurb

While WordPress has functions and template tags for displaying “About the Author” information on single blog post pages (in fact, many themes innately support this), there’s nothing similar for displaying “About Us” information. This article offers a simple method for adding an “About Us” blurb after the main text of every single blog post. And I hope it gets your wheels turning about ways to add customized content to your WordPress Web site.

Read more…

Written by Jeff Cohan · Categorized: Techniques · Tagged: php, WordPress

By Jeff Cohan, October 2, 2013

Biting the bullet

Last night, while working on an online order form for a client, I faced the challenge of coding a validation routine for 30 free-form text fields that can only accept values that are measurements in inches and fractions of an inch. If this sounds geeky, I suppose it is. But this story is more about attitude than technology. Finding myself at a familiar crossroads (whether to stay in my comfort zone or step out — that is, whether to venture into the world of regular expressions), I bit the bullet and stepped out. I liked the taste. I don’t think you have to be a developer to find resonance in the moral of this story. At least I hope not.

Read more…

Written by Jeff Cohan · Categorized: Techniques · Tagged: php, regex, Web forms

  • Go to page 1
  • Go to page 2
  • Go to Next Page »

Primary Sidebar

mailchimp signup

Subscribe to get notified when new articles are published. Unsubscribe any time. No spam. I promise. Check out my newsletter archives.

social

Twitter Facebook LinkedIn

Recent Articles

  • Create a Custom Shortcode to Display a MemberPress Membership Price ANYWHERE on Your Website February 5, 2023
  • Avoid Direct Styling; Use CSS Instead September 21, 2022
  • Blog Tags: What They Are (and What They’re Not) August 5, 2022
  • How to Create a Simple Custom Events Plugin May 24, 2022
  • Make your Web Site the Heart & Hub of your Online Marketing Strategy March 24, 2022

Filter By Category/Tag

Categories

  • Case Studies (7)
  • General (61)
  • Portfolio (5)
  • Reviews (12)
  • Snippets (16)
  • Techniques (37)

Popular Tags

Advanced Custom Fields Blogging Child Themes Content Marketing CSS CSS Grid Customer Service Custom Fields Custom Post Types Diagnostics Facebook FooGallery Genesis Gutenberg HTML Images iPhone Libra Live Chat Marketing Media MemberPress MemberPress Courses mu-plugins MySQL Photo Gallery php Pinterest Plugins Post Formats Pricing Project Management Security SEO Seth Godin Shortcodes Social Networking Surveys Taxonomies Trello Twitter Video Web design Web forms WordPress

siteground wp hosting

Web Hosting

wp101

EasyWordPresstutorialvideosforbeginners.
MemberPress CTA

Footer

Background

Web Sites | WordPress Support | Web Applications.

Formally trained in liberal arts and education (I have a B.A. in Government from Harvard and studied Secondary Education at Rutgers Graduate School), I have honed my skills in the communication arts and sciences as a teacher, trainer, instructional designer, writer, photographer, calligrapher, helpdesk manager, database programmer, and multimedia developer.

(I've also been a group counselor, waiter, bartender, bicycle messenger boy, computer salesman, carpenter's helper, financial analyst, and school board president.)

Tech

Systems since 1983.
Web sites since 1994.
PHP since 2001.
WordPress since 2007.

Contact

770-772-5134
Email Jeff
Send Money
All Ways

Copyright 2023, nSiteful Web Builders, Inc.

 

Subscribe

Pardon the interruption. I know popups can be annoying. But I’d love to have you as a subscriber.

Sign up to be notified when new articles are published. Unsubscribe any time.

* indicates required

Powered by MailChimp

×