how to javascript php file

Discussion in 'JavaScript' started by David Holland, Dec 11, 2010.

  1. #1
    how do javascript my php file so i can put the java script code on my site and it will show
     
    David Holland, Dec 11, 2010 IP
  2. natsu90

    natsu90 Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    u can use externel javascript file to use on your php and say like this on the php,
    
    echo "<script type='text/javascript' src='javascript.js'></script>";
    PHP:
     
    natsu90, Dec 11, 2010 IP
  3. lojadeluxo

    lojadeluxo Well-Known Member

    Messages:
    1,080
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    130
    #3
    or you can use like this.


    <script type="text/javascript">
    _uff = 0;
    _udn = "www.examplesite.com";
    _uacct = "Example Script";
    urchinTracker();
    </script>
     
    lojadeluxo, Dec 11, 2010 IP
  4. pandit12

    pandit12 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    JavaScript and PHP may each bring great potential to any Web development effort, but they don't always play nice together....
     
    pandit12, Dec 29, 2010 IP