Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Freek Van der Herten:
Building a realtime dashboard powered by Laravel and Vue (2017 edition)
Jun 27, 2017 @ 14:53:33

Freek van der Herten has a recent post to his site sharing a project that was created by the team at Spatie to show real-time information on a large display there in the office. In his post he details how this system was created using Laravel for the backend and Vue.js for the frontend.

At Spatie we have a tv screen against the wall that displays a dashboard. This dashboard displays the tasks our team should be working on, important events in the near future, which music is playing at our office, and so on.

We’ve opensourced our dashboard, so you can view the entire source code on GitHub. It is built with Laravel 5.4 and Vue.

He goes through some of the history behind the project and how it was designed to replace some initial efforts with Dashing. He covers the basic functionality of the system with a high level overview and what kind of information it's displaying. From there he gets into more of the technical details of the dashboard including the grid setup, server-side code, client side Vue.js functionality and packages involved.

tagged: dashboard laravel vuejs tutorial github opensource display

Link: https://murze.be/2017/06/building-realtime-dashboard-powered-laravel-vue-2017-edition/

Derick Rethans:
Xdebug 2.3: Munging errors
Mar 10, 2015 @ 14:15:47

Derick Rethans has posted a new part of his series looking at the improvements that came with the latest Xdebug release (v2.3). In this new article he talks about error handling and intercepting them to make debugging simpler.

One of the first features I added to Xdebug was the interception of error messages, so that it was possible for me to include a stack trace. Xdebug 2.3 has a few additional settings to control the behaviour of interception.

He covers the addition of three new settings: xdebug.halt_level, force_display_errors and force_error_reporting. Each of these is designed to provide you with customizable error reporting. Each setting comes with an example of its configuration and how it modifies the output of the resulting errors.

tagged: xdebug error haltlevel force reporting display debugging tool

Link: http://derickrethans.nl/xdebug-2.3-error-munging.html

DevShed:
Displaying User Comments in a Code Igniter Blog Application
Dec 23, 2008 @ 17:42:01

DevShed continues their series creating a simple blogging application with the CodeIgniter framework with this part of the series - adding in a display for user comments.

In this specific case, the first of these files was defined as a basic controller, and was provided with the ability to paginate the aforementioned blog entries via the corresponding pagination class included with CodeIgniter. However, in its current incarnation, the blog application is pretty limited. It doesn't let users post comments on each blog entry. Thus, in the next few lines I'll be improving the signature of the controller class to address this important issue.

The review the code from before (showing the pagination of the blog entries) and add onto it a new comments method and how to create a new view to show the messages visitors to the site have submitted.

tagged: blog application tutorial codeigniter user comment display view action

Link:

Nessa's Blog:
Using PHP to Display Version Info (I and II)
Oct 19, 2007 @ 16:23:00

Nessa has two posts that talk about how to use PHP to display the versions of software running on the local machine.

I've been working on this application for work that does some simple server reporting, part of which involves displaying the versions of major software running on the machines. [...] I need to be aware of this to make sure that customers are being moved to servers with compatible versions. It's also good in tracking and planning upgrades.

In the first post she recommends using the exec function in PHP to run system commands to get things like the cpanel version, python version and what perl you have installed.

Part two shows a little bit different way to get some of the same information - using the data in the /proc/version file as a single resource to get OS information.

tagged: display version information exec proc version file display version information exec proc version file

Link:

Nessa's Blog:
Using PHP to Display Version Info (I and II)
Oct 19, 2007 @ 16:23:00

Nessa has two posts that talk about how to use PHP to display the versions of software running on the local machine.

I've been working on this application for work that does some simple server reporting, part of which involves displaying the versions of major software running on the machines. [...] I need to be aware of this to make sure that customers are being moved to servers with compatible versions. It's also good in tracking and planning upgrades.

In the first post she recommends using the exec function in PHP to run system commands to get things like the cpanel version, python version and what perl you have installed.

Part two shows a little bit different way to get some of the same information - using the data in the /proc/version file as a single resource to get OS information.

tagged: display version information exec proc version file display version information exec proc version file

Link:

Stefan Mischook's Blog:
Turning on display_errors in WAMP - Video Tutorial
Aug 31, 2007 @ 12:55:00

Stefan Mischook has posted another video tutorial to help developers get started in their PHP travels. This time it covers how to turn on errors when using the popular WAMP installation package.

Within a WAMP installation, I ran into a little issue today when trying to change php.ini's 'display_errors' property. By default WAMP installs with 'display_errors' to 'Off' - This is a pain-in-the-ass setting when trying to write new PHP code because errors don’t get displayed in the browser window

He includes the solution in the post but links as well to the video tutorial to show you exactly how it's done.

tagged: wamp video tutorial enable error display wamp video tutorial enable error display

Link:

Stefan Mischook's Blog:
Turning on display_errors in WAMP - Video Tutorial
Aug 31, 2007 @ 12:55:00

Stefan Mischook has posted another video tutorial to help developers get started in their PHP travels. This time it covers how to turn on errors when using the popular WAMP installation package.

Within a WAMP installation, I ran into a little issue today when trying to change php.ini's 'display_errors' property. By default WAMP installs with 'display_errors' to 'Off' - This is a pain-in-the-ass setting when trying to write new PHP code because errors don’t get displayed in the browser window

He includes the solution in the post but links as well to the video tutorial to show you exactly how it's done.

tagged: wamp video tutorial enable error display wamp video tutorial enable error display

Link:

DevShed:
Working with PHP and MySQL
May 29, 2007 @ 14:31:00

DevShed has a new tutorial today that's part two in a series looking at working with the combination of PHP and MySQL - "Working with PHP and MySQL".

You'll learn how to select the database, fetch and display data, and more. This article is excerpted from chapter 9 of Learning PHP and MySQL, written by Michele Davis and Jon Phillips.

They start by selecting the database before moving on to the query. With a select query, they grab the information from the books tablw and display it out to the page (fetching with both a mysql_fetch_row and mysql_fetch_array).

tagged: mysql tutorial select database fetch display mysql tutorial select database fetch display

Link:

DevShed:
Working with PHP and MySQL
May 29, 2007 @ 14:31:00

DevShed has a new tutorial today that's part two in a series looking at working with the combination of PHP and MySQL - "Working with PHP and MySQL".

You'll learn how to select the database, fetch and display data, and more. This article is excerpted from chapter 9 of Learning PHP and MySQL, written by Michele Davis and Jon Phillips.

They start by selecting the database before moving on to the query. With a select query, they grab the information from the books tablw and display it out to the page (fetching with both a mysql_fetch_row and mysql_fetch_array).

tagged: mysql tutorial select database fetch display mysql tutorial select database fetch display

Link:

JSLabs Blog:
How to write an image gallery script in PHP
Dec 13, 2006 @ 13:10:10

On the JSLabs Blog today, there's a quick new tutorial showing how to create an image gallery script to show off your latest photos and other images to the world.

This is a simple yet useful tutorial on how to write an image gallery script in PHP. It could be used for anything from banner rotation to just a couple of images that you would like to display in rotation on your website.

The code is broken up into two functions - GetAllFiles (grabs the files from the current directory) and DisplayImages (outputs the HTML to display and organize the images). The script doesn't require any external libraries and the functionality in it works with PHP 4.3.0 and above.

It's nothing fancy, but if you need a script to show the images in a directory (it can tell the difference between image and non-image), check this out.

tagged: image gallery script display directory file html tutorial image gallery script display directory file html tutorial

Link:


Trending Topics: