.htaccess

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    .htaccess

    Anyone Know How To Use A .htaccess To Change The Server's Time And Date?..

    #2
    SetEnv TZ "Europe/London"[/b]
    i think or

    SetEnv TZ GMT-1[/b]
    its one of them 2 anyway

    Comment


      #3
      Thanks Amy, i'll give them ago

      Comment


        #4
        SetEnv TZ "Europe/London" Works :-)

        Comment


          #5
          SetEnv TZ "Europe/London" Works :-)[/b]

          oh thats great . my sites been 2 hours ahead for months lmao . woo hoo thanks
          Wapchat4u


          Topsites4u

          Comment


            #6
            lol i jus click server time in my whm pmpl

            Comment


              #7
              pmpl no one has this tool but we do chris lol
              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
              Visit: WapMasterz Coming Back Soon!
              _______
              SCRIPTS FOR SALE BY SUBZERO
              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
              _______
              Info & Tips
              php.net
              w3schools.com

              Comment


                #8
                or simply just run this command as root to change the date

                date -s "day month year HH:MM:SS"

                Comment


                  #9
                  My copy and paste from: http://www.modwest.com/help/kb5-258.html

                  There are at least 2 ways to cause PHP to behave as if it was in the timezone of your choice.

                  1. Follow this other FAQ to change timezone for your entire account.

                  2. If you only want particular PHP scripts (and not shell or other cgi scripts) to use a specific timezone, set the timezone environmental variable in your PHP code like so:
                  Code:
                  <?
                  echo "Original Time: ". date("h:i:s")."\n";
                  putenv("TZ=US/Eastern");
                  echo "New Time: ". date("h:i:s")."\n"; 
                  ?>
                  If you put the line putenv("TZ=US/Eastern"); in a file that is
                  include()&#39;ed by all your other PHP scripts, then all your PHP scripts will use that timezone.

                  A list of timezones to choose from, other than "US/Eastern" for your putenv() is here:

                  http://www.theprojects.org/dev/zone.txt
                  Advertise your mobile site for FREE with AdTwirl

                  Comment


                    #10
                    thank you GumSlone

                    helpful thingy
                    It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                    ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                    ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                    キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                    Comment


                      #11
                      thanks :-)

                      Comment


                        #12
                        thanks amylee it works




                        Comment

                        Working...
                        X