1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

external javascript and php file

Discussion in 'PHP' started by tamil2006, Jun 8, 2011.

  1. #1
    so i have this external php and java script file
    and i have this code in my mediwiki template which allows html code inserts
    SEMrush
    im trying to assign the clienthostname2 from the external php file to the javascript function.. its not working...
     
    tamil2006, Jun 8, 2011 IP
    SEMrush
  2. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #2
    I think you can get away with renaming ip.php - ip.js
     
    MyVodaFone, Jun 8, 2011 IP
  3. tamil2006

    tamil2006 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    it wouldnt work because variable used in that are php
     
    tamil2006, Jun 8, 2011 IP
  4. webdesignbarrie

    webdesignbarrie Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    why do they have to be in separate scripts?
     
    webdesignbarrie, Jun 9, 2011 IP
  5. The Webby

    The Webby Peon

    Messages:
    1,852
    Likes Received:
    30
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Use functions, pass the hostname as parameter to function.
     
    The Webby, Jun 11, 2011 IP
  6. darbetim

    darbetim Member

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #6
    php cannot run in client like javascript
     
    darbetim, Jun 11, 2011 IP