PHP

  • New Course Roundup: Spring, PHP7, HTML & CSS

    Faye Bridgewrites on February 1, 2016 Every week, new content is published to the growing Treehouse Library! Here is a short list of what was added the week of January 25, 2016.   COURSES Introduction to HTML and CSS – Treasure Porth Get started creating web pages with HTML and CSS, the basic building blocks of […]

    READ MORE
  • How to Keep Your PHP Skills Sharp for a Next Generation of WordPress

    The huge strides that WordPress has taken as a height in a past 12 years have been mirrored by developments around a denunciation it’s created in: PHP. Though new languages and frameworks squeeze a headlines each integrate of months, PHP still powers the immeasurable majority of a consumer-facing web. It’s a denunciation that has captivated some-more […]

    READ MORE
  • Beginner’s Guide to PHP for WordPress – Part 1 of 3

    WordPress allows us to do so much in terms of building websites without knowing any code. With themes and plugins and a powerful admin area there is a lot we can do without typing any HTML, CSS, JS or PHP. However, at a certain point you need to get into the code to really customize […]

    READ MORE
  • Sanitizing Arrays: The WordPress Settings API

    This post is part of a series on Sanitization with the WordPress Settings API. Here is Part 1. Yesterday, I started talking about how to sanitize multiple values with the WordPress Settings API. The idea behind the post was to kick off a short series of additional posts that expand on some of the object-oriented […]

    READ MORE
  • Sanitizing Multiple Values with the WordPress Settings API

    A couple of weeks ago, I wrote a series of posts on An Object-Oriented Approach to the WordPress Settings API. With the proliferation of the The Customizer, I don’t know what the fate of the Settings API will be as WordPress moves forward, but I know that it’s not going to go anywhere soon and […]

    READ MORE
  • How To Stop Saving Empty Values with the Settings API

    Occasionally, I’ll get questions via Twitter or email from those who are working with the Settings API and aren’t sure why certain values are saving when they shouldn’t actually be saving. For example, say you have an input field that’s asking for, say, a company’s name. You obviously want to sanitize the data to make […]

    READ MORE
  • Maybe Unserialize That Data (Or Maybe Not)

    Yesterday, I was chatting with a fellow WordPress developer and, as we were reviewing some code, we came across the use of maybe_unserialize. You can read more about it in the Codex, but the short of it is this: Unserialize value only if it was serialized. Seems a little odd, doesn’t it? I mean, shouldn’t we know […]

    READ MORE
  • This Week in WordPress: Upping a Stakes and Pushing PHP

    This week’s round-up of WordPress news, views and reviews epitomised in a daily email newsletter, The WhiP. Subscribe to The Whip for daily lashings of WordPress goodness. Far Flung Places (WordPress News) Automattic has pocketed $25,000 after winning a justice conflict opposite a male who abused a DMCA to bury combined by a tyro journalist. […]

    READ MORE
  • The Versions of WordPress and PHP

    One of the biggest challenges that comes with working with PHP and WordPress is determining which version of PHP to use. From the WordPress.org Requirements page: PHP version 5.2.4 or greater (recommended: PHP 5.4 or greater) With respect to PHP, a lot has changed between 5.2.4 and 5.4. And the problem, for developers, usually comes […]

    READ MORE
  • A Quick Tip For Reading Files with PHP

    If you’re in the business of building plugins – regardless of if it’s for fun or profit – the odds that you’re eventually going to have to read the contents of a file are relatively high. This could be for importing data from a file, this could be for parsing data out of something that […]

    READ MORE
  • BootPress – A Flat File CMS That Will Knock Your Socks Off

    BootPress is a content management system that has all of the features you would expect and hope for, but without any of the bloat or complexity you have come to expect and coped with, until now!  BootPress is simple.  All you have to manage are files, and only one file per page at that.  You […]

    READ MORE
  • Protect Against Humans.txt Query-String Scans

    I woke adult this morning to a sound of thousands of 404 requests attack a server. It’s unhappy that there are kiddies out there who have zero improved to do than buy some pitiable $50 book and afterwards lay there like an imbecile badgering people for hours on end. But alas, that is a universe […]

    READ MORE
  • Using the New York Times API to Chart Occurrences in Headlines

    Using the New York Times API to Chart Occurrences in Headlines This weekend while at a conference, I discovered that the New York Times has a pretty deep developer API. It covers both their newspaper data as well as government and regional information. I played around with it a bit and found it very easy […]

    READ MORE
  • Protect Against Malicious POST Requests

    Whether we like it or not, there are scripts and bots out there hammering divided during your sites with unconstrained HTTP “POST” requests. POST requests are arrange of a conflicting of GET requests. Instead of removing some apparatus or record from a server, information is being posted or sent to it. To illustrate, normal surfing […]

    READ MORE
  • One-Stop Shop: PHP-Tool Munee Cares for All your Website’s Assets

    By Dieter Petereit Posted in CSS, Javascript, PHP, Tools 0 comments Cody Lundquist, Australian with a Swedish sounding name, created a free asset-management based on PHP 5.3. Its feature-set is astounding, yet demands a special preliminary treatment of the websites, it’s supposed to be working on. Munee is able to manage any kind of possible […]

    READ MORE
  • Functional Programming in PHP

    The new hype in programming is all about functional programming paradigms. Functional languages are used more and more in greater and better applications. Scala, Haskel, etc. are thriving and other, more conservative languages like Java started to adopt some of the functional programming paradigms (see closures in Java7 and lazy eval for lists in Java8). […]

    READ MORE
  • Xdebug – Professional PHP Debugging

    Our Agenda Introduction to the topic. Downloading and installing Xdebug on your local machine (Mac OS X 10.6.6+, MAMP 2.1.1). Integrating with PhpStorm. Practice debugging. What You Will Need A Mac running Mac OS X 10.6.6+. If you are on 10.8.X you may need to install XQuartz as Apple removed X11. If you are on […]

    READ MORE
  • Make Client Side Data Available Server Side

    Published April 28, 2013 by Chris Coyier That would be pretty useful, right? Right now it’s very common to User Agent “sniff” when you want to make a server-side decision about what to give the client. But UA sniffing has always sucked and sucks more every day. What you really want to know is stuff […]

    READ MORE
  • How to Build a Modal Contact Form in Twitter Bootstrap with PHP + AJAX

    With a built-in styles supposing to us by Twitter Bootstrap, conceptualizing a elementary hit form becomes streamlined. When you’re looking to streamline your site even further, we competence not even need a dedicated hit page if no other info would be found there. A modal box is a nice, unimportant alternative, and Bootstrap allows us […]

    READ MORE
  • Mass Assignment, Rails, and You

    Early in 2012, a developer, named Egor Homakov, took advantage of a security hole at Github (a Rails app) to gain commit access to the Rails project. His intent was mostly to point out a common security issue with many Rails apps that results from a feature, known as mass assignment (and did so rather […]

    READ MORE