Click here to Skip to main content
12,696,493 members (30,535 online)

Linux, Apache, MySQL, PHP

 
AnswerRe: PHP, MySQL and Apache Pin
Ngobi Arthur 20135-Jan-13 9:52
groupNgobi Arthur 20135-Jan-13 9:52 
AnswerRe: PHP, MySQL and Apache Pin
vbmike14-Dec-12 5:37
membervbmike14-Dec-12 5:37 
AnswerRe: PHP, MySQL and Apache Pin
Manish Choudhary .NET expert14-Dec-12 19:45
memberManish Choudhary .NET expert14-Dec-12 19:45 
GeneralRe: PHP, MySQL and Apache Pin
S.M. Zamshed Farhan12-Jan-13 4:02
memberS.M. Zamshed Farhan12-Jan-13 4:02 
AnswerRe: PHP, MySQL and Apache Pin
ronakT26-Jan-13 6:32
memberronakT26-Jan-13 6:32 
Questioncan not get data from url when use method post paramater using php. because page use token. please me Pin
aa_zz4-Nov-12 23:22
memberaa_zz4-Nov-12 23:22 
Questionhelp for smtp and ssl Pin
b-moumen17-Oct-12 8:53
memberb-moumen17-Oct-12 8:53 
Questionhow to get date difference Pin
Member 915215629-Sep-12 2:13
memberMember 915215629-Sep-12 2:13 
AnswerRe: how to get date difference Pin
Peter_in_278029-Sep-12 3:09
memberPeter_in_278029-Sep-12 3:09 
GeneralRe: how to get date difference Pin
Member 915215629-Sep-12 3:12
memberMember 915215629-Sep-12 3:12 
GeneralRe: how to get date difference Pin
Peter_in_278029-Sep-12 3:22
memberPeter_in_278029-Sep-12 3:22 
AnswerRe: how to get date difference Pin
Deepthi.214564-Oct-12 21:11
memberDeepthi.214564-Oct-12 21:11 
AnswerRe: how to get date difference Pin
Anilannu6-Oct-12 7:30
memberAnilannu6-Oct-12 7:30 
AnswerRe: how to get date difference Pin
Mohibur Rashid9-Oct-12 22:25
memberMohibur Rashid9-Oct-12 22:25 
If you searched on google you would find 1000's of solutions. this is copied from PHP site

<?php
$td = time_diff($timestamp1-$timestamp2); // has to be a positive result
$td .= ($td=="now")? "":" ago"; // in this example "ago"
echo $td;

function time_diff($s){
   
    $time = get_post_time('G', true, $post);
    $s = time() - $time;

    if($s>=1) {
    $td = "$s sec";
    }  

    if($s>59) {
        $m = (int)($s/60);
        $s = $s-($m*60); // sec left over
        $td = "$m min"; if($s>1) $td .="s";
    }
    if($m>59){
        $hr = (int)($m/60);
        $m = $m-($hr*60); // min left over
        $td = "$hr hr"; if($hr>1) $td .= "s";
        if($m>0) $td .= ", $m min";
    }
    if($hr>23){
        $d = (int)($hr/24);
        $hr = $hr-($d*24); // hr left over
        $td = "$d day"; if($d>1) $td .= "s";
        if($d<3){
            if($hr>0) $td .= ", $hr hr"; if($hr>1) $td .= "s";
        }
    }
    return $td;
}
?>

I wish I could believe there is an after life.

