|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
CGI path variable
Looking at the CGI variable page on Macromedia it says that it's listing "common" CGI environment variables. Is there a place where I can find a "complete" list?
If no, what I'm looking for is just a path variable, but I want only the path, not the script name too. PATH_TRANSLATED has what I need, but I'm not good enough at CF to know a clever way to get rid of the script name from the end. Any help appreciated, wdn2k |
|
#2
|
|||
|
|||
|
The actual CGI variables that are available depends on the web server in use. If you do a cfdump of the cgi scope you'll see all the variables available in your particular configuration.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
||||
|
||||
|
Thanks. As it turns out there isn't a CGI variable available to suit my purpose so I put the path I need in the application.cfm so at least I only have to change it in one place.
For anyone interested, the code to dump all the CGI vars is very simple and very informative: <!--- Dump all CGI vars ---> <cfdump var="#CGI#"> |
|
#4
|
|||
|
|||
|
If you only want the path you can do #getDirectoryFromPath( getCurrentTemplatePath() )#? Is this what you needed?
Last edited by kiteless : August 17th, 2004 at 02:35 PM. |
|
#5
|
||||
|
||||
|
Quote:
Apparently I can.... Thanks I'm a PHP guy trying to get by in a CF shop. wdn2k |
|
#6
|
|||
|
|||
|
Sure thing. I think you'll find CF very easy to embrace.
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > CGI path variable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|