PHP Framework, and CMS… in the works

September 22nd, 2009

I have been working on a PHP framework of my own this past couple of weeks, and I would like to share it with everyone, once I have it more completed. Its highly based of the popular CodeIgniter framework, but scaled down in file size, memory usage, and its easier to find your way around the core to manipulate or change it if you please. It also allows you to the global $_GET variable. Something that annoyed the hell out of me when using CodeIgniter.

While I am developing the PHP framework, I am developing a Content Management System (CMS). The CMS I am developing was inspired by WolfCMS, which used to be FrogCMS (which is no longer in development), and TangoCMS… and myself. I am getting tired of writing code from scratch. I would say at least 60% of the code I use to write is the same from one client to the next, so the CMS I am developing will cut all that time to zero, because it will be already written and ready to go.

So far my CMS is not quite up to par with either of the CMS’s I mentioned, but it will be. Now thinking about it, the PHP framework I have doesn’t quite have all the classes as CodeIgniter either, but it has the same structure of it.

In a couple of weeks I would like to share with you my framework when its ready, and a sample demo of the CMS I am working on.

Just thought to share that with everyone, to let everyone know I am still here ;)


Introducing GOOPTracker

December 14th, 2008

GOOPTracker is an ad click tracker for publishers who have ads on their site(s). This is an alternative solution to other ad click scripts such as ClickAider and AsRep to name a few.

So what makes this one different from the others?
To start, its free. The code isn’t encrypted or hard to look through… you can easily understand what is going on through the lines of the code and I have made comments throughout it as well. You don’t need to sign up, or pay; you just download the files, configure/modify it ever so slightly to fit your needs (if you want), that is all. The script is MIT License, but I appreciate any enhancements or updates you have done to the code to help not me but everyone.

Read the rest of this entry »

GOOPTracker > Javascript > PHP

The End of Emerald, the Beginning of CodeIgniter

September 9th, 2008

Last week I had some hard thoughts about dumping Emerald CMS off of my to do list until today. Today I woke up and realized, “I am done working on Emerald” and decided to close off its resources. The purpose behind Emerald was to make a frame work ready to go for web developers (possibly non-web developers) to create sites and pages with very little time and effort. Just how Word Press is quick and easy to setting up a quick blogging site for anyone, I wanted Emerald to be like so – but not just for blogging – and with only a couple of clicks it could set up a who e-commerce site (it was no where near completion, however). But such a vast project couldn’t be done alone so I didn’t to open source Emerald hoping to get contributors. Also, I didn’t know of any frame works out there that used PHP and MySQL that were any good AND had a very good documentation. When coding under some other team built code, its extremely important to have a documentation so the new coder to the engine doesn’t feel lost. A lot of the times programmers will just turn away from the site immediately if a documentation isn’t well written or provided. Like me.

The whole cold hard truth for me stopping development behind Emerald CMS is because of a frame work called CodeIgniter. To simple put it, this frame work is fantastic. It was built with knowing that other programmers will be using this and the programmers most commonly used features when building sites for theirs or their clients needs. Just last week I downloaded the source and read the documentation and rebuilt the entire Zumspiel site over this past weekend… which took me about a month to develop prior.

So from one month to a weekends worth of programming, I was sold.

The documentation is very clear as it provides a thorough description and code example for all methods, classes, and global functions of what it will return or do, etc. It has all of the most commonly used features when developing a site, and there some nice plugins and libraries to help you develop that next big e-commerce site of yours.

Anyways, Google it your self and read up on the reviews for CodeIgniter. I promise you will find that they will all give positive reviews and very useful libraries and classes.

Blog > PHP

Upload Multiple Files

August 11th, 2008

Recently, I have been working on a project that involved uploading multiple files to the server with PHP. There are several ways to go about doing this: 1) Upload each image one at a time (but that really isn’t a multi uploading way) or 2) Place all the images in an array. Option 1 is pretty much ruled out because you aren’t uploading multiple images at once; And Option 2 is the way to go because that is the purpose of this tutorial, but there is a small problem that you might not be aware: over exceeding the posted max file size that is set in your php.ini file. Assuming you don’t have your own server, and depending on your host, you might be able to ask them to bump this up to a more reasonable amount other than the default 2MB. But usually you are limited because you most likely have a shared web host and they don’t want you to upload too large of a file to disturb the other users on that server, or they don’t want you to take too much space. Which is understandable.

So my solution was to upload each image at a time without leaving the page. How is this possible? With iFrames. I did a simple add and remove row with Javascript, allowing the user to select how many and what files to upload. Once the user selected all the desired files, I use Javascript again to check if all the files had the correct extension (.png in this case), then submit each form at a time after the other one got completed. I am not going to bother to explain the code the this time around, because I believe the explanation is well enough the code to understand.

Here is the sample
(of course the files aren’t being uploaded… just the page refreshes letting you know if it worked correctly or not).

And here are the files used to do the magic: zip

Javascript > PHP

Add/Remove Directories

June 4th, 2008

I just wanted to share with you 2 small, yet very useful, functions that you could use in PHP: dir_create and dir_remove. The name of the function gives away the purpose of what they will do. From time to time, I will get stuck with “Why is PHP not creating the directory?” or “Why isn’t PHP removing the directory completely?”, and that is where these two functions come into play to help you with those pesky little simple questions. Here are the functions:

Read the rest of this entry »

PHP > Website