Looking for a script that....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Oracle Porn
    Affiliate
    • Oct 2002
    • 24433

    #1

    Looking for a script that....

    I'm looking for a simple script....
    http://www.mydomain.com/index.html?code123

    I want to be able to insert a code on top of every page on my domain using a question mark or something like that....

    a little custom script i might guess, well if any programers thing they can do that icq me pleaase


  • dij
    Confirmed User
    • May 2003
    • 2163

    #2
    Not Found

    The requested URL /index.html was not found on this server.
    Apache Server at www.mydomain.com Port 80

    Comment

    • RobbieRye
      Registered User
      • Oct 2005
      • 616

      #3
      Originally posted by Oracle Porn
      I'm looking for a simple script....
      http://www.mydomain.com/index.html?code123

      I want to be able to insert a code on top of every page on my domain using a question mark or something like that....

      a little custom script i might guess, well if any programers thing they can do that icq me pleaase
      The Apache webserver can do this efficiently using mod-rewrite.

      Past that though, I guess you just need a search-and-replace script that will locate maybe the <body> tag and insert your line below there?

      Comment

      • ssp
        Confirmed User
        • Jan 2005
        • 7990

        #4
        Allow .html documents to be read as .php documents in Apache and you're set. There is no need for any kind of script.

        Although I wouldn't suggest you do anything because you seem quite clueless. And it's generally not a good idea to amend Apache when you're clueless.

        Comment

        • SmokeyTheBear
          ►SouthOfHeaven
          • Jun 2004
          • 28609

          #5
          Your not going to be able to do it without first modifying each of those pages..
          hatisblack at yahoo.com

          Comment

          • Oracle Porn
            Affiliate
            • Oct 2002
            • 24433

            #6
            Originally posted by ssp
            Allow .html documents to be read as .php documents in Apache and you're set. There is no need for any kind of script.

            Although I wouldn't suggest you do anything because you seem quite clueless. And it's generally not a good idea to amend Apache when you're clueless.

            yes im clueless about hosting tech shit you got me...


            Comment

            • Oracle Porn
              Affiliate
              • Oct 2002
              • 24433

              #7
              Originally posted by SmokeyTheBear
              Your not going to be able to do it without first modifying each of those pages..
              i can do it also if i upload
              <script>
              then #include virtual= with shtml.....

              but thats a tons of work uploading it to every folder


              Comment

              • sfera
                Confirmed User
                • Aug 2005
                • 8597

                #8
                im getting 404 bro

                Comment

                • Tom_PM
                  Porn Meister
                  • Feb 2005
                  • 16443

                  #9
                  I dont think I understand the request.

                  "on top of every page"? You want to open, write to, and save every ".html" file on your server?

                  Or want to be able to link from pages on your domain, to other pages on your domain and use a query string to track clicks or something?
                  43-922-863 Shut up and play your guitar.

                  Comment

                  • Oracle Porn
                    Affiliate
                    • Oct 2002
                    • 24433

                    #10
                    What im trying to do here is this...

                    I have a shitloads of galleries on my server, and i want to add different recips to those galleries....its quite a headache to do that when you have 4000 different galleries per domain times 6-7 domains....

                    anyway i need a solution


                    Comment

                    • SmokeyTheBear
                      ►SouthOfHeaven
                      • Jun 2004
                      • 28609

                      #11
                      Originally posted by Oracle Porn
                      What im trying to do here is this...

                      I have a shitloads of galleries on my server, and i want to add different recips to those galleries....its quite a headache to do that when you have 4000 different galleries per domain times 6-7 domains....

                      anyway i need a solution

                      Your going to have to modify each document..I dont think theres any way around that.. you could use a site wide find and replace.

                      Another thing you could do is like this

                      http://YOURSERVER.COM/gallfinder.php.../gallery1.html

                      then just call the galleries from within the gallfinder.php page..

                      so like..

                      <template body>
                      - insert gallery here
                      </body >
                      hatisblack at yahoo.com

                      Comment

                      • Tom_PM
                        Porn Meister
                        • Feb 2005
                        • 16443

                        #12
                        Yeah, you need a list of files to be updated, a common marker in each file where the insertion will go, write permissions on all of the files..
                        Once you have that, it's easy, lol.
                        43-922-863 Shut up and play your guitar.

                        Comment

                        • Oracle Porn
                          Affiliate
                          • Oct 2002
                          • 24433

                          #13
                          Originally posted by SmokeyTheBear
                          Your going to have to modify each document..I dont think theres any way around that.. you could use a site wide find and replace.

                          Another thing you could do is like this

                          http://YOURSERVER.COM/gallfinder.php.../gallery1.html

                          then just call the galleries from within the gallfinder.php page..

                          so like..

                          <template body>
                          - insert gallery here
                          </body >
                          tgps defenetly won't approve that....
                          thats why I was thinking myserver.com/gallery.html?recip123
                          anyone else with a possible solution?


                          Comment

                          • Oracle Porn
                            Affiliate
                            • Oct 2002
                            • 24433

                            #14
                            Originally posted by PR_Tom
                            Yeah, you need a list of files to be updated, a common marker in each file where the insertion will go, write permissions on all of the files..
                            Once you have that, it's easy, lol.


                            Comment

                            Working...