> 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:
> @dirs = readdir( DIR );
> foreach $dir (sort @dirs) {
next unless -d "directory/$dir";
> print "file: $dir\n";
> }
Cornelius Kuschnereit wrote:
> opendir( DIR, $directory );
opendir( DIR, $directory ) or die "Can't read $directory because of $!";
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 y
Paul wrote:
> None of this is critical for anything I'm doing right now, but I'm a
> detail hound. I want to *understand* it, so that in the future I can
> make intelligent decisions about what would be a "better" way to write
> any given algorithm, without just relying on popular wisdom and "urba
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
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 i
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 rot
[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.
http://www.xray.mpe.mpg.
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 on
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 fo
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
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 us
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 wit
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 APACHE_PREFIX=/h
Hi,
I have read http://perl.apache.org/guide/porting.html and
am still reading the Eagle book... How do you run this
example script?
1) Just calling http://localhost:8080/cgi-bin/file_upload.pl gives:
[Thu Jan 4 10:45:44 2001] [notice] Apache/1.3.14 (Unix) mod_perl/1.24_01 configured
-- resu
Sorry, s#1\.1\.3#1.3.13#
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 hom
John D Groenveld wrote:
> Does "How do I keep my own module/library directory?" from perlfaq8 apply?
No, I know how to use the modules in my home dir well enough.
What I am trying to complain here is, that you can not cleanly
install Apache + mod_perl into your home dir when using system-wide
pe
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
/opt/local/perl-5.6.0/lib/site_perl/5.6.0/sun4-solaris/auto/Apache/include/include/http_pro
Ron Beck wrote:
>
> Since when???
>
> I've always done...
> print<<"end_o_doc";
>
...
> Problems with this???
> Ron
I mean indenting code, not data.
> "Alexander Farber (EED)" wrote:
> > Why? With < >
> >
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 <\n",
"\n",
" \n",
"\n",
" Test page\n",
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 (OUTFILE,">$ENV{DOCUMENT_ROO
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,
> >
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 worklo
Stas Bekman wrote:
> Our book's site is modperlbook.org... how original :)
Stas, do you have a premilinary table of contents
already and could you please post it there?
bari wrote:
> i jsut wanted to know a good mailing list for perl developers.
http://listserv.ActiveState.com/pipermail/perl-win32-users/
Hi Joshua,
Joshua Chamas wrote:
> Note, this is the first benchmark that I've run of Apache::ASP on
> Linux, which is nice to see because Linux is one of the faster OS's,
> and it now looks bit more of a player, compared to what's listed at
> http://www.chamas.com/bench/ when I benched it on Sola
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 do
[EMAIL PROTECTED] wrote:
> open(FH, "> $filename");
Maybe:
open(FH, "> $filename") or die "Can not write to $filename: $!";
> Error message:
> [Wed Oct 25 16:36:17 2000] null: Warning 315: Bogus DQT index 9
> (/home/images/velvet/m6.jpg) at /www/lib/perl/Velvet/VelvetAdmin.p
Francois Gaudin wrote:
> error while executing /../components/loginchecknoform:
> DBI->connect failed: OpenClient message: LAYER = (5) ORIGIN = (3)
> SEVERITY
> (5) NUMBER = (6)
> Message String: ct_connect(): network packet layer: internal net library
> erro
Are you able to connect to the databa
See Perl Power Tools - http://language.perl.com/ppt/what.html
>my $stuff = 'IPC::Shareable' . $ice;
> - i.e. 13 chars)
Oops, sorry - I can't count on mondays!
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 sha
"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 succ
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 b
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 do
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
David Hodgkinson wrote:
> There are plenty of counter examples floating around. Mostly involving
> moving log files away then doing a graceful restart.
Maybe this is useful:
http://www.modperl.com/perl_conference/cool_tricks/handout.html
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?
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
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 "sevenvalFIT-t
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 anyon
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:
03ae01c0229b$a33af840$0
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 "main
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:
Don
"Brian S. Craigie" wrote:
> Uhm, I thought ASP was a language like php. Is that not the case? When
> I set up Dreamweaver, I chose ASP with Javascript. I assumed that meant
> it would run ASP on the server and javascript on the client.
I think Apache::ASP currently supports PerlScript only -
[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
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?
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
http://www.perl.com/pub/2000/05/p5pdigest/THISWEEK-2
"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 http://
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 sty
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
martin langhoff wrote:
> Is it possible to tell BIND to catch *.domain.com and answer the same
> ip?
Have you seen http://www.7val.de ? They use something
similar for user tracking (session id in hostname).
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..
http://www.perl.com/pub/2000
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?
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 ht
61 matches
Mail list logo