Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

PHP Calendar functions

Options
  • 30-10-2001 1:00pm
    #1
    Registered Users Posts: 14,148 ✭✭✭✭


    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