Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Web Developer

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.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

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

Your profile

Search

XML Feeds

Google Ads

Category: PHP

comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

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 ...

Read More...
comments

PHP: Writing a DAL the DAO way part 2

by chrissie1 on Jun 21, 2008 in categories PHP
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

Part one of this series.

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...

Read More...
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

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.

php Sample Code (See Article for Rest)
Read More...
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

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...

Read More...
comments

Php sucks

by chrissie1 on May 21, 2008 in categories Server Programming, PHP
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

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 ...

Read More...