Archive for May, 2009
Static pages – Adjusting the page title in cakePHP
on May 22, 2009
If you’re using the pages controller and you need to change the page title, add the following to your view: <? $this->pageTitle = ‘Title of your page.’; ?>
CURL PHP wrapper for https results
on May 8, 2009
If you want to write a sort of php wrapper to include the results of another http(s) request maybe pointing to a totally different site or just different code (mod_perl with HTML::Mason, in my case) into a php based layout, and just pass-thru all GET and POST variables to the sub-request, the following snippet can be used. Note there is no error handling, …
Please make the Security Level for Session ‘medium’ or ‘low’. Because ‘high’ Session timeout will break sessions of cakePHP in very short time. Have look at the following code. APP -> CONFIG -> CORE.PHP // Access the following code in APP -> CONFIG -> CORE.PHP * ‘high’ Session timeout in ‘Session.timeout’ x 10 * ‘medium’ Session timeout in ‘Session.timeout’ x 100 * ‘low’ …
CURL URLS with a get variable
on May 2, 2009
I had the following experience when harvesting urls with a get variable from a page using cUrl. HTML pages will output ampersands as & when the page is read by the curl function. If you code a script to find all hyperlinks, it will use & instead of &, especially using a regular expression search. It is hard to detect because when you …

