^ Main


September 21, 2006

IIS 7 will be great!

I’m in a session with Bill Staples titled “IIS on PHP” and he showed how to setup PHP to work with IIS 7. He has documented it on his blog here. I’ll just tell you real quick what to do.

Go to Handler Mappings, add a script map to the php isapi dll (name may be different pending version of php), and click OK. Done.

Huh? What? Where? :-) That’s crazy huh?

Checkout Bill’s blog for the screenshots, etc. I’m sure you can do the same with CF. Once I get CF 8 installed (or grudgingly install 7 since 8 won’t install on Vista right now), I’ll try it out and see if it works. If you are on Vista and have CF installed, try it out and let me know how things work. :-)

Posted by John C. Bland II at 4:14 PM | | Comments (4) | TrackBacks (0)

June 25, 2006

Code Igniter ROCKS!

I FINALLY got around to using CI on a real project and it met my expectations and then some and then some more and the a tid bit more than that. I didn’t get to toy with the database interactions, since the project used a CMS we built a while back for a client and it posseses a data access API, but everything else…pretty nice.

I did have problems with the URL’s. My main problem was not fully understanding .htaccess (IIS man here). It is Saturday night so I couldn’t get with our hardcore PHP guys to get help so I went to the net. CI has great documentation which had a .htaccess example which I tweaked a bit to fit our needs. Let’s geek on some code real quick.

Continue reading "Code Igniter ROCKS!" »

Posted by John C. Bland II at 1:38 AM | | Comments (3) | TrackBacks (0)

April 1, 2006

Obfuscated PHP fun with AZPHP

On the AZPHP list Alex Dean wanted folks to get involved in creating obfuscated PHP code and everyone trying to figure out what it does. The first example was quite easy to figure out but Alex posted one that was quite the interesting piece.

Continue reading "Obfuscated PHP fun with AZPHP" »

Posted by John C. Bland II at 11:04 AM | | Comments (0) | TrackBacks (0)

March 9, 2006

echo vs niceEcho

Since I’m in the PHP world tonight I figured I’d post one of my favorite custom functions I use in every PHP site I build.

function niceEcho($data){
 	print("
 
 <pre>" . print_r($data, true) . "</pre>
 
 ");
}

What does this do? It prints anything you give it in a nice, vertical layout for ease of reading. It is very simple and allows you to look into arrays (of any depth), objects, etc. I love this function. :-)

To see some sample output see this post. At the bottom of the post you’ll see a nice looking array. Enjoy!

Posted by John C. Bland II at 11:41 PM | | Comments (0) | TrackBacks (0)

PHP + ODBC (specifically Access)

Let’s just face it PHP bites when it comes to ODBC. I’m just being real. With MySQL it is manageable and very usable but with ODBC it is horrible.

We have a project I’m working on which involves PHP connecting to a Microsoft Access database. I thought it was simply telling it which db file and doing normal query stuff. Well, it kinda is but in a way definitely is not. Let me list my problems.

Continue reading "PHP + ODBC (specifically Access)" »

Posted by John C. Bland II at 11:14 PM | | Comments (0) | TrackBacks (0)

March 7, 2006

Sajax 0.12 and the Admin

I just finished the admin for a client and it turned out SWEET! I wish I could open it up as is for everyone but I can’t. What I am planning on doing is duplicating it, changing graphics, and opening it up to the public for viewing/testing.

So, what makes it so sweet? Sajax! Sajax is nothing but an Ajax engine but it is very simple to implement, after you figure a couple things out. This isn’t my first stab at Ajax stuff. I did a portion of a site in Ajax for a big client about a year ago. It was quite the slick process but Sajax seems to be a bit better here. Let me go ahead and give a brief overview of how to implement Sajax (with PHP).

Continue reading "Sajax 0.12 and the Admin" »

Posted by John C. Bland II at 9:36 PM | | Comments (0) | TrackBacks (0)

Sajax 0.12 and the Admin

I just finished the admin for a client and it turned out SWEET! I wish I could open it up as is for everyone but I can’t. What I am planning on doing is duplicating it, changing graphics, and opening it up to the public for viewing/testing.

So, what makes it so sweet? Sajax! Sajax is nothing but an Ajax engine but it is very simple to implement, after you figure a couple things out. This isn’t my first stab at Ajax stuff. I did a portion of a site in Ajax for a big client about a year ago. It was quite the slick process but Sajax seems to be a bit better here. Let me go ahead and give a brief overview of how to implement Sajax (with PHP).

Continue reading "Sajax 0.12 and the Admin" »

Posted by John C. Bland II at 9:36 PM | | Comments (0) | TrackBacks (0)

January 22, 2006

Simple DOA with Base class

Recently I had to do a set of DOA’s (data access objects) for a project using PHP. Well, I started noticing the sql was the exact same except for the table name. One of my biggest peeves is having to rewrite the same code over and over and over. So, I quickly broke everything out of the DOA classes and created a Base.php class which contained several functions.

Initially, it just calls the initDB function to setup the connection and stores it in a class var. Now we are ready to query the db. The only function I was able to truly get 100% dynamic, for this app, was the get() which was merely a SELECT statement. The get() function was somewhat geared towards the app simply because it had a set WHERE statement but it can be easily changed to work as needed.

Continue reading "Simple DOA with Base class" »

Posted by John C. Bland II at 1:29 AM | | Comments (1) | TrackBacks (0)

January 21, 2006

AMFPHP 1.0

GET IT WHILE IT'S HOT! AMFPHP Official Site

AMFPHP 1.0 finally hit the chopping block in December. I've been using a AMFPHP since around the time it came out and had major issues with it but loved the fact that I could still use, what to me is, the best method for database integration in Flash. The biggest problems I had were documentation (whole site dedicated to it now), debugging error messages (these have greatly improved), and datatypes (excellent expansion in 1.0).

There is still a need for an ease of use tutorial, which I'll be doing soon for FMUG.az next week, to help the beginners learn the easy way to install and start using AMFPHP. All previous tutorials I have seen deal with installing on Apache (namely dedicated boxes) and make everything sound complicated. Well, it only takes 2 steps to install.

If you have time come to the FMUG meeting or catch it on Breeze. I'll post more about AMFPHP as I use it.

Posted by John C. Bland II at 7:33 AM | | Comments (2) | TrackBacks (0)