Welcome to PHP Dreams
A discussion on web development including PHP, MySQL, jQuery, MODx and whatever else comes to mind.
One of the most common tasks in programming is putting two or more bits of text together to form a single string. There are several ways you can do this, and everybody has their own preferred method. Here and there around the web I've read that style A is better than style B, etc. But what method is really the best? ...read full article >>
I recently did an import into a CubeCart store that wound up with over 109,000 products. The file from the supplier didn't include image URLs, but the images were named the same as the Product Code and in a folder named from the first two characters of that Code. So how to generate the file names? I could of course use write some custom PHP, but I like making MySQL do my dirty work. ...read full article >>
In my last post, I demonstrated timing differences between several different array loops. I was then asked by a friend how I did the testing. So in this post, I'll show you the entire test script I put together so maybe you can use the ideas on your own to do some benchmarking. ...read full article >>
If you've written much of anything in PHP, you've likely used a loop to process an array. Is there a right or wrong way to write one? Perhaps not. But is there a BEST way? It depends... ...read full article >>
If you use or administer a cPanel server, you probably know that you must be logged in to cPanel to view the output from the AWStats program. Well, if you'd like those stats to be viewed by others - like the boss, etc. - then you must grant them access. This can be VERY dangerous as you can imagine. Well I put together a handy script to show those stats without requiring they login. ...read full article >>