View Single Post
  #1   (View Single Post)  
Old 8th May 2008
drhowarddrfine drhowarddrfine is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 377
Default Can't get PATH_INFO using getenv()

I'm running a small C test app that just prints out environment variables. It prints out REMOTE_ADDR but PATH_INFO is null and PATH_TRANSLATED is empty. Essentially, this is all it is.

#include <stdlib.h>
#include <stdio.h>

int main(void){
char* status;

status=getenv("PATH_INFO");
printf("%s",status);
}
Reply With Quote