Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
Your profile
Tag cloud
.net .net framework 4.0 ajax asp.net asp.net mvc azure book browser browsers bug c# chrome cloud computing excel firefox google ie8 igoogle iis internet internet explorer jquery lessthandot mono mvc ria silverlight sql server 2008 video xaml
Authors
- SQLDenis (34)

- chrissie1 (30)

- thatrickguy (11)

- Alex Ullrich (9)

- ca8msm (6)

- tarwn (5)

- naomi (3)

- pmch22 (2)

- kaht (2)

- Ted Krueger (onpnt) (1)

- damber (1)

- emtucifor (1)

- More...
Main Categories
Search
Google Ads
Category: PHP
Last Friday, I got a request from one of our bloggers to have a means of getting a list of his posts. I thought that this couldn't be that hard. I was slightly wrong. First, I thought I would do it all myself and use a direct connection to the database to get the data needed. But then I looked a bit closer at b2evo (the engine we use) and saw that it already had a link called archives and I thought that it would be easier to just change that.
So first I went on the lookout for ...
I’m fairly new to the php development thing. But I’m learning fast. Of course I’m having to deal with newbie problems along the way. Today I was adding a class to my DAL. Nothing special, mainly copy paste stuff. But php wasn’t being very cooperative, it kept showing me an empty page whenever I added (require_once("filepath")) that file to my factory. Not very amusing. So after a little searching I found out that php does...
Since php supports OO I think we should follow the OO rules. SO I wrote a DAO layer like sun recommends it for it’s J2EE framework.
So lets start with the Factory. lets put it in a folder dal.
Dear PHP-God(s)(ess)(esses),
I would like to tell you a little story. Once upon a time there was a very nice programming language although they called it Basic. But Basic was not very userfriendly so they made it Visual. At the same time they added some real cool features. Features that made it a mature and responsible language. A nice language to write in. The two best features were
SET OPTION EXPLICIT ON
and
SET OPTION STRICT ON
I will not explain what they do, I know that you are very smart and that you will figure it out. So PLEASE, PLEASE, PLEAS...
I already knew it, since I helped write this site in php, but Jeff Atwood just confirms it php sucks. But these days you can also write nice OO things in php, sometimes a little clunky but still very good. In some other post I will let you see the dal I wrote for our master page, it uses a dao layer like you would write in java or .net, it even uses interfaces.
And I for one am very impressed with the speed of php, after all it is an interpreted language.
But ...


LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.