WordPress.org

Ready to get started?Download WordPress

Forums

PHP specific question. (8 posts)

  1. khaled
    Member
    Posted 9 years ago #

    I'm using the smart archives plugin, just wondering how I'd convert the following code, which shows the short version of the months, to the standard mode that shows the long version of the months. This is the part of the code in question:

    $sm = date("M", StrToTime("$date[month]/01/2001")); // get the shortened month name
    $pd = sprintf("%02s", $date[month]); // pad the month with a zero if needed
    echo('<a href="'.$archive_uri.$year.'/'.$pd.'/">'.$sm.'</a> '."n");

  2. ifelse
    Member
    Posted 9 years ago #

    Via http://uk2.php.net/date, change "M" to "F"

  3. khaled
    Member
    Posted 9 years ago #

    Any good PHP book recommendations. Something for the beginner that also takes you further,..damn I feel sheeepish :)

  4. ifelse
    Member
    Posted 9 years ago #

    Not sure about an introductory book unfortunately:-( I tend to learn by doing (i.e. jumping straight in). A good thing to do is set up a little sandbox environment and just play around.

    The web (esp. php.net) is actually a fantastic resource and one I use more than books. Kinda like web design really... Bowman, Meyer et al are better resources than any book:-)

    Now if you were asking about Java or Oracle books, I have a few recommendations...

  5. ifelse
    Member
    Posted 9 years ago #

    BTW, if anybody does have a good book, please comment here. I'm sure we'll all want to know...

  6. Kafkaesqui

    Posted 9 years ago #

    Certainly a lot to choose from:

    http://www.php.net/books.php

  7. khaled
    Member
    Posted 9 years ago #

    Yeah but which one :). I'll give you a hint about me, I'm addicted to books. Soooo if someone would actually recommend one that's good, and why, a little bit of searching for a review or two, and chances are I'll probably end up buying it tonight :)...seriously.

  8. Kafkaesqui

    Posted 9 years ago #

    The last PHP book I read was in 1998, hence the lack of pointers to a good one. But I'm sure someone has come across a helpful one recently...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.