Posts Tagged with localhost

 | Sep 18, 2011

Until now I've been using subdirectories in the main web directory for the various web projects - like http://localhost/projectone and http://localhost/projecttwo - or I simply renamed the main directory every time I switched project.

While that works, it is clunky and tedious and error-prone. And there are some things in webprogramming which does not work on 'localhost', like cookie validation. It also makes it impossible to have sitespecific sessions.

What I really want is http://one.projects and http://two.projects.

I've known about virtual hosts in Apache for some time, but I've kept putting it off because I thought it would be difficult. But it turned out to be simple enough. Wink

Read the rest of this entry

Comments Comments (2)  | Last updated on Oct 3, 2011
 | Dec 20, 2010

A week ago I spent two hours (maybe even three!) implementing email notification of comments.

It didn't take long to hook up the Yii Mail extension and maybe an hour to figure out the logic behind the task, but no matter what I did, it refused to send emails.

For longer than I would admit openly I used the log, the php die command, echo and print - nothing..

I felt more and more incompetent, and nearly gave up on it, when suddenly one line in my configuration caught my eye.

Read the rest of this entry

Comments  | Last updated on Oct 1, 2011