Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Security with open() in CGI scripts

by brianarn (Chaplain)
on Feb 26, 2002 at 05:48 UTC ( #147489=note: print w/replies, xml ) Need Help??


in reply to Re: Security with open() in CGI scripts
in thread Security with open() in CGI scripts

Another thought on the token idea here...

I'd recommend having another file external to the script, which contains some quick perl code to create the token list, such as
my %tokens = {1 => '/dir1/', 2 => '/dir2/', 3 => '/dir3/};
<blatently stolen from Gary's reply ;)>

and then just require this file when you need to reference the token. This way, it's easy to add to the themes without having to find where it's at in some script. I'm personally all about the use of extra files for data like this - it helps keep script sizes smaller and helps to separate the code from the data.

~Brian

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://147489]
help
Chatterbox?
[Corion]: 1nickt: I imagine (heh) that Agile done somewhat right will make the process (and why we postpone things) somewhat more explicit to the outsider, or at least the "who do we ask to postpone X"
[choroba]: Corion ad functional: in Erlang, it's even more like Prolog, as its syntax is very close to Prolog's

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2017-12-11 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (290 votes). Check out past polls.

    Notices?