Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Php tutorials

  1. #1
    New Coder
    Join Date
    Sep 2003
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Php tutorials

    Here:
    http://www.acecoolco.com/tutorials.php

    If you want to request a tutorial, guests can post in the forum section titled: Tutorial requests

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Sheffield, UK
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I love the night time bit in the top left, but how accurate is it? PHP has no way of getting the User's time, and as far as i can see thats not done with JS...

    (ps. tutorials look pretty good too - reading...)
    "To be successful in IT you don't need to know everything - just where to find it in under 30 seconds"

    (Me Me Me Me Me Me Me Me Me)

  • #3
    New Coder
    Join Date
    Sep 2003
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, its done with Css, Php, and the server clock.

    It also gets the days and then yeah, try visiting on the 24th, and 25th during day and night :-)


    Basically If the time is xx_xx (24 hour clock) if after and before x, then use day, same with night, then for the added holidays It checks for the day etc..

    Its GMT +1 (Server time.)

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Sheffield, UK
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not doubting the accurayc of your actual script, but i was meaning relative to the user, I'm on GMT so it's an hour ahead of me, but if anyone form the US visits then it'll be waay off.

    And if you were being really pedantic then you'd have to worry about the sunrise and sunset times as well
    "To be successful in IT you don't need to know everything - just where to find it in under 30 seconds"

    (Me Me Me Me Me Me Me Me Me)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •