Off the Top: PHP Entries
Showing posts: 16-30 of 36 total posts
Code PHP efficiently
Code PHP efficiently, from evolt.PHP and MySQL for managing images on the Web
Managing Images With a Web Database Application with PHP and MySQL and nothing up the sleeves. The folks from O'Reilly Net offer this one, which is not in the Web Database Applications with PHP and MySQL. The book is one of my favorite information application development books at the moment for a variety of reasons: ease of coding principles, explaining application development, explaination, then using what is learned and implementing it.Need to get your hands on OS X packages. I have found this page many times and now mabye I can find it on a regular basis.
So you want to build your own weblog tool like the one here? Start with PHP and MySQL with a little Apache and a sprinkling of arrays and script code. Yes, this is basically what is under this puppy.
PHP with Java tutorial over at Dev Shed. Why not JSP? PHP is quicker to write and quicker to run.
Not that I personally need this at the end of the month, but Joao Prado Maia writes about Improving Performance by Profiling PHP Applications (benchmarking PHP) on O'Reilly Net. The article shows us how to place scripts within our scripts that allow us to capture times so to know where we could spend our time focussing on making PHP run more quickly.
PHP has a security hole that warrants a patch/upgrade ASAP. Hopefully you are running PHP on server with a recent version of Apache so that it is built in using Apache's dynamic modules. This will make the upgrade a breeze. Fortunately my Web host had upgraded this server to PHP 4.1.2 prior to the news coming out. My host? PHP Web Hosting.
The solution to the = in the link is to use  in its place. This may require a solid tweak to my home-rolled weblog application so to sniff, parse, and replace the symbol prior to inserting into the database.
Arg, running into issues in links when the link has an equal sign followed by a number or two (") does not look like (=22). This will take some playing around as I am using the "quoted_printable_decode" in php to print things properly.
Kevin Fox adds New to You functionality to his site. This is the best idea I have run across in a while. It is a great idea that beats the problems I find on sites I frequent often. It also seems to cover the territory between visited links and not providing them. [hat tip Dinah]
Matt makes observations of the state of severs and scripting deployments. I agree with nearly all of what Matt point out. Some of the reasoning behind the varying set-ups is for security reason's, others are to mirror configurations on other servers that had slightly different purposes. In all, what this needs is a solid documentation tool. PHP provides some of this with a function that prints out the build of the server that script resides on, this is usually the first task many of us perform on a machine. This however, is just the tip of the iceberg of the information we need.
This is part of the second and fourth element of the cornerstones of information application development (info apps need to be usable, maintainable, reliable, and repeatable). If a task is difficult to maintain and even harder to repeat there is some work that needs to be done to change the environment or the application.
There is nothing like starting the New Year coding a time rollover code to pull the current information out of your weblog. This means I now have fully functioning code for month and year change overs in my personally built weblog tool. This also means I still love PHP more than any other scritping/Web coding language.
It is getting to be time to pull the code out of the PHP templates and make it more modular/object based. The site is built on a handful of templates that reuse about 75% of the same code to build the pages. From this stage it is time to pull out classes and functions and have each page point to the proper elements. This enables me (or who everelse is getting this code) to be able to make modifications in one place rather than many.
Why modular/object-based? This is how the world works. This is how things are done efficiently. This is the non-foolish way of building applications. (Looks like I am starting this year on a testy note).
one.point.zero has integrated some very nice design elements into the site. It is nice to read that it is build using PHP scripts, but that is not important, the ease of reading and using the elements around the site make it worthy of examination. The site cleanly integrates some ideas that I have had on my to do list, like the calendar. This sets a nice high benchmark for personal sites. Bravo. [hat tip Jeffery]
Those looking for a good overview of PHP should head to Webmonkey's PHP from the Ground Up article. This will give you enough information to make you dangerous or at least give you an idea of how to make the Web a better place. [hat tip Charles Johnson at LGF]
« Previous | 1 2 3 | Next »