When I start code from command line it works perfectly on the both computers.
Any ideas?
open TEST, c:/gateway/rus/17.shtml;
open TEST, c:/gateway/rus/17.shtml or
die Can't read 17.shtml because of $!;
Cornelius Kuschnereit wrote:
opendir( DIR, $directory );
opendir( DIR, $directory ) or die "Can't read $directory because of $!";
Cornelius Kuschnereit wrote:
@dirs = readdir( DIR );
foreach $dir (sort @dirs) {
next unless -d "directory/$dir";
print "file: $dir\n";
}
Bakki Kudva wrote:
Just look at the sports teams. You couldn't have a team called the
Washington Kikes or the Washington Micks. But yet you can have the
Washington Redskins and this Indian with a big nose and big lips running
around. How would you feel if it was the Washington Rabbis and you
Paul wrote:
--- Robert Landrum [EMAIL PROTECTED] wrote:
I could be wrong, but as I recall, when your program enters a scope,
perl immediatly identifies the the scratchpad to use. Then, it need
only search backwards up the tree of scratchpads to find the variable
"$x", which is faster
Adi Fairbank wrote:
Yeah, I was thinking about something like that at first, but I've never played
with named pipes, and it didn't sound too safe after reading the perlipc man
page. What do you use, Perl open() calls, IPC::Open2/3, IPC::ChildSafe, or
IPC:ChildSafe is a good module, I use it
Terry Newnham wrote:
I've found out how to edit httpd.conf so that it will rotate the error
and access logs. But you have to restart apache to read that which I'd
rather not do. Is there a command-line use or the rotatelogs by means of
which you can rotate the logs on the fly ?
On log
[EMAIL PROTECTED] wrote:
Does any body have an idea how to access MSsql server using DBI or
other method.
I've to build an application and I don't want to go to IIS so is
there any way to work with Apache+Modperl in gnu-Linux and querying
a NT box running MSsql.
Hi,
I have a bit offtopic question: we have a problem enabling
the PHP safe mode under Solaris 2.6 even though it works
under Linux. This must be something very simple: everything
works fine, but the uid for files is always 1 under Solaris...
I tried looking into the source code, but haven't
Sorry! It was a FAQ from
http://perl.apache.org/guide/debug.html#gdb_says_there_are_no_debugging_
However I couldn't find
IFLAGS_PROGRAM = -m 755 -s
or just " -s" anywhere in ~/src/apache_1.3.14/Makefile.tmpl so I had to
edit the Makefile. (Stas, don't you want to correct The Guide
Andres Pedrera wrote:
I need to make a file based parser that rightly run with mod_perl (think
it's a generic perl trouble, but I want ensure it works with mod_perl). What
I really need, is a parser which get parsing rules from an external file.
Parse::RecDescent maybe - it is very
John D Groenveld wrote:
No, I know how to use the modules in my home dir well enough.
I don't see where you set PREFIX=/home/eedalf/lib/perl per perlfaq8. Are
you sure you read it?
John, you are very correct - thanks! I was in fact missing the PREFIX.
perl Makefile.PL
Hi,
I have read
http://perl.apache.org/guide/debug.html#Handling_the_User_pressed_Stop_
but still don't know the best solution for my problem:
I would like to port a bigger CGI-script to mod_perl.
This script uses DBD::Sybase and creates few temporary
tables (#temp1, #temp2) which are filled
Geoffrey Young wrote:
#!/usr/bin/perl
# file: hello.cgi
use CGI qw(:standard);
use strict;
I don't ever user CGI.pm, but aren't you forgetting to create a new CGI
object in here?
my $name = param('name') || 'Anonymous';
Geoff, I have another question: if you don't use
CGI.pm,
Ian Kallen wrote:
If I were you, I'd install my own perl in /home/eedalf, create
/home/eedlf/apache and then do (assuming ~/bin/perl is before
/opt/local/bin/perl in your path) something like:
Thanks, that's how I had it before - with Perl 5.6.0, Apache
1.1.3 and mod_perl 1.24 in my home
Sorry, s#1\.1\.3#1.3.13#
Hi,
I am installing Apache 1.3.14 and mod_perl 1.24_01 into
my home directory and it actually works okay, but there
is this error message, when calling "make install" in the
mod_perl source dir:
Skipping
cbell wrote:
Everytime I try to upload a file, the browser will
stall a couple of times, and the file ends up on the server as a zero
byte file.
How about:
# Upload Procedure
my $buffer;
my $inputfile = upload ('uploaded_file');
open
Perrin Harkins wrote:
I know it's not the point, but I'd consider it poor style if I saw someone
using anything other than a HERE doc for the job you're testing.
Why? With HERE you can't indent your code:
my @text = (
"!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\"\n",
"HTML\n",
Ron Beck wrote:
Since when???
I've always done...
print"end_o_doc";
form action="../scripts/pgr_req03.cgi" method="post"
...
Problems with this???
Ron
I mean indenting code, not data.
"Alexander Farber (EED)" wrote:
Why? With HERE yo
Hi,
thanks for your reply,
Stas Bekman wrote:
On Wed, 20 Dec 2000, Alexander Farber (EED) wrote:
sub mysort
{
my $param = $query - param ('sort') || 'MHO'; # XXX global $query,
# not mod_perl clean?
return $a - {$param} cmp
Hi,
http://perl.apache.org/guide/perl.html#my_Scoped_Variable_in_Nested_S
advises not to use external "my $variables"
from subroutines. I have
the following subroutine in my CGI-script, which I would like to keep
mod_perl-kosher, just in case:
Let's create a "Mod_perl League" - it gives us
at least one line on the first page of LWN.net
Hi,
I've learned to recognize your postings by
the triple ! in the subject line.
Edmar Edilton da Silva wrote:
Please, can anyone tell me what driver I can use to access the MS SQL Server
database? I am using the freetds_dbd driver, but It doesn't work properly when under
heavy
bari wrote:
i jsut wanted to know a good mailing list for perl developers.
http://listserv.ActiveState.com/pipermail/perl-win32-users/
HotMail: Bill wrote:
If I run the cgi scripts from command line they connect to the oracle
database just fine.
If I run them under the webserver (apache::registry), the cannot connect to
the database.
ORA-12054 error.
Has anyone seen this before or have an idea on how to track down the
On Sun, 22 Oct 2000, Steven Cotton wrote:
What version of Perl are you using? I had some problems with make test,
one of the tests doesn't return and I got a few munged shared memory
segment errors, I was attempting to install under Solaris 7 and Perl
5.6.0.
The messages about "munged shared
my $stuff = 'IPC::Shareable' . $ice;
- i.e. 13 chars)
Oops, sorry - I can't count on mondays!
See Perl Power Tools - http://language.perl.com/ppt/what.html
"David M. Davisson" wrote:
Yes, it works fine. No mods.
From: "David Jourard" [EMAIL PROTECTED]
Has anyone worked with the LWP module under mod_perl and have they found
that it works with no modification.
I would like to ask the same question about IPC::Shareable.
Is anybody
How do you handle uploading files when using multi-paged
forms (for example entered text and a picture are previewed
before storing into the database and special directory)?
Uploaded files can't be passed as hidden fields, right?
So do you let your users to upload the same file several
times and
Matt Sergeant wrote:
Not multiple times, but let them upload and store in a temp file, which
you can store the filename as a hidden field. Use File::MkTemp to create
the filenames.
Thanks for the advice, but doesn't File::MkTemp have a race condition?
The subroutine File::MkTemp::mktemp does
Matt Sergeant wrote:
Its only insecure if you don't use sysopen($fh, $newname, O_RDWR | O_EXCL
| O_CREAT) (and then get a new filename if that failed 'cos the file
existed).
Well, then at least the subroutines mkstempt and mkstemp are insecure,
since they call (funny, the comment below is by
http://www.performancecomputing.com/books/book_preview2_pf.htm
Kader Ben wrote:
Someone out there could tell me how can I fix the
following Apache error:
HTTP/1.1 500 Internal Server Error Date: Mon, 16 Oct
2000 15:02:20 GMT
Is there anything to see in the error_log?
I would like to write a small web chat using IPC::Shareable.
How do I find out, how much shared memory is available on some
host, esp. under Solaris and OpenBSD? I have looked at "perldoc
IPC::Shareable" and the outputs of "dmesg", "ipcs -a" and
"ulimit -a" but don't see it yet.
Also, does
Jason Bodnar wrote:
Apache::ProxyStuff is module for adding headers and
footers to content proxied from other web servers.
Looks similar to http://www.7val.de/leistungen/sevenval_fit.html
- from the guys who patented embedding session ids in domain names.
They claim, that the
Carlos Ramirez wrote:
Update your PATH evironment variable to include C:\Perl\lib
Shouldn't it be PERL5LIB instead, since PATH is responsible
for locating executables, not modules?
"siberian.org" wrote:
Can't location Cwd.pm in @INC (@INC contains C:/WINNT/system32/lib .) at
Chris Lewis wrote:
[Given that Stronghold is a bit old, I'm endeavering to build
Apache/mod_ssl/mod_perl from scratch, but it complains about not being
able to load Apache.pm... Is there a step-by-step set of Solaris
instructions somewhere?]
Maybe following helps:
Vladislav Safronov wrote:
I am going to work in a Web Company to write some mod_perl apps.
They gave me a contract (I think the terrible one) which
contains paragraph (among the others) that signs the rights to all
inventions over to them.
The same paragraph (the inventions resulted from
Doug MacEachern wrote:
modperl is the best kept secret on the net. Shame!
seems to generate plenty of list traffic for a "secret" ;)
Don't you all think, that mod_perl isn't promoted enough and
this will kill it someday, despite its technical goodness?
- There are no articles in the
http://www.activestate.com/Products/ActivePerl/docs/lib/Pod/perlport.html#item_flock
flock FILEHANDLE,OPERATION
Not implemented (Mac OS, VMS, RISC OS, VOS).
Available only on Windows NT (not on Windows 95). (Win32)
and there is also this note in the same document:
Ime Smits wrote:
Below is a sample of the headers it returns. Any ideas? Anything that is
communicated without me seeing it?
8 Content-Length: 294
and here for the same image, but as a normal static file fron disk:
8 Content-Length: 327
How come that the sizes are different?
[EMAIL PROTECTED] wrote:
it finishes. So the "use DBI" is working, but the httpd deamon dies
anyway, but only when "use DBI" is present.
Maybe you have to specify the path to Perl modules by setting
the PERL5LIB in your httpd's environment or by using "use lib
qw (/path/to/modules)" in your
Matt Sergeant wrote:
# my @vary = $r-header_out('Vary') if $r-header_out('Vary');
# push @vary, "Accept-Encoding", "User-Agent";
I think its a mod_perl bug. There's nothing leaky in the perl here.
Isn't it the same as
"Randal L. Schwartz" wrote:
Man, if I see ONE MORE script that checks for a "legal email",
I'm gonna scream. Matter of fact, I already did. :)
I screamed when I've seen the correct version too :-) It is at
http://public.yahoo.com/~jfriedl/regex/code.html and the regex
for URL's is at
Ilya Soldatkin wrote:
I am beginner in mod_perl. I think it will be good for me to see some
mod_perl script examples. Above all I would like to see style of
programming. It will be great if these scripts work with DBI. Could you
recommend(give URL) or send me several scripts with good style
Jens-Uwe Walther wrote:
Everything works fine from the command line.
Using the apachectl in a so called "online" script doesn't start the httpd server.
Instead it notes in "error_log"
Apache.pm failed to load!.
My guess is, that when you run apachectl from the "online"
script, then
Niral Trivedi wrote:
I know that perl 5.6 does support to some extent utf8 and unicode.. but
can somebody point to me some site or resources which has examples on
that??? Because I couldn't find any useful information from the perldoc
for utf8 or perlunicode..
Hi,
I am trying to install Apache 1.3.12 and mod_perl 1.24 in my home
directory as a non-root user and probably missing something obvious:
I run "/home/eedalf/apache/bin/apachectl start" and see the message
"/home/eedalf/apache/bin/apachectl start: httpd started" but I am
unable to connect to
Sorry, I have forgotten to set PERL5LIB. After
setenv PERL5LIB /home/eedalf/lib/perl5/site_perl/5.005/sun4-solaris
everything seems to work. Can I specify this location
somewhere in httpd.conf?
51 matches
Mail list logo