Skip to content

Mastering PHP and Laravel

Never stop learning!

Menu

  • Home
  • Blog Posts
  • Humor

PHP Sessions: Part 3

Now that I know how to enable sessions, and have a better understanding of how they work, the next thing to do will be to make use of the session in some way. But first, here are a couple notes

Kenny June 5, 2013September 27, 2023 Blog Posts, PHP Read more

PHP Sessions: Part 2

Building off the previous part, I will now see what’s going on under the hood when a session is started. One of the things I needed to figure out is what this means: PHP is capable of transforming links transparently.

Kenny June 5, 2013September 27, 2023 Blog Posts, PHP Read more

PHP Sessions: Part 1

It’s time to learn about sessions in PHP. Here is some basic code to start a session, and display the resulting $_SESSION superglobal: <?php session_start(); echo ‘<pre>’; var_dump($_SESSION); echo ‘</pre>’; The resulting output: array(0) { } To prove that it’s

Kenny June 5, 2013September 27, 2023 Blog Posts, PHP Read more

The complexity of programming

In my last blog post, I built a basic “Hello World” app using the Slim Framework. Today, I decided to take a look at the tutorial provided by Luka Peharda on Code Forest called Creating simple tasks app with Backbone.js and Slim micro

Kenny May 28, 2013September 27, 2023 Blog Posts, PHP Read more

My first Slim Framework app

Tonight I decided to check out the Slim Framework. I heard about it at Tek13, and had been wanting to see what it was like. The first thing I had to do was understand Composer. I started reading on the

Kenny May 26, 2013September 27, 2023 Blog Posts, PHP, Slim Framework Read more

Adding vhosts in Apache

On a native install on Mac, to add a vhost: If you haven’t done this one time step, do this first to enable vhosts: sudo nano /etc/apache2/httpd.conf Then uncomment the line that includes the vhost config file: # Virtual hosts

Kenny May 24, 2013September 27, 2023 Blog Posts, Mac Terminal / Linux Read more

My Experience at Tek13

I attended the php[tek] 2013 (tek13) conference for the first time this year. After coding ColdFusion for the last 12 years, I am now diving into PHP. I have not been involved in the ColdFusion community, so when the decision was made

Kenny May 23, 2013September 27, 2023 Blog Posts, Community Read more

Restarting Apache on Mac OS X

The command to restart apache on Mac OS X is: sudo apachectl -k restart  

Kenny May 21, 2013September 27, 2023 Blog Posts, Mac Terminal / Linux Read more

WordPress Plugin Hooks: Plugin Finished Loading

Now that I have a plugin that can be activated and deactivated, it might be nice to know when the plugin has completed loading. In the code below, I have added a function for this (line 43) , and an

Kenny May 17, 2013September 27, 2023 Blog Posts, WordPress Read more

WordPress plugin Hooks: Activation and Deactivation

Ok, so now I’ve got the beginnings of a plugin. Time to learn about hooks! However, first, notice that I’ve added text related to the actual license. Turns out that’s a proper practice, so I’ve added it as follows: <?php

Kenny May 17, 2013September 27, 2023 Blog Posts, WordPress Read more

WordPress plugins: Where to begin

Here is one place you can start if you are looking for basic info on creating a plugin: http://codex.wordpress.org/Writing_a_Plugin   Create a file in the plugins folder. Call it whatever you’d like.   Place a comment block at the top

Kenny May 16, 2013September 27, 2023 Blog Posts, WordPress Read more
  • Next »

Archives

Categories

Copyright © 2025 Mastering PHP and Laravel. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.