-
Recent Posts
Recent Comments
Archives
Categories
Meta
Monthly Archives: March 2011
Background Image to the bottom of a page
html { min-height: 100%; height: auto; } body { background:url(/images/bg-image.jpg) right bottom no-repeat; }
Browsers View for Sites
http://browsersize.googlelabs.com/
XML over POST with php
$ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_URL, “http://websiteURL”); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, “XML=”.$xmlcontent.”&password=”.$password.”&etc=etc”); $content=curl_exec($ch);
List all hooked functions
10. List All Hooked Functions The problem. When things go wrong, listing all hooked functions can be very useful for debugging. The solution. As with the others, this code has to be pasted in your functions.php file. When you have … Continue reading
MySQL Remove whitespace
update your_table set your_field = trim(your_field)
Create joomla 1.5 admin
This is something I do often enough to not want to google it .. Step 1 Create the new Joomla! User REPLACE INTO `jos_users` (`id`, `name`, `username`, `email`, `password`, `usertype`, `block`, `sendEmail`, `gid`, `registerDate`, `lastvisitDate`, `activation`, `params`) VALUES (’60′, ‘Admin2′, … Continue reading

