Category: PHP

Ajax Frame Work 0

Ajax Frame Work

XAJAX – Creating ajax application using php open source library Download : xajaxproject.org Tutorials :  http://phpro.org/tutorials/Introduction-To-Xajax.html

SMTP authentication in PHP Mail Function 0

SMTP authentication in PHP Mail Function

Mail sending from PHP mail function is now restricted to local email address only. you need to add “-f return_email_address” as 5th parameter in mail function to get php to set the correct return...

Date calculation Difference  based on current date 2

Date calculation Difference based on current date

function findDaysDiff(selectDate){ SDate = selectDate.split(“/”); var days = 0; var difference = 0; var today = new Date() ; var entryDate = new Date(SDate[2],SDate[1]-1,SDate[0]); difference = entryDate – today; days = Math.round(difference/(1000*60*60*24)); return days;...

Multiple selection list Insertion 1

Multiple selection list Insertion

<select name=’selExpType[]’ id=’selExpType[]’ multiple=”multiple” size=’4′ ><option></option></select>$catIdA = $p[‘selExpType’]; $catIds = “”; if ( $catIdA ){ foreach ($catIdA as $catId) { $catIds.=”$catId,”; } } NB:-The output will be “$catIds} = the values are concatnated with...

For getting Server Address 0

For getting Server Address

$host  = $_SERVER[‘HTTP_HOST’]; $INSTALLATION_PATH = dirname($_SERVER[‘SCRIPT_NAME’]); $ROOT_PATH    =    “http://” . $host . $INSTALLATION_PATH;