HomeBlogProjects

Other Blog Entries


Welcome to the new site

I finally have my site up. My old ISP treated me pretty shoddily when they dropped their prices substantially and didn't pass on the reduced rates to their existing customers. So I found a really good ISP(Digiweb) who had me up and running within a half hour of the initial contact with them.

However, they use a different control panel to what I was used to,and their servers were PHP5 enabled by default. I wanted to migrate over to PHP5 anyway, so no problem there, but I hadn't upgraded my pages and scripts to it yet. Being a natural optimist, I thought I could get it all done during a break between jobs. Epic fail!! Hubris can be a real killer sometimes.

I don't have anything in the way of private data on the site other than any email addresses that will be provided by visitors to the site,so I can talk about what I've done security wise without worrying if somebody finds a way around my efforts. I'm using SQLite databases firstly, because they're built into the PHP5 runtime, and also because of the unfussy way it does what it does.

But that does mean being extra careful about security. So first I'm putting them in a sister folder to the top level public folder that cannot be accessed directly. I'm also using a .htaccess file so they cannot be hotlinked to. SQLite also allows multiple queries within a database query string, so to stop SQL injection attacks, I'm using a strict regex to parse the query string where appropriate.

To stop spambot comments, I'm using a hidden input field with a "secret" value that gets refreshed on every access to the site. It won't stop individuals from spamming the site but then neither will captcha, so I've taken the stance of not making it hard for genuine people to comment. The comments in the database, and I have things so my admin pages show all the comments since my last visit, so it should be possible to keep control of things.

Anyway, my intention for the site is to use it as a blog to share my ideas, which won't always be about programming, and also to share my open source scripts. I've built up a lot of scripts over time and I now have them all migrated over to PHP5 where appropriate, but I'm going to release them one at a time over the next few weeks in order to avoid getting bogged down with debugging and supporting too many things at the same time.

JQuery is my library of choice, I think it's an excellent library and fully in line with my philosophy of keeping things simple, so most of my scripts will follow a functional rather than OO style of programming. I'm hoping too to start doing things with the canvas and processing.js as well, as I think the graphical web is set to explode upon us.

3 Comments

Post New Comment
Submitted by Radek on Mon 04 Jan 2010 20:38
hi

I found you website because I am looking for how to implement (jQuery) treeview into my Wordpress blog. The way how you describe the solution using accordian is very good for me. I am beginner and I really do not know how to implement such thing but with your 'how to' I do know where to place html code in my blog, where to place css code.

Could you tell me where I need to place JavaScript code?

Would you know if I can implement search function for such treeview or would standard wordpress search work?

Thank you so much

Radek

Submitted by Radek on Mon 04 Jan 2010 20:38
hi

I found you website because I am looking for how to implement (jQuery) treeview into my Wordpress blog. The way how you describe the solution using accordian is very good for me. I am beginner and I really do not know how to implement such thing but with your 'how to' I do know where to place html code in my blog, where to place css code.

Could you tell me where I need to place JavaScript code?

Would you know if I can implement search function for such treeview or would standard wordpress search work?

Thank you so much

Radek

Submitted by Radek on Mon 04 Jan 2010 20:38
hi

I found you website because I am looking for how to implement (jQuery) treeview into my Wordpress blog. The way how you describe the solution using accordian is very good for me. I am beginner and I really do not know how to implement such thing but with your 'how to' I do know where to place html code in my blog, where to place css code.

Could you tell me where I need to place JavaScript code?

Would you know if I can implement search function for such treeview or would standard wordpress search work?

Thank you so much

Radek
Add comments here
Name:
Email:
URL:
Comment:BoldItalicUnderlineCreate linkCode BlockInsert Unordered List

JQuery/PHP Website and Applications Developer, based in Ireland.
Interests: Open Source Software, Supercomputers, Financial Markets, Sport, Science, Sustainable Energy. AGW Skeptic.

follow paulhan on twitter
Help me build a supercomputer