I’ve lost count of the number of times i’ve seen this bit of HTML / PHP:
There are 25 posts filed in PHP (this is page 4 of 5).
I’ve lost count of the number of times i’ve seen this bit of HTML / PHP:
Sound like a right pain in the arse? It’s surprisingly simple actually….
The steps to creating a simple locally run php Coda plugin:
You must have php installed and running locally.
Start the plugin file with theses lines:
#!/usr/bin/php -q
(no space between < and ?php) Where /use/bin/php is the path to you local php install Continue reading
Facebook have a beta feature on their platform api called Preload FQL. It allows you to specify an FQL call to take place before the request for the page is made from your servers. This could save a full round trip of api request if you’re clever about it.
Well the wiki article is quite large but misses a few points I thought it worth noting…
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 [ _ ]
Occasionally working with SQL databases (not my beloved MySQL) I always struggled getting the number of rows in a consistant manner.
Until now…