QuestionHosting PHP application locally Pin
awedaonline20-Sep-12 6:24
memberawedaonline20-Sep-12 6:24 
AnswerRe: Hosting PHP application locally Pin
Mohibur Rashid22-Sep-12 4:13
memberMohibur Rashid22-Sep-12 4:13 
GeneralRe: Hosting PHP application locally Pin
awedaonline23-Sep-12 22:19
memberawedaonline23-Sep-12 22:19 
AnswerRe: Hosting PHP application locally Pin
maba0018-Oct-12 20:14
membermaba0018-Oct-12 20:14 
Questionlearn php Pin
Stephan A.18-Sep-12 1:50
memberStephan A.18-Sep-12 1:50 
AnswerRe: learn php Pin
Richard MacCutchan18-Sep-12 2:50
mvpRichard MacCutchan18-Sep-12 2:50 
GeneralRe: learn php Pin
Stephan A.18-Sep-12 14:46
memberStephan A.18-Sep-12 14:46 
GeneralRe: learn php Pin
Richard MacCutchan18-Sep-12 22:32
mvpRichard MacCutchan18-Sep-12 22:32 
GeneralRe: learn php Pin
Andrei Straut18-Sep-12 23:29
memberAndrei Straut18-Sep-12 23:29 
GeneralRe: learn php Pin
Richard MacCutchan18-Sep-12 23:46
mvpRichard MacCutchan18-Sep-12 23:46 
JokeRe: learn php Pin
Andrei Straut18-Sep-12 23:48
memberAndrei Straut18-Sep-12 23:48 
GeneralRe: learn php Pin
Richard MacCutchan18-Sep-12 23:53
mvpRichard MacCutchan18-Sep-12 23:53 
GeneralRe: learn php Pin
Stephan A.19-Sep-12 3:40
memberStephan A.19-Sep-12 3:40 
GeneralRe: learn php Pin
Richard A. Abbott19-Sep-12 3:50
memberRichard A. Abbott19-Sep-12 3:50 
GeneralRe: learn php Pin
Stephan A.19-Sep-12 4:08
memberStephan A.19-Sep-12 4:08 
GeneralRe: learn php Pin
Richard A. Abbott19-Sep-12 4:20
memberRichard A. Abbott19-Sep-12 4:20 
GeneralRe: learn php Pin
Richard MacCutchan19-Sep-12 4:55
mvpRichard MacCutchan19-Sep-12 4:55 
GeneralRe: learn php Pin
Wamuti27-Sep-12 6:08
memberWamuti27-Sep-12 6:08 
JokeRe: learn php Pin
Richard A. Abbott27-Sep-12 6:18
memberRichard A. Abbott27-Sep-12 6:18 
GeneralRe: learn php Pin
Andrei Straut19-Sep-12 4:12
memberAndrei Straut19-Sep-12 4:12 
GeneralRe: learn php Pin
Richard MacCutchan19-Sep-12 4:53
mvpRichard MacCutchan19-Sep-12 4:53 
GeneralRe: learn php Pin
Stephan A.19-Sep-12 7:59
memberStephan A.19-Sep-12 7:59 
GeneralRe: learn php Pin
Richard MacCutchan19-Sep-12 9:22
mvpRichard MacCutchan19-Sep-12 9:22 
GeneralRe: learn php Pin
crayben12-Nov-12 23:44
membercrayben12-Nov-12 23:44 
AnswerRe: learn php Pin
Mohibur Rashid18-Sep-12 16:08
memberMohibur Rashid18-Sep-12 16:08 
AnswerRe: learn php Pin
Wamuti27-Sep-12 6:11
memberWamuti27-Sep-12 6:11 
GeneralRe: learn php Pin
Richard MacCutchan27-Sep-12 6:41
mvpRichard MacCutchan27-Sep-12 6:41 
AnswerRe: learn php Pin
ProgramFOX5-Oct-12 6:40
memberProgramFOX5-Oct-12 6:40 
Questionhow to implemet a php code on server side? Pin
erroloz28-Jul-12 9:21
membererroloz28-Jul-12 9:21 
AnswerRe: how to implemet a php code on server side? Pin
enhzflep28-Jul-12 9:32
memberenhzflep28-Jul-12 9:32 
GeneralRe: how to implemet a php code on server side? Pin
erroloz28-Jul-12 9:37
membererroloz28-Jul-12 9:37 
GeneralRe: how to implemet a php code on server side? Pin
enhzflep28-Jul-12 9:49
memberenhzflep28-Jul-12 9:49 
GeneralRe: how to implemet a php code on server side? Pin
erroloz28-Jul-12 9:58
membererroloz28-Jul-12 9:58 
GeneralRe: how to implemet a php code on server side? Pin
enhzflep28-Jul-12 10:17
memberenhzflep28-Jul-12 10:17 
GeneralRe: how to implemet a php code on server side? Pin
erroloz28-Jul-12 10:27
membererroloz28-Jul-12 10:27 
GeneralRe: how to implemet a php code on server side? Pin
enhzflep28-Jul-12 10:48
memberenhzflep28-Jul-12 10:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.170118.1 | Last Updated 17 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid