When you try and use cookies in php, you can’t use dots / periods [.] in the names. So this won’t work:
$var = $_COOKIE['cookie.name.with.dots'];
You can set them with dots using Javascript, but when you go to access them, the dots magically become underscores [ _ ]
Continue Reading… »
Posted by Harry at 9:25 am on April 22nd, 2009.
Categories: PHP.
It is mentioned on the Panic site, but it took me ages to find it.
You can add bookmarks or tags to a file that will appear on Coda’s code navigator. Most of the time it’s as simple as an !
CSS:
/* !bookmark */
HTML:
<!-- !bookmark -->
Javascript:
/* !bookmark */ or // !bookmark
PHP:
/* !bookmark */ or // !bookmark
You can of course replace the word bookmark with anything you like.
For a full list:
http://www.panic.com/coda/developer/quicktip/5.php
Posted by Harry at 11:28 pm on April 16th, 2009.
Categories: apps, Mac.
Occasionally working with SQL databases (not my beloved MySQL) I always struggled getting the number of rows in a consistant manner.
Until now…
Continue Reading… »
Posted by Harry at 8:52 pm on April 8th, 2009.
Categories: PHP, SQL.
A long time ago, back when I used Firefox 1.5 the enter key stopped working in all forms. I had to use shift-enter to submit and get new lines. Back then I was a little less geeky and I just reinstalled and faced the loss of all my extension and bookmarks. Well it happened again recently, but this time with 3.0.8 and only for the Firefox search bar and I wasn’t so keen to throw in the towel this time.
Continue Reading… »
Posted by Harry at 2:52 pm on April 7th, 2009.
Categories: apps.