|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
|
Thread Tools | Display Modes |
|
|||
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); } |
|
|||
Quote:
|
|
|||
Yeah, apparently it's not set. I can use request_uri instead. It's a shared host so I only have access to htaccess. Does that mean I can't set it? I mean get path_info to show? Can I use env?
Last edited by drhowarddrfine; 8th May 2008 at 05:46 PM. |
|
|||
Try it & find out.
|
|
|||
And work at it? You want me to think?!!!
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mod_rewrite and path_info problem | drhowarddrfine | General software and network | 1 | 7th May 2008 04:25 PM |