Hello everyone, first post!
Well, after a year and a half indulging in PHP & Flash my perl has gotten rusty.
Anyway, I have 2 problems
1. On a unix system how do I set permissions so that a script can only be executed by the server but still print output to the browser?
Basically I want the server to be able to call a page (with variables intact) and print output to the browser but I dont want users to be able to call the page directly since when it is executed it performs routines that without the adequate input can throw off the whole program. Please help before I pull my hair out!!!!
2. I want to set a cookie and then immediately jump to a new page but am having some problems with formatting the header. Any suggestions on how I can combine the following code into 1 header function?:
##################code starts here#############
my $cookie1 = cookie(-name => 'admin',
-value => 'true');
print header(-cookie => $cookie1);
print "Location:../admin/brycePrint.cgi\n\n";
################# ends here ##################
Again, any help would be appreciated. Im overloaded w/ stuff to do right now and am becoming frustrated trying to track down the answers to these little problems! God bless he/she who can lend a hand!