|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Simple Script doesn't work
Hi, I am new to coldFusion, and have been making changes to a previous programmers work.
I just created a cfm file in the same directory where other cfm files are working, but the display shows nothing of server variables (it is all shown in text). Here is the code -- what could be wrong? Code:
<html> <cfoutput> Hello world, <br> Today's date is #DateFormat(Now(), "mm/dd/yyyy")# </cfoutput> </html> Much thanks. |
|
#2
|
|||
|
|||
|
Are you saying that the code above just shows up as text in the browser when you run it? If so then the web server is not passing processing on to the CF engine. Confirm the file location, confirm the file extension, and confirm that other .cfm files work correctly.
__________________
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
|
|||
|
|||
|
That's the thing: It is a cfm file, and is at the same location as other working cfm files.
|
|
#4
|
||||
|
||||
|
Within the same <cfoutput> block, try 4 = #3+1# to see if ColdFusion is actually parsing the file.
And I'm assuming your original script doesn't create any error messages at all? |
|
#5
|
|||
|
|||
|
Well if you can confirm that the file is in the same directory as other .cfm files that do run correctly, and can also confirm that it has a .cfm extension (and not a hidden .txt extension or something else), then I have no idea what the problem could be. Try deleting the file and recreating it. Also, what happens if you edit and run one of the existing .cfm files?
|
|
#6
|
|||
|
|||
|
Well, now I know the reason that "it wasn't working."
I was trying to render it using IE off from the directory, and wasn't making a call to it through the server.... (sheesh) thanks ) |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Simple Script doesn't work |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|