JavaScr*pt to read file from external server...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sly_RJ
    Live Hard - Die Hard
    • Feb 2002
    • 17042

    #1

    JavaScr*pt to read file from external server...

    I'm running an ad campaign with a couple different people right now, but the problem is I want to test out a couple different ads to see what works the best. If all of the sites were on the same server, I obviously could do a simple PHP include. But, since these servers belong to different companies, etc, the simple PHP include that I know wouldn't be able to work.

    So basically I want to have a file on my server. This file will be basic text and I'll be able to change the ad/links whenever I please. I want to give a simple JavaScr*pt code to the people I'm advertising with so that they can paste it onto their page and be done with it. The code then calls the file on my server, prints it out, and bam we're done.

    Anybody have code that does this or know of another easier way to go about doing this?
    PHAT SERVERS - Quality dedicated hosting at a quality price!
    sly AT phatservers DOT com - 147479144
  • just a punk
    So fuckin' bored
    • Jun 2003
    • 32385

    #2
    See this example:
    http://www.maturedesign.com/junk/client.html
    Obey the Cowgod

    Comment

    • gornyhuy
      Chafed.
      • May 2002
      • 18041

      #3
      sly if you don't get any good solutions, hit me up tonight or tomorrow and I'll get it done for you.

      icq:159548293

      Comment

      • just a punk
        So fuckin' bored
        • Jun 2003
        • 32385

        #4
        Forgot to make a note... You may put "yourscript.js" wherever you want (say www.yourdomain.com/yourscript.js). Just don't forget to change its URL in client.html. That's it. Hit me on ICQ (166924423) if you need any further comments
        Obey the Cowgod

        Comment

        • jovigirl
          Confirmed User
          • Apr 2003
          • 1796

          #5
          sly, just install phpadsnew on your server
          and give the remote invocation code to the final users
          ICQ :333-548-380

          Comment

          • Sly_RJ
            Live Hard - Die Hard
            • Feb 2002
            • 17042

            #6
            Originally posted by cyberxxx
            See this example:
            http://www.maturedesign.com/junk/client.html
            I can't get this working. I switched it to a txt file instead of js and still nothing. Would really like to get this working tonight, it's pretty important...
            PHAT SERVERS - Quality dedicated hosting at a quality price!
            sly AT phatservers DOT com - 147479144

            Comment

            • Sly_RJ
              Live Hard - Die Hard
              • Feb 2002
              • 17042

              #7
              Here's my attempt: http://stroke-jobs.com/campaign/
              PHAT SERVERS - Quality dedicated hosting at a quality price!
              sly AT phatservers DOT com - 147479144

              Comment

              • The Truth Hurts
                Zph7YXfjMhg
                • Nov 2002
                • 15748

                #8
                Originally posted by Sly_RJ
                Here's my attempt: http://stroke-jobs.com/campaign/
                in yours, you're trying to execute a non-existant function.

                Comment

                • Sly_RJ
                  Live Hard - Die Hard
                  • Feb 2002
                  • 17042

                  #9
                  Originally posted by The Truth Hurts


                  in yours, you're trying to execute a non-existant function.
                  I thought so! All I did was copy the page. Does anyone have a function written to do this?
                  PHAT SERVERS - Quality dedicated hosting at a quality price!
                  sly AT phatservers DOT com - 147479144

                  Comment

                  • The Truth Hurts
                    Zph7YXfjMhg
                    • Nov 2002
                    • 15748

                    #10
                    Originally posted by Sly_RJ

                    I thought so! All I did was copy the page. Does anyone have a function written to do this?

                    http://www.sexbytes.net/test.html

                    like that?

                    icq me, i'll help you out.

                    617 1320

                    Comment

                    • Ash@phpFX
                      Confirmed User
                      • Nov 2003
                      • 4292

                      #11
                      have you thought about using an hahahahahaha? i hate using hahahahahahahahahaha so that would be my solution

                      Comment

                      • rowan
                        Too lazy to set a custom title
                        • Mar 2002
                        • 17393

                        #12
                        Originally posted by asher
                        have you thought about using an hahahahahaha? i hate using hahahahahahahahahaha so that would be my solution
                        My guess...

                        if<b></b>rame and jav<b></b>asc<b></b>ript ?

                        Comment

                        • psyko514
                          See sig. Join Epic Cash.
                          • Oct 2002
                          • 22366

                          #13
                          Originally posted by rowan


                          My guess...

                          if<b></b>rame and jav<b></b>asc<b></b>ript ?

                          yep. an ifr<i></i>ame would be pretty easy to use.

                          Bad Girl Bucks
                          - 50% Revshare through CCBill.
                          Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

                          Phoenix Forum Pics | Webmaster Access Montreal pics
                          email: psyko514(a)gmail.com | icq: 214-702-014

                          Comment

                          • Ash@phpFX
                            Confirmed User
                            • Nov 2003
                            • 4292

                            #14
                            Originally posted by rowan


                            My guess...

                            if<b></b>rame and jav<b></b>asc<b></b>ript ?
                            yes, didnt even think about the damn filters

                            Comment

                            Working...