C Programmers - I Have a quick question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JDog
    Confirmed User
    • Feb 2003
    • 7453

    #1

    C Programmers - I Have a quick question

    Alright, I've done, C programming, just never for the web! I have a question about getting a varible into the c script! How can I get the HTTP_REFERER varible in a c script?

    jDoG
    NSCash now powering ReelProfits.com
    ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
    PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
    NOW OFFERING OVER 60 SITES
    CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)
  • liquidmoe
    Confirmed User
    • Mar 2002
    • 4994

    #2
    Depending on what you are coding I would say make it into an apache module, then use the Apache API and you will have access to that and plenty more. Plus you wont have to worry about memory management or memory leaks. Hit me up on icq at 36837470 if you need some other help.

    Coding apache modules is fun

    Take Luck!

    Comment

    • Lane
      Will code for food...
      • Apr 2001
      • 8496

      #3
      // declare the string as a pointer, not to cause a memory leak
      str * ref;

      ref = get_env("HTTP_REFERER");

      Comment

      • juicylinks
        So Fucking Banned
        • Apr 2001
        • 122992

        #4
        Q Factor = cock* length

        divided by

        c to the second plus 5

        Comment

        • JDog
          Confirmed User
          • Feb 2003
          • 7453

          #5
          Originally posted by Lane
          str * ref;

          ref = get_env('HTTP_REFERER');
          Cool,

          Thanks Lane, I figured you would reply! First time I've ever made a C program for the web, so it's a tad different, but not much! Just didn't know how to get the damn env varibles!

          Thanks again!

          jDoG
          NSCash now powering ReelProfits.com
          ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
          PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
          NOW OFFERING OVER 60 SITES
          CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)

          Comment

          • Lane
            Will code for food...
            • Apr 2001
            • 8496

            #6
            Originally posted by JDog


            Cool,

            Thanks Lane, I figured you would reply! First time I've ever made a C program for the web, so it's a tad different, but not much! Just didn't know how to get the damn env varibles!

            Thanks again!

            jDoG

            no problem.. note i made a small edit to my post.

            Comment

            Working...