ODBiC Discussion Board


Dynamic directories for $createfile() and $renamefile() ??

by David Richardson, November 29, 2004 06:00

I'm trying to create files in directories which exist but which will change, so I need to enter the directory name as a variable. However, I just can't get it to work.

For instance, this code works:

<% SET thisfile=$renamefile($tempfile$,/MY_DIRECTORY/tempfile.csv) %>

but this code doesn't:

<% SET thisfile=$renamefile($tempfile$,/$directory_name$/tempfile.csv) %>

And the same is true for the create file function.

Is this some kind of security measure, or is it a bug, or am I getting it wrong (probably the most likely!)

Dave


Replies:


Post Your Reply:

Name   
E-mail  optional
Topic  
Message:

HTTP Link: 
Link text: 

          


Copyright ©1997-2003, Roger Harris. All rights reserved.