rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: raybob on September 21, 2013, 03:23:52 PM

Title: Requests
Post 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!  :)
Title: Re: Requests
Post by: rejetto on September 25, 2013, 11:33:54 PM
"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]
Title: Re: Requests
Post by: raybob on September 26, 2013, 03:39:47 AM
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?
Title: Re: Requests
Post by: rejetto on September 26, 2013, 09:08:25 AM
Would that work if variables are lost as I said?
Title: Re: Requests
Post by: raybob on September 26, 2013, 02:42:25 PM
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.
Title: Re: Requests
Post by: rejetto on September 27, 2013, 02:46:10 PM
But when does that ever happen? 

what?

Quote
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? :)
Title: Re: Requests
Post by: raybob on October 02, 2013, 01:47:13 AM
Yeah I'm in NY.

I already use #variables like that but I was looking for a way around it.
Title: Re: Requests
Post by: raybob on October 12, 2013, 03:25:37 AM
So what's the conclusion, can you make it so that regular variables can be used under [start] and [stop] ?
Title: Re: Requests
Post by: rejetto on October 15, 2013, 01:36:53 AM
i can try, but as i told you, i'm not home and don't have the stuff with me to work on it.
Title: Re: Requests
Post by: raybob on October 15, 2013, 04:46:19 AM
Okay.  It's not high priority, I was just wondering  :)
Title: Re: Requests
Post by: raybob on November 03, 2013, 03:15:43 AM
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 :)
Title: Re: Requests
Post by: rejetto on November 06, 2013, 03:26:04 PM
it's not that. I didn't work on it, i wasn't home for a month. Came back a week ago.
Title: Re: Requests
Post by: rejetto on November 13, 2013, 11:54:11 PM
ok, available in #286
Title: Re: Requests
Post by: raybob on November 14, 2013, 03:31:49 AM
Yay!   :D
Title: Re: Requests
Post by: rejetto on November 24, 2013, 03:52:04 PM
tdv moved to http://www.rejetto.com/forum/hfs-~-http-file-server/loading-file-list/