rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: raybob on September 21, 2013, 03:23:52 PM
-
I still have a desperate request I've been wanting for a while. I haven't worked on FHFS at all in a long time but I see now why I stopped!
It would be great if you could make it so that regular variables could be used under [server start] in hfs.events even though they're not tied to a connection.
THANKS! :)
-
"regular" vars live inside the connection.
Why do you need them?
A possible way is to put them in a temporary enviroment that's lost at every execution. I mean, of the single [section]
-
I need them because I have a very large chunk of code that is impractical to rewrite.
I don't quite understand your solution, can you elaborate?
-
Would that work if variables are lost as I said?
-
Well yeah, I wouldn't need to keep the variables after the script is complete. But when does that ever happen?
Also I didn't understand what you were saying I should do.
-
But when does that ever happen?
what?
Also I didn't understand what you were saying I should do.
you? nothing.
to get it working with current version you should prefix every variable with a #
I'm about to leave for a month, and I doubt i will get it done before i leave.
NY, not very far from you, isn't it? :)
-
Yeah I'm in NY.
I already use #variables like that but I was looking for a way around it.
-
So what's the conclusion, can you make it so that regular variables can be used under [start] and [stop] ?
-
i can try, but as i told you, i'm not home and don't have the stuff with me to work on it.
-
Okay. It's not high priority, I was just wondering :)
-
If you can't do the above, it would also be helpful if you could make a way to unset all global variables after a script has finished. Could be useful :)
-
it's not that. I didn't work on it, i wasn't home for a month. Came back a week ago.
-
ok, available in #286
-
Yay! :D
-
tdv moved to http://www.rejetto.com/forum/hfs-~-http-file-server/loading-file-list/