Tuesday 29 March 2011

Know the status of your email in php

This is my requesting php file

This is my response php file


Thursday 17 March 2011

CRON Path and settings in server


@minute - * * * * *


And paths that you need to try

/web/cgi-bin/php5 "$HOME/html/public_html/my.php"

php /home/*******/public_html/my.php

/home/*******/public_html

/web/cgi-bin/php5 -q /home/*******/public_html/my.php

/web/cgi-bin/php5 -q /home/*******/public_html/my.php

/web/cgi-bin/php5 $HOME/html/home/*******/public_html/html/my.php

/web/cgi-bin/php5 “$HOME/*******/public_html/my.php?

------------------------------------------------------------------------------
/usr/bin/php /home/*******/public_html/my.php
-----------------------------------------------------------------------------

Monday 7 March 2011

Creating multiple like in a dynamic php page

Creating multiple like in a dynamic php page

1) Create the FB like code

2) Two formats

<.script src="http://connect.facebook.net/en_US/all.js#xfbml=1"><.fb:like href="http://*****/fb_like.php" show_faces="true" width="450" font="verdana">

<.iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2F*******%2F******%2Ffb_like.php&layout=standard&show_faces=true&width=450&action=like&font=verdana&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true">

3) I just used the first method

<.script src="http://connect.facebook.net/en_US/all.js#xfbml=1">

<.fb:like href="http://*****/fb_like.php?id=1" show_faces="true" width="450" font="verdana">

<.fb:like href="http://*****/fb_like.php?id=2" show_faces="true" width="450" font="verdana">

<.fb:like href="http://*****/fb_like.php?id=3" show_faces="true" width="450" font="verdana">

<.fb:like href="http://*****/fb_like.php?id=4" show_faces="true" width="450" font="verdana">



=========================

the above one is a XFBML (script code) that is non iframe code

Tuesday 1 March 2011

group by order by

select * from ".DB_table." Where id IS NOT NULL GROUP BY blog_date ORDER BY id DESC