programmer needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PornMeister
    Confirmed User
    • Aug 2001
    • 158

    #1

    programmer needed

    I need someone to do this for me:

    surfer requeste www.domain.com/document.html
    that document doesn't exist
    I then need a script to generate this file (I only need the filename requested to generate this page) and show it to the surfer if possible without sending a 404 or redirection response back to the client.

    Is that possible?

    contact me on ICQ 106077052
  • grumpy
    Too lazy to set a custom title
    • Jan 2002
    • 9870

    #2
    you need some php to create the document and a modification in your .htaccess. Will check it for you.
    Don't let greediness blur your vision | You gotta let some shit slide
    icq - 441-456-888

    Comment

    • PornMeister
      Confirmed User
      • Aug 2001
      • 158

      #3
      thanks
      the php is not a problem but I have no idea what I need to put into the .htaccess
      I thought there has to be a script that then executes the php script to generate the file.

      Any help would be appreciated

      Comment

      • G Sharp
        So Fucking Banned
        • May 2002
        • 1343

        #4
        Try http://scriptlance.com script customization for as low as $10

        Comment

        • grumpy
          Too lazy to set a custom title
          • Jan 2002
          • 9870

          #5
          I thought i had it...but cant find it, sorry.
          Don't let greediness blur your vision | You gotta let some shit slide
          icq - 441-456-888

          Comment

          • SimonBalk
            Confirmed User
            • Jul 2002
            • 197

            #6
            If it's possible, I can make it.

            I can look into it if you want. Contact me if you're interessted.

            Comment

            • PornMeister
              Confirmed User
              • Aug 2001
              • 158

              #7
              bump

              Comment

              • [Dan]
                Confirmed User
                • Oct 2001
                • 143

                #8
                Have in your .htaccess a local redirect, i.e. one that doesn't start with http:// , ex:

                ErrorDocument 404 /script.cgi

                then in script.cgi, be sure to have it output the following (at the beginning):

                Status: 200 OK\r\n
                Content-type: text/html\r\n\r\n

                Then you're all set, have your script.cgi script read the file for you and print it to the surfer.. It will avoid the 404 error returned to the surfer. The requested filename can be found in the environment variable REDIRECT_URL if I remember correctly

                Comment

                • PornMeister
                  Confirmed User
                  • Aug 2001
                  • 158

                  #9
                  do you know if that'll work with php?
                  I tried using the $_SERVER[REDIRECT_URL] variable but that is always empty

                  Comment

                  Working...