Alternatives to Alfresco Share for Building Generic Forms

Alfresco introduced Share, it’s own collaboration portal based on Spring Surf technology and they have a pretty good idea to reduce the coding effort for building forms for your custom data types. It is called Forms Engine. Here we will point out some alternatives to Alfresco Share. The following diagram pretty much explains the whole idea. You have services on Alfresco side that can return metadata about a particular node for form creation, persist the…

"Alternatives to Alfresco Share for Building Generic Forms"

10 Easy Steps to Create Bootable USB Flash Drive

Steps to Create Bootable USB The process of creating a windows 7 USB flash drive is fairly easy, however you will have to download a copy of ISO file.Once you have downloaded an ISO file, you can then follow the instructions provided below to create a Bootable windows 7 USB flash drive. To create a USB Drive as Bootable manually,you need to open a Command Prompt(cmd).For creating a bootable USB drive as a Windows installation media,…

"10 Easy Steps to Create Bootable USB Flash Drive"

Show recent viewed product list on website in php

I am writing down the code to show the recent viewed product on the e-commerce websites. if(!$_COOKIE[‘recentviews’]){ setcookie(‘recentviews’,$_GET[‘pid’],time()+86400); }else{ $cArray=explode(“,”,$_COOKIE[‘recentviews’]); if(!in_array($_GET[‘pid’],$cArray)){ setcookie(‘recentviews’,$_COOKIE[‘recentviews’].”,”.$_GET[‘pid’], time()+86400); } } ?> Note:before using $_COOKIE start the session ie write down the session_start() on the top of the page. $query=”select * from product where id in(“.$_COOKIE[‘recentviews’].”) AND id!=’”.$_GET[‘id’].”‘”; Explanation: Suppose i am on the page with url like http://www.example.com?productdetail.php&id=32 where 32 is the id of the product i am viewing. We…

"Show recent viewed product list on website in php"

PHP Functions every PHP Developer Should Know

One thing which I like the most about the PHP is its inbuild/pre-defined functions. If you are coming from C/C++ background. Then you will start loving the gift of PHP functions. For Eg. array_sum() . you don’t have to write a logic for iterating through all the array and add their values. PHP has a pre-defind function which do the same job for you. 1) explode() : it converts a string into array with the supplied…

"PHP Functions every PHP Developer Should Know"

Complete Cheatsheet of Mod_rewrite

Below is the Complete Cheatsheet of Mod_rewrite Download mod_rewrite Cheat Sheet [.pdf] RewriteRule Flags C Chained with next rule CO=cookie Set specified cookie E=var:-value Set enviro-nmental variable “var” to “value” F Forbidden (403 header) G Gone – no longer exists H=handler Set handler L Last – stop processing rules N Next – continue processing NC Case insens-itive NE Do not escape output NS Ignore if subrequest P Proxy PT Pass through R[=code] Redirect to new…

"Complete Cheatsheet of Mod_rewrite"