GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   C Programmers - I Have a quick question (https://gfy.com/showthread.php?t=238854)

JDog 02-18-2004 05:11 PM

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

liquidmoe 02-18-2004 05:18 PM

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 :thumbsup

Lane 02-18-2004 05:20 PM

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

ref = get_env("HTTP_REFERER");

Juicy D. Links 02-18-2004 05:21 PM

Q Factor = cock* length

divided by

c to the second plus 5

JDog 02-18-2004 05:22 PM

Quote:

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

Lane 02-18-2004 05:22 PM

Quote:

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.


All times are GMT -7. The time now is 11:02 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123