Posted on Leave a comment

Take Away My Programming License!

I spent most of yesterday troubleshooting why I could not get a file to upload with a form and php. I naturally jumped to enctype and immediately confirmed it to be enctype=”multi-part/form-data” because that is usually the problem. Then I checked all the various server settings. Finally this morning I reduced the code to its simplest form to test and got a file to upload! Then I realized that enctype=”multi-part/form-data” was not correct. enctype=”multipart/form-data” is correct.

So many wasted hours!



I no longer feel so bad. I use O’Reilly’s HTML Pocket Reference to double check syntax etc and sure enough on 24 they have printed “multi-part/form-data” instead of “multipart/form-data”. Since I do file uploading so infrequently I used their reference instead of my editor’s shortcut. I still recommend the reference (if for anything, the color chart in the back is very helpful).

Posted on Leave a comment

Good Neighbors

Isn’t Desperate Housewives all about discussing your neighbors? If network television can do it so can I!

The night before last my wife and I watch a truck back into the neighbors drive or front yard. I almost went out to talk to them because the way it backed in looked like it almost hit my Jeep but got distracted. Later that night we receive a phone call but I missed the call.

Yesterday morning at 7am one of the neighbors is knocking on our door. Apparently the previous night someone stole their two large screen televisions (rented). Now this is not the first time they have had things “stolen” from their house. Once it was a jacket and video tapes or something as silly. I think once they said someone broke a window to get in.

Now one of the first things I checked when looking to buy in this location was crime rate. There is none. And none of the other neighbors have ever complained of any theft.

Last night I come home and notice that one of their cars is in the street with the engine running, no lights on and two people sitting in it. I drove past it twice to see who was in it. As I park in my driveway I notice their other car also has the engine running, no lights on and a person in it.

Conclusions?

One possibility: they stole the televisions from themselves and were worried that I saw who did it ergo the phone call and the inquisition.

Another possibility: they really were robbed (ex-boyfriend?) and were hanging out with hopes that the crooks would come back and they would take matters into their own hands.

Actions?

I called the sheriff and requested some increased patrols through the neighborhood.

Posted on Leave a comment

A New Day! Let’s start the day off with a PayPa…

A New Day!

Let’s start the day off with a PayPal donation link:

This Morning

Oops. I slept again. I had intended to get to a stopping point in my PHP coding then shift to Plumtree work and from there I was going to paint one wall and hang some lights on the tree.

Right now PHP and I aren’t getting along. I am asking nicely for PHP to upload a file from a form post and it’s rudely denying me. print_r($_FILES) after the post returns Array() despite checking server settings of file_uploads set to 1, upload_max_filesize set to 2M, and upload_tmp_dir with no value (which means it should default to /tmp and the permissions are 777).