problems DB_File

J

john.swilting

i resumed the example of the book cgi perl
I try to make him(it) walk
I do not understand why that walks(works) not
I throw(launch) it since the line of command(order)
The base of donnees does not exist

help help help
i am french
help help help
 
J

J. Gleixner

john.swilting said:
i resumed the example of the book cgi perl
I try to make him(it) walk
I do not understand why that walks(works) not
I throw(launch) it since the line of command(order)
The base of donnees does not exist

help help help
i am french
help help help

Can't help with that.

Likely that the UID running the Web server process can't
write that file. Try something in /tmp.

perldoc DB_File
"See "Locking: The Trouble with fd" for an explanation for why you
should not use "fd" to lock your database."

$count{$url} = 0 unless exists $count{$url};
my $num_hits = ++$count{$url};
untie %count;
close DBM;
print p("visiteurs",tt(escapeHTML($num_hits)));
close DBM; Ahhh.. it's already closed.
} else {
print p("[Error processing counter data]");

The error message should be in $!.

print p("[Error processing counter data: $!]");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DB_File tie error 7
DB_File 1
problem using both Memoize::Expire and DB_File 2
Problem using DB_File 5
Can't solve problems! please Help 0
tie() with DB_File not tie()ing ? 23
help me problems cgi 2
Bonjour 0

Members online

Forum statistics

Threads
474,290
Messages
2,571,453
Members
48,131
Latest member
AntoniaSep

Latest Threads

Top