On Fri, 21 Nov 2003, Bruce Van Allen wrote:
> Most of my web apps have 100% dynamic output, and the main way I cope
> with timeout issues is to keep things fast. It could be that my
> experience is from particular combinations of web server, web browser,
> and my scripts' operations. Or maybe I've
On 21 Nov 2003, at 22:15, Chris Nandor wrote:
At 22:01 + 2003.11.21, william ross wrote:
On 21 Nov 2003, at 20:54, Chris Nandor wrote:
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (William Ross) wrote:
In your case it looks like a broken link to libapreq. i had similar
errors with lib
On 11/21/03 Chris Devers wrote:
>On Fri, 21 Nov 2003, Bruce Van Allen wrote:
>
>> My experience across about many different commercial and institutional
>> web servers leads me to at minimum wrap up all system-related actions
>> like file ops -- before printing output. And the best approach is:
>
At 22:01 + 2003.11.21, william ross wrote:
>On 21 Nov 2003, at 20:54, Chris Nandor wrote:
>
>> In article <[EMAIL PROTECTED]>,
>> [EMAIL PROTECTED] (William Ross) wrote:
>>
>>>
>
>>> In your case it looks like a broken link to libapreq. i had similar
>>> errors with libapreq built through CPA
On 21 Nov 2003, at 20:54, Chris Nandor wrote:
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (William Ross) wrote:
In your case it looks like a broken link to libapreq. i had similar
errors with libapreq built through CPAN.pm, but I vaguely recall that
rebuilding it by hand seemed to work. I
On Fri, 21 Nov 2003, Bruce Van Allen wrote:
> My experience across about many different commercial and institutional
> web servers leads me to at minimum wrap up all system-related actions --
> like file ops -- before printing output. And the best approach is:
> output last. Otherwise, I find webs
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Chris Nandor) wrote:
> dyld: /usr/local/apache/bin/httpd Undefined symbols:
> /Users/pudge/.cpan/build/libapreq-1.3/blib/arch/auto/Apache/Request/Request.b
> undle undefined reference to _ApacheRequest
> _post_params expected to be defined in a d
Note:
I'm cc'ing this back to the list, so that
others can correct anything I get wrong :)
On Fri, 21 Nov 2003, Gohaku wrote:
> On Friday, November 21, 2003, at 09:40 AM, Chris Devers wrote:
>
> > Apache runs under, which by default is www. The easiest way to fix
> > this is
> > pro
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (William Ross) wrote:
> I've run into these. The answer has been to specify explicitly
> libraries that are normally left implicit. I found the failures odd,
> too. if a libdir is incorrect, make fails. if the directory is correct
> but the
OK, one more thing to add to the tutorial the OP just got on CGI scripting:
In the CGI execution context (webserver), it's best to put your output last. As soon
as you do this:
print "Content-type: text/html\n\n";
print "... ";
don't rely on the webserver to do much more for you
The || and or operators differ in the evaluation of their operands. It probably
doesn't matter in this particular case but don't be fooled into thinking they are the
same.
|| and && are "short circuit" operators that may not evaluate all of their operands.
Programming Perl, 3rd edition,, page 1
On Fri, 21 Nov 2003, Jeremy Mates wrote:
> * Chris Devers <[EMAIL PROTECTED]>
>
> >open(FILE,">hello.txt") || die("Cannot Open File: $!");
>
> I find '||' far less readable than 'or', and far more likely to cause
> precedence problems. Though I do write fairly () free Perl code.
Agreed, but I
I've run into these. The answer has been to specify explicitly
libraries that are normally left implicit. I found the failures odd,
too. if a libdir is incorrect, make fails. if the directory is correct
but the library is unspecified, make appears to work but all tests
fail.
(eg. to build
[Fri Nov 21 07:27:55 2003] [notice] child pid 22666 exit signal Trace/BPT
trap (5)
dyld: /usr/local/apache/bin/httpd Undefined symbols:
/Users/pudge/.cpan/build/libapreq-1.3/blib/arch/auto/Apache/Request/Request.bundle
undefined reference to _ApacheRequest
_post_params expected to be defined in a d
* Chris Devers <[EMAIL PROTECTED]>
> Putting everything together, try something like this:
>
>#!/usr/bin/perl -wT
# clean up env for taint mode
sub BEGIN {
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
$ENV{'PATH'} = '/bin:/usr/bin';
}
>use strict;
>use CGI::Carp qw[ fatalsToBrowser
On Fri, 21 Nov 2003, Gohaku wrote:
> I am trying to write to a file when running the following Perl/CGI
> script:
>
> #!/usr/bin/perl
> print "Content-type: text/html\n\n";
> print "Hi";
> open(FILE,">hello.txt") || die("Cannot Open File");
> print FILE "Hello";
The advice others have g
* Thilo Planz <[EMAIL PROTECTED]>
> - use strict
And taint mode!
perldoc perlsec
> - close the file when done
And check the exit status of the close on the written file, as that is
when you learn when the disk is full or whether subsequent processing on
the file should be avoided due to possibl
Are you sure you're using the same version of perl, with the same
@INC for both cases? It sounds to me like when it's run under
mod_perl it may be using a different DBD::mysql & client library or
something ...
Just an idea ...
At 11:55 PM -0500 11/20/03, Chris Devers wrote:
Okay, let me try a
When I tried "use CGI::Carp qw(fatalsToBrowser)
I saw the following:
Internal Server Error
What does it say in the server error log ( /private/var/log/httpd/ ) ?
And can you still run it from the command line?
How do you run it from the command line?
> perl script.cgi
or
> ./script.cgi
(The latter
I am trying to write to a file when running the following Perl/CGI
script:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hi";
open(FILE,">hello.txt") || die("Cannot Open File");
print FILE "Hello";
I have run the script from the command line and "hello.txt" does
appear but if I run
On Nov 21, 2003, at 2:03 AM, Gohaku wrote:
Hi everyone,
I am trying to write to a file when running the following Perl/CGI
script:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hi";
open(FILE,">hello.txt") || die("Cannot Open File");
print FILE "Hello";
I have run the script from t
On Nov 20, 2003, at 11:41 PM, Gohaku wrote:
When I tried "use CGI::Carp qw(fatalsToBrowser)
I saw the following:
Internal Server Error
I also ran the script from a browser as Root and I still got the same
message.
Make sure that the script is executable by the user that apache runs
as. Somethi
When I tried "use CGI::Carp qw(fatalsToBrowser)
I saw the following:
Internal Server Error
I also ran the script from a browser as Root and I still got the same
message.
On Friday, November 21, 2003, at 02:21 AM, Thilo Planz wrote:
use CGI::Carp qw(fatalsToBrowser)
Hi everyone,
I am trying to write to a file when running the following Perl/CGI
script:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hi";
open(FILE,">hello.txt") || die("Cannot Open File");
print FILE "Hello";
I have run the script from the command line and "hello.txt" does appear
24 matches
Mail list logo