Click here to Skip to main content
12,350,443 members (26,767 online)

Linux, Apache, MySQL, PHP

 
AnswerRe: PHP, MySQL and Apache Pin
ronakT26-Jan-13 5:32
memberronakT26-Jan-13 5: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 22:22
memberaa_zz4-Nov-12 22:22 
Questionhelp for smtp and ssl Pin
b-moumen17-Oct-12 7:53
memberb-moumen17-Oct-12 7:53 
Questionhow to get date difference Pin
Member 915215629-Sep-12 1:13
memberMember 915215629-Sep-12 1:13 
AnswerRe: how to get date difference Pin
Peter_in_278029-Sep-12 2:09
memberPeter_in_278029-Sep-12 2:09 
GeneralRe: how to get date difference Pin
Member 915215629-Sep-12 2:12
memberMember 915215629-Sep-12 2:12 
GeneralRe: how to get date difference Pin
Peter_in_278029-Sep-12 2:22
memberPeter_in_278029-Sep-12 2:22 
AnswerRe: how to get date difference Pin
Deepthi.214564-Oct-12 20:11
memberDeepthi.214564-Oct-12 20:11 
<?php
$date1 = "2012-10-04 22:45:00";
$date2 = "2013-12-05 13:44:01";
$diff = abs(strtotime($date2) - strtotime($date1));
$years = floor($diff / (365*60*60*24));
$months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24));
$days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24));
$hours = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24 - $days*60*60*24)/ (60*60));
$minuts = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24 - $days*60*60*24 - $hours*60*60)/ 60);
$seconds = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24 - $days*60*60*24 - $hours*60*60 - $minuts*60));
printf("%d years, %d months, %d days, %d hours, %d minuts\n, %d seconds\n", $years, $months, $days, $hours, $minuts, $seconds);
die;
?>

AnswerRe: how to get date difference Pin
Anilannu6-Oct-12 6:30
memberAnilannu6-Oct-12 6:30 
AnswerRe: how to get date difference Pin
Mohibur Rashid9-Oct-12 21:25
memberMohibur Rashid9-Oct-12 21:25 
QuestionHosting PHP application locally Pin
awedaonline20-Sep-12 5:24
memberawedaonline20-Sep-12 5:24 
AnswerRe: Hosting PHP application locally Pin
Mohibur Rashid22-Sep-12 3:13
memberMohibur Rashid22-Sep-12 3:13 
GeneralRe: Hosting PHP application locally Pin
awedaonline23-Sep-12 21:19
memberawedaonline23-Sep-12 21:19 
AnswerRe: Hosting PHP application locally Pin
maba0018-Oct-12 19:14
membermaba0018-Oct-12 19:14 
Questionlearn php Pin
Stephan A.18-Sep-12 0:50
memberStephan A.18-Sep-12 0:50 
AnswerRe: learn php Pin
Richard MacCutchan18-Sep-12 1:50
mvpRichard MacCutchan18-Sep-12 1:50 
GeneralRe: learn php Pin
Stephan A.18-Sep-12 13:46
memberStephan A.18-Sep-12 13:46 
GeneralRe: learn php Pin
Richard MacCutchan18-Sep-12 21:32
mvpRichard MacCutchan18-Sep-12 21:32 
GeneralRe: learn php Pin
Andrei Straut18-Sep-12 22:29
memberAndrei Straut18-Sep-12 22:29 
GeneralRe: learn php Pin
Richard MacCutchan18-Sep-12 22:46
mvpRichard MacCutchan18-Sep-12 22:46 
JokeRe: learn php Pin
Andrei Straut18-Sep-12 22:48
memberAndrei Straut18-Sep-12 22:48 
GeneralRe: learn php Pin
Richard MacCutchan18-Sep-12 22:53
mvpRichard MacCutchan18-Sep-12 22:53 
GeneralRe: learn php Pin
Stephan A.19-Sep-12 2:40
memberStephan A.19-Sep-12 2:40 
GeneralRe: learn php Pin
Richard A. Abbott19-Sep-12 2:50
memberRichard A. Abbott19-Sep-12 2:50 
GeneralRe: learn php Pin
Stephan A.19-Sep-12 3:08
memberStephan A.19-Sep-12 3:08 

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.160621.1 | Last Updated 31 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid