Re: The page is not loaded and apache writing errors to log.

2010-03-28 Thread alexander
On Mar 22, 11:10 am, simas...@gmail.com (alexander) wrote: > So i have some .cgi scripts running under apache. > Some pages loads fine, but some loads from time to time. > The pages which loads from time to time is generally generates with > big, huge scripts which doing some work b

Re: The page is not loaded and apache writing errors to log.

2010-03-27 Thread alexander
On Mar 22, 10:10 am, simas...@gmail.com (alexander) wrote: > So i have some .cgi scripts running under apache. > Some pages loads fine, but some loads from time to time. > The pages which loads from time to time is generally generates with > big, huge scripts which doing some work b

The page is not loaded and apache writing errors to log.

2010-03-22 Thread alexander
So i have some .cgi scripts running under apache. Some pages loads fine, but some loads from time to time. The pages which loads from time to time is generally generates with big, huge scripts which doing some work before prints something in html(but there is no function that working more than 2.5

Re: script working from shell, but not from browser.

2009-12-21 Thread alexander simashin
The problem solved now. It is again(for me) selinux. When i disabled it - all began to work fine. It is freaking me out at work, when we began to install linuxe`s with kernel version 2.6(selinux was built in kernel from 2.6) or more i had big problems with this new software... > It drives me crazy

Re: script working from shell, but not from browser.

2009-12-21 Thread alexander simashin
2009/12/21 David Taiaroa > Hi Alexander, > > Is the LWP module in the same directory as the CGI module, and does it have > permissions 644? > Yes, folders CGI and LWP are in /usr/lib/perl5/vendor_perl/5.10.0 and permissions are 644.

Re: script working from shell, but not from browser.

2009-12-20 Thread alexander simashin
> > Hi Alexander, > > Since both scripts work on our server, and not yours, all I can think of is > that it's something specific to your server environment. > I think that too, but can`t understand where is the problem :(. 2009/12/19 David Taiaroa > Does something sim

Re: script working from shell, but not from browser.

2009-12-19 Thread alexander simashin
So it is time for an easy example script. i wrote this little example maybe it will be clearly describe my problem. I did not use any files or something for no more possible problems with permissions. *#!/usr/bin/perl use CGI ; use strict; use warnings; use Data::Dumper; use CGI::Carp 'fatalsToBrow

Re: script working from shell, but not from browser.

2009-12-19 Thread alexander simashin
2009/12/19 David Taiaroa > > When you run a script from shell it's probably as user 'you'. > When the script runs from a browser, it will be as user 'www' or something > similar, with restricted permissions. Your shell user will have more > permissions, so you might want to look at file permission

Re: Loading results (via ajax) from a CGI

2009-11-27 Thread Alexander Krasnorutsky
siteupsoftware.com/cgi-bin/install_verify.cgi?value='+int_value; >var myurl = 'http://www.hunlock.com/examples/notajax.html'; >ajax_this.open("GET", myurl, true); >ajax_this.send(null); >} Is the `onreadystatechange' handler called when readyState == 3? -- Alexander Krasnorutsky. -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

Re: Data Conversion ?

2009-11-07 Thread Alexander Krasnorutsky
ep on trying till you run out of cake. > And the Science gets done. > And you make an income. > For the people who are still alive. > It's simple. $unsigned_4byte_int = pack 'N', length($your_string); -- Krasnorutsky Alexander. -- To unsubscribe, e-mail: beginne

Re: Storing a file from a cgi parameter

2009-06-19 Thread Alexander Krasnorutsky
binmode hFILE; > while (read($file_file,$str_buffer,1024)) >{ print hFILE $str_buffer; } > close (hFILE); You can try use the "$cgi_this->upload" method to retrieve the filehandle. There is a standard module named "File::Temp&quo

Re: What is the function value in perl?

2008-01-07 Thread Alexander
- Original Message - From: "Beginner" <[EMAIL PROTECTED]> To: Sent: Monday, January 07, 2008 7:58 AM Subject: Re: What is the function value in perl? > On 1月5日, 下午6時19分, [EMAIL PROTECTED] (Peter Scott) wrote: > > On Fri, 04 Jan 2008 09:04:48 -0800, Beginner wrote: > > > Hi all, Can any

Re: Out of memory while Inserting

2006-08-04 Thread Alexander Bluem
On Thu, 03 Aug 2006 19:04:12 -0500 "J. Alejandro Ceballos Z. -JOAL-" <[EMAIL PROTECTED]> wrote: > > I've created a perl routine that reads a RTF file, and while > interpreting, it is storing the information on a Mysql database. > It is like: while not EOF (read line, validate, db insert it) >

Re: Extracting links. - without modules

2005-01-17 Thread Alexander Blüm
On Sun, 16 Jan 2005 18:36:09 +0500 "Sara" <[EMAIL PROTECTED]> wrote: > I am trying to extract links along with HTML tags from a > list, but it's not working on my XP machine with Active State Perl > 5.0.6 Kindly help. > > # CODE START > > my @array = qq| > h

Re: table with variables

2004-09-13 Thread Alexander Kleshchevnikov
Sorry, I find out bug in previous code. Use this: use CGI qw(:standard); open (FH, "items.txt") or die "Can't open file. Cause: $!"; my @items = sort ; chomp(@items); print header(); $num_cols = 2; $num_items_in_td = 2; for ($i = 0; defined($items[$i]); $i += $num_items_in_td) { push @tds, t

Re: table with variables

2004-09-13 Thread Alexander Kleshchevnikov
Here's my offer (you can change $num_items_in_td and $num_cols): use CGI qw(:standard); open (FH, "items.txt") or die "Can't open file. Cause: $!"; my @items = sort ; chomp(@items); print header(); $num_cols = 4; $num_items_in_td = 5; for ($i = 0; defined($items[$i]); $i += $num_items_in_td) {

Re: table with variables

2004-09-12 Thread Alexander Kleshchevnikov
('Choose your favourite brand:'), @trs ); --- Alexander Kleshchevnikov, DirectEDI Developer email:[EMAIL PROTECTED] icq: 153617972 --- "Ing. Branislav Gerzo" <[EMAIL PROTECTED]> wrote in message news:[E

Re: CPU load/server resources.

2004-07-14 Thread Alexander Blüm
On Tue, 13 Jul 2004 15:30:36 -0600 "Wiggins d Anconia" <[EMAIL PROTECTED]> wrote: > > > > I had a script for which my previous host cancelled my account > > saying > it's a resource hog and using more than 50% resources of the server > (shared hosting). > > > > Yep, there were some faults in the

Re: Data encryption

2004-05-14 Thread Alexander Blüm
On Fri, 14 May 2004 09:55:15 +0100 David Dorward <[EMAIL PROTECTED]> wrote: > On 14 May 2004, at 09:45, Alexander Blüm wrote: > > On Fri, 14 May 2004 09:25:27 +0100 > > David Dorward <[EMAIL PROTECTED]> wrote: > > > >> On 14 May 2004, at 08:33, Werner w

Re: Data encryption

2004-05-14 Thread Alexander Blüm
On Fri, 14 May 2004 09:25:27 +0100 David Dorward <[EMAIL PROTECTED]> wrote: > On 14 May 2004, at 08:33, Werner wrote: > > I've got a form that makes use of the GET method to provide the cgi > > script with details. My problem is that you can see all of the > > fields being posted. i.e. > > > > /

PERL IDE

2004-03-06 Thread Alexander Douglas
Hello I am new to perl , is there any good IDE to develop simple perl forms with firebird database which is a no brainer. Please advice Mohammed -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: CGI Script to annoy script kiddies.

2004-02-06 Thread Alexander Blüm
NICE!!! I really like this! I'm not sure about security - but it seems fairly safe, since no real system interaction is implemented... nice, real nice script - I'll have some fun with it ;) BUT, the logs will grow... On Thu, 5 Feb 2004 15:46:55 -0500 Carl Fischer <[EMAIL PROTECTED]> wrote:

Re: Include Files in Perl?

2004-02-03 Thread Alexander Blüm
that doesn't sound too good. sounds like loading all into memory, split it up into arrays and then finally printing the contents to the browser. bleh! how aout this: #somewhere in the code: &include("/includes/header.html"); ... &include("/includes/footer.html"); ### subroutine sub include{ my

remote host name

2003-09-14 Thread Alexander Blüm
hello, as my subject indicates, I'm looking for a way of resolving the remote hostname. any system command will do too... I'm planning to write a small script that simply tells the connecting user, which DNS name he has, since my localnet is equipped with a dhcp server the clients usually get

Re: Date to seconds

2003-09-11 Thread Alexander Blüm
Li, Kit-Wing wrote: Hi, Does anybody know of a quick method in perl to turn a date string into its equivalent in seconds, include milliseconds if possible? > Ex: 20030910 13:50:25.6 to 1063202644. Thanks much! starting when? I mean, you 1063202644 seconds, and these are 33years : 37weeks : 01d

Re: md5

2003-07-11 Thread Alexander Blüm
I solved the problem... not using OO-style, but function-style. like this: ... use Digest::MD5 qw(md5_hex); ... $r->print( "$pw -> ".md5_hex($pw)."" ); ... *tadaa* Alexander Blüm wrote: hello I ran into an odd problem, that I cannot explain to myself... I us

md5

2003-07-11 Thread Alexander Blüm
hello I ran into an odd problem, that I cannot explain to myself... I use mod_perl 1.27 and apache 1.3.27... the commandline script works perfectly: perl -mDigest::MD5 -we 'print new Digest::MD5->md5_hex("lol")."\n"' returns "fe5608e20902819328733f5e672b6af6" each time I run the script. ok... I

Re: Re: disabling the use of browser history

2003-07-06 Thread Alexander Blüm
erent story... well, I followed the access log, and when I do go back and forth, there are really no "GET"'s nor "POST"'s - the browser still chaches the data... are there other ways? ----- Original Message - From: "Greenhalgh David" <[EMAIL PROTECTE

disabling the use of browser history

2003-07-05 Thread Alexander Blüm
hello!!! I'm writing a database frontend based on perl-CGI. Each query is being cached in a file with the current session-ID. The reason for this doing is that some queries do take a very long time to process and have a large output. If I want to see the next 50 results using the SQL 'LIMIT' a