Need help with php with java ...

Discussion in 'PHP' started by DjZoC, Jun 5, 2010.

  1. #1
    hello there, hope someone can help me with this ...

    i will just show the code what im tryng to do ...

    <?php
    
     $url = "http://www.website.com/?millis='+new Date().getTime()+'";
    
     echo $url; (here to give me like http://www.website.com/?milis=31236128763)
    
    ?>
    PHP:
    is anyway to i can add the javascript there ? i really need this hope someone can help me ...

    or

    $url = <script src="http://www.website.com/url.js"></script> ;
    
    echo $url; (to show me just the link from url.js ...
    
    PHP:
     
    DjZoC, Jun 5, 2010 IP
  2. Scripts man

    Scripts man Guest

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    maybe you can use the php to do '+new Date().getTime()+
    use php functions
     
    Scripts man, Jun 5, 2010 IP
  3. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #3
    ^^ need not javascript to do this because php can
    
    <?php
    
     $url = "http://www.website.com/?millis=" . microtime(true) * 1000;
    
     echo $url; //(here to give me like http://www.website.com/?milis=31236128763)
    
    ?>
    
    PHP:
     
    Last edited: Jun 5, 2010
    gapz101, Jun 5, 2010 IP
  4. Scripts man

    Scripts man Guest

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i mean that too
     
    Scripts man, Jun 5, 2010 IP