1
Reintjan
PHP help needed for block
  • 2009/4/11 0:57

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


I know that this might not be the proper place to ask but probably someone knows how to do it:

I'm using
$folder '/04';
somewhere in a block to display images from a folder in a block. Now i would like to use the current monht instead of putting in 04 myself....

anyone knows how to get the current month in this?

Thanks in advance!
Be smart, stay smart. Stay one step ahead...

2
Catzwolf
Re: PHP help needed for block
  • 2009/4/11 2:27

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


You can use date('m'); for this. Look at the php manual for more information regarding this topic.

Manual for Date

Hope that helps :)

Catz

3
Reintjan
Re: PHP help needed for block
  • 2009/4/11 3:32

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


I did check that first offcourse... Finally i found out by echoing the variable that i forgot to add a slash in the end....

Thanks for your time!
Be smart, stay smart. Stay one step ahead...

Login

Who's Online

166 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 166


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits