Search found 3 matches
- Fri Mar 04, 2005 8:23 am
- Forum: PHP - Code
- Topic: Calculate previous and next date from a variable
- Replies: 4
- Views: 312
This may not be the best coding... I'm new at this...
I found a solution... If this is a bad way to solve the problem please post back a better example. Thanks, Lou $PreviousDay = date("Y-m-d",mktime(0,0,0,date("m",strtotime($CurrentTime)) ,date("d",strtotime($CurrentTime))-1,date("Y",strtotime($CurrentTime))));
- Fri Mar 04, 2005 8:02 am
- Forum: PHP - Code
- Topic: Calculate previous and next date from a variable
- Replies: 4
- Views: 312
Calculate previous and next date from a variable
Hello, I need some help determining the next and previous dates from a variable. So far this is what I have tried but it keeps returning 1970-01-01 $PreviousDay = date("Y-m-d",mktime(0,0,0,date("m",$CurrentTime) ,date("d",$CurrentTime)-1,date("Y",$CurrentTime)...
- Mon Dec 15, 2003 10:09 am
- Forum: Miscellaneous
- Topic: $HTTP_REFERER problem
- Replies: 3
- Views: 1739
$HTTP_REFERER problem
I'm having trouble with the $HTTP_REFERER variable. I don't want to execute the contained code (update counter) if the person is browsing from a certain page. Can someone tell me why my if statement allows the contained code to run? Thanks Lou <?PHP if($HTTP_REFERER != "www.mydomain.com/index.p...