Re: redirection from a page not found error

2002-10-08 Thread WyvernGod
you would probably want to do that in the .htaccess file in a root directory... there is some documentation if you search google.com for ..htaccess custom error message -- Dra'Kon "Humans are poor excuses for eons of monkey inbreeding." -Chris Marlor

Re: Using a variable name to invoke a subroutine

2002-09-24 Thread WyvernGod
here is two examples of that work for me require "pl/require.pl"; $functiontocall ='RequireAll'; $functiontocall->(); -- - my $alias = "home|SplitInput,LoadVariables,DirectUser,"; my ($name, $subs) = split(/\|/, $al

Re: Is it legal ???

2002-08-19 Thread WyvernGod
In a message dated 8/19/2002 3:25:35 PM US Eastern Standard Time, [EMAIL PROTECTED] writes: > Hi all, I am trying to declare some variables and was wondering what the > best way to do this was. Is it legal to do something like this: > my (@pairs, $ENV, $buffer); > The reason I ask is that I am

Re: CGI script problem

2002-08-19 Thread WyvernGod
In a message dated 8/19/2002 10:13:16 AM US Eastern Standard Time, [EMAIL PROTECTED] writes: > http://localhost/cgi-bin/printenv.pl > oh this is a stupid problem i had aswell... an easy solution is to rename the ..pl as .cgi and then it worked fine for me.. I know.. sounds dumb but IE see's

xml and mysql question...

2002-07-16 Thread WyvernGod
Hey im thinking of doing some perl stuff with xml.. but I have no experiance in it.. a friends site offers their news links in xml format.. what I need to do is to open a connection to there site.. read that file then display it on my own site. any ideas one working with xml? Also can someon

Re: "require" returns no value ?

2002-07-13 Thread WyvernGod
and always make sure you have the 1; at the very end of the file you are requireing... ::doesn't know how many times he was up late to discover that was why it would say the file wasn't required:: Chris -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: Reading File

2002-06-24 Thread WyvernGod
could puting the entire file into an aray then i think there is a function to get the number of elements... then just use that to know what the last element would be? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

security check

2002-06-23 Thread WyvernGod
I need your guys opinion. I'm thinking of having a sub ran in every sub to check to make sure this script is being ran only through my own domain. I think this will only break down a valid referral from http://www.digital-drakon.com/*anything* . The only thing I think I need to add is to fo

GET/POST handleing

2002-06-22 Thread WyvernGod
What would be better then useing the following? I'm lookign for something better and more secure. If there is such a thing sub SplitInput{ $meth = $ENV{REQUEST_METHOD}; if ($meth eq "GET") { $formInfo = $ENV{QUERY_STRING}; } elsif ($meth eq "POST") { read(STDIN, $formInfo, $ENV{C

calling sub based on database list

2002-06-21 Thread WyvernGod
Ok, I got sorta a hard question that involves calling randomly changing subrutines. What I'm Trying to do is this. 5 libaries are required into my CGI(PERL) program Each of them has their own set of subrutines. Now when someone accesses my site they also send a page referance eg "main.cgi?pag