Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

PHP Calendar functions

  • 30-10-2001 01:00PM
    #1
    Registered Users, Registered Users 2, Paid Member Posts: 14,174 ✭✭✭✭


    Hey folks. I'm having a slight problem with calendar functions under PHP4

    In particular the jddayofweek() & jdmonthname() functions as stated under the PHP documentation.

    Taking jddayofweek() as my problem arguement, the documentation states:

    JDDayOfWeek -- Returns the day of the week
    Description

    mixed jddayofweek (int julianday, int mode)

    Returns the day of the week. Can return a string or an int depending on the mode.
    etc etc etc


    Firstly, whenever I try to run the php script, I get the following error:

    Fatal error: Call to undefined function: jddayofweek()


    Secondly, the first parameter passed into the function is confusing the HELL out of me. I can find no reference to it anywhere. what is the significance of said integer. The "mode" integer variable is explained in the documentation for the function but not the "julianday" one.

    Any help would be greatly appreciated boys n'girls :)


Advertisement