This worked for me.
#!/usr/bin/perl -w
use strict;
use CGI;
my $cgi = new CGI;
print $cgi->header(-title=>'Hi there');
print $cgi->h3('What\'s up');
print qq(\n);
my $status = 0;
my $i = 0;
for($i=0; $i<3; $i++) {
if($status) {
error($status);
}
$status++;
}
sub error {
print $cgi->p
What are the permissions set to? Have you chmod'd to 755 (-r-x)? Permission
will be denied unless the script is set to executable.
How can we verify that your content headers are perfect unless you post the
code? You tell us not to worry about the path and ask us to figure out what
could be wrong,
Hi all,
Been banging my head on this, I'm obviously missing something obvious,
but I can't see what. Would someone put me out of my misery?
My code checks the value of a variable $status. $status can have three
values, 0,1,2. 0 is good, 1 and 2 are errors. So;
use strict;
if ($status) {
Hi.
Okay, I have been over my script about a hundred times, and all my syntax is perfect.
However, when I view my page on the net, I get this:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to
complete your request.
Please contact the server a
Seems like the same results would be achieved by not opening it at all
the first time through.
You're right, I commented out the extra
slurpage, moved close(OUT) and close(IN)
and it still worked.
So basically you have a very elaborate and expensive no-op.
Story
Scot Robnett wrote:
This accomplishes what I want it to, but it's ugly. Any ideas on how I can
achieve the same result without opening and closing the OUT file twice? I'll
have to open it yet again to populate a DB column with the stripped HTML,
and it just seems like I've got WAY too much file act
This accomplishes what I want it to, but it's ugly. Any ideas on how I can
achieve the same result without opening and closing the OUT file twice? I'll
have to open it yet again to populate a DB column with the stripped HTML,
and it just seems like I've got WAY too much file activity happening here