I have been running a public forum (no registration required) with over 50,000
visits per day. Lot of Trolls and bad / advertising posts etc from other sites
and individuals.
-> It was small initially and I used to track the IPs and ban them manually to
put them within a database and Posting s
Thanks once again.
I'm running this script on two different machines, both separate from the
machine the Database is running on.
It works on one Server and it fails on the other. I believe that, it's
trying to connect to a local database on the system it fails rather than
connecting to an extern
On Tue, 1 Nov 2005, Adedayo Adeyeye wrote:
> I'm also trying to connect to an mssql db from a cgi, and I'm getting the
> following error:
>
> Cannot connect: [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL
> Server does not exist or access denied. (SQL-08001)[Microsoft][ODBC
> SQL Server Drive
Thanks. That's cleared now.
I'm also trying to connect to an mssql db from a cgi, and I'm getting the
following error:
Cannot connect: [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does
not exist or access denied. (SQL-08001)[Microsoft][ODBC SQL Server
Driver][DBNETLIB]ConnectionOpen (C
On Tue, Nov 01, 2005 at 04:34:45PM +0100, Adedayo Adeyeye wrote:
> I'm getting an error when trying to run a script. Part of the scripts is
> my $action = param('form_action');
> if($action eq 'search');
> The error I get is:
> Use of uninitialized value in string eq at connect_rodopi.cgi line 1
Adedayo Adeyeye wrote:
Hello,
I'm getting an error when trying to run a script. Part of the scripts is
Line 10 my $action = param('form_action');
.
Line 14 Search_DB() if($action eq 'search');
The error I get is:
[Tue Nov 1 16:28:41 2005] connect_script.cgi: Use of uninitialized val
Chris Devers
<[EMAIL PROTECTED]
m>
>On Tuesday, November 01, 2005 Chris Devers wrote:
>>On Tue, 1 Nov 2005 [EMAIL PROTECTED] wrote:
>> from Perl Best Practices
>>
>> use
>>
>>my $action = param('form_action') | | q{ }
>>
>> instead of
>>
>>or ' '
>
>Good catch. Yes, that's clearer than simple apostrophes.
>
>However, yo
On Tue, 1 Nov 2005 [EMAIL PROTECTED] wrote:
> from Perl Best Practices
>
> use
>
>my $action = param('form_action') | | q{ }
>
> instead of
>
>or ' '
Good catch. Yes, that's clearer than simple apostrophes.
However, you probably didn't really mean | | over ||, right ? :-)
I still t
my $action = param('form_action') || 'any_default_value';
HTH,
Sara.
- Original Message -
From: "Chris Devers" <[EMAIL PROTECTED]>
To: "Adedayo Adeyeye" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, November 01, 2005 8:42 PM
Subject: Re: uninitialized variable
On Tue, 1 Nov 2005, Adedayo
Chris Devers
<[EMAIL PROTECTED]
m>
On Tue, 1 Nov 2005, Adedayo Adeyeye wrote:
> my $action = param('form_action');
Try setting a default value when 'form_action' isn't specified:
my $action = param('form_action') or '';
Or set it to 0, or 'do nothing' or undef, or whatever is appropriate.
--
Chris Devers
--
To unsubscri
Hello,
I'm getting an error when trying to run a script. Part of the scripts is
Line 10 my $action = param('form_action');
.
Line 14 Search_DB() if($action eq 'search');
The error I get is:
[Tue Nov 1 16:28:41 2005] connect_script.cgi: Use of uninitialized value in
string eq at connect
13 matches
Mail list logo