Webhosting in Pakistan
Results 1 to 7 of 7

Thread: Web Help Plz

  1. #1
    yahookillers is offline Senior Member+
    Last Online
    26th June 2014 @ 04:54 PM
    Join Date
    05 May 2009
    Location
    Peshawar Nwfp Pakistan
    Age
    29
    Posts
    541
    Threads
    196
    Credits
    584
    Thanked
    8

    Lightbulb Web Help Plz

    Webhosting in Pakistan



    Bahi mujeh php ka date and time ka code cahiye ... jo roz khud he automatically change ho ya jo time and date pc mein ho osse ko show karai .

  2. #2
    Zaara's Avatar
    Zaara is offline Advance Member
    Last Online
    7th May 2018 @ 10:11 PM
    Join Date
    24 Jun 2007
    Age
    31
    Gender
    Female
    Posts
    10,354
    Threads
    693
    Credits
    328
    Thanked
    1484

    Default

    I guess this one will work..

    Quick one-liner to output the current server date and time on a page.
    The code


    <?php



    /**

    * Just add this in your page where you

    * want the date/time to appear

    *

    * For more configuration options look

    * in the PHP manual at http://uk2.php.net/date

    */



    // Displays in the format Saturday, November 22, 2003 11.38

    echo date("l, F d, Y h:i" ,time());



    ?>

  3. #3
    yahookillers is offline Senior Member+
    Last Online
    26th June 2014 @ 04:54 PM
    Join Date
    05 May 2009
    Location
    Peshawar Nwfp Pakistan
    Age
    29
    Posts
    541
    Threads
    196
    Credits
    584
    Thanked
    8

    Default

    Not Working

  4. #4
    yahookillers is offline Senior Member+
    Last Online
    26th June 2014 @ 04:54 PM
    Join Date
    05 May 2009
    Location
    Peshawar Nwfp Pakistan
    Age
    29
    Posts
    541
    Threads
    196
    Credits
    584
    Thanked
    8

    Default

    ye mujeh ata tha bhol gaya ha mujeh se bht chota sa function tha aik line se bhi kam bht chota sa but bhol gaya ha

  5. #5
    Net-Rider's Avatar
    Net-Rider is offline Advance Member+
    Last Online
    18th January 2014 @ 03:34 AM
    Join Date
    09 Jun 2009
    Location
    **PAKISTAN**
    Gender
    Male
    Posts
    28,932
    Threads
    1755
    Credits
    0
    Thanked
    6986

    Default

    Quote yahookillers said: View Post
    ye mujeh ata tha bhol gaya ha mujeh se bht chota sa function tha aik line se bhi kam bht chota sa but bhol gaya ha
    السلام علیکم ورحمتہ اللہ وبرکاتہ
    کہیں وہ یہ تو نہیں مکمل اسکرپٹ کےلئے
    نیچے فائل ڈائون لوڈ کرلیجئے گا شکریہ
    Code:
    <?php include('includetime.inc.php'); ?>
    Attached Files Attached Files

  6. #6
    Zeeshanef's Avatar
    Zeeshanef is offline Advance Member
    Last Online
    17th April 2019 @ 05:38 PM
    Join Date
    30 Mar 2006
    Location
    Great Pakistan
    Gender
    Male
    Posts
    831
    Threads
    12
    Credits
    638
    Thanked
    45

    Default

    PHP server side scripting language he, chunke iska code server per parse hota he is lye he time bhi server computer ka show karega, for example agar aap ka server USA mein he to wo php ka date&time function visitor ko USA ka data & time show karega.

    Code:
    <?php
     	$dateFormat="d-m-Y h:i A";
    	$TimeDate=date($dateFormat, time());
    	echo $TimeDate;
     ?>
    lekin aap ko wo time show karna he joke ke visitor ke computer mein ho to iske lye aap kisi client side scripting language ka code use karain jasay java script.

  7. #7
    umair8005's Avatar
    umair8005 is offline Advance Member
    Last Online
    8th April 2019 @ 04:06 PM
    Join Date
    24 Sep 2006
    Location
    ~~ SOME 1 HEART ~~
    Posts
    8,820
    Threads
    326
    Credits
    0
    Thanked
    457

    Default

    Webhosting in Pakistan
    time server ka show kre ga......client k pass jo tym hoga wo show nhi hoga...

    <?php

    print date('D, d M Y H:i:s:a');

    ?>

Bookmarks

Posting Permissions

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