Re: about CURL tool

2006-05-25 Thread Bob Showalter
On 5/24/06, Joodhawk Lin <[EMAIL PROTECTED]> wrote: Hi, Curl is a tool to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, TFTP, DICT, TELNET, LDAP or FILE). The command is designed to work without user interaction. Have you us

Re: Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Bob Showalter
Mary Anderson wrote: Hi All, I am running Perl 5.8.7 (ActivePerl) on a Windows XP platform. I have been unable to open files from a CGI.pm script. Here is the offending code: use CGI qw/:standard :html3 :netscape/; use POSIX 'strftime'; use CGI::Carp('carpout'); open(LOG,">>.\guestbook.er

Re: our..... Lou's code

2005-11-28 Thread Bob Showalter
Lou Hernsen wrote: - Original Message - From: "Bob Showalter" <[EMAIL PROTECTED]> To: "Lou Hernsen" <[EMAIL PROTECTED]> Cc: Sent: Sunday, November 27, 2005 12:36 PM Subject: Re: our.. Lou Hernsen wrote: ok after reading about "our" fact:

Re: our..

2005-11-27 Thread Bob Showalter
Lou Hernsen wrote: ok after reading about "our" fact: I use all global vars in the main program. conclusion I need to list all the vars in the module as our in main my $foo in mod our $foo this will allow the vars to be used by both programs? No. A variable declared with "my" is only access

RE: running interactively

2005-10-12 Thread Bob Showalter
Adriano Allora wrote: > ha to all, Ha back! > > I need to use a a shell-program but I cannot pass all the arguments to > this program via system() function. In other words: the program > doesn't accept all the arguments via command line: I need to open it > and write interactively some instructi

RE: XML [AntiVir checked]

2005-10-11 Thread Bob Showalter
Naji, Khalid wrote: > Hi, > > Which Module could you recommend for the use of the XML (XML::Simple, > XML::Parser and XML::Writer, XML::DOM, XML::PATH...) ? To add to what Wiggins said, I would also take a look at the XML::LibXML family of modules, and look at SAX parsing. These are newer than s

RE: Forcing a "save as' dialogue box to come up on left click

2005-09-20 Thread Bob Showalter
Tony Frasketi wrote: > Hello Listers > I'm trying to find a way to force a download dialogue box to come up > when the user clicks on a link on a web page (the link will primarily > be for htm, .txt files on the server). Short answer is that you cannot *force* the client to do anything. The HTTP

Re: Yet another package problem

2005-09-16 Thread Bob Showalter
Luinrandir wrote: ### Inn.pl # ## package Inn; Buy {} Sell {} Talk {} Sleep {} Delivery {} Work { # GameTime(.1); # SendOff(); print qq|"Well afraid I do all my own work Try another business"|; } ... Did

Re: cookies as hidden files

2005-09-16 Thread Bob Showalter
Denzil Kruse wrote: Well, this is what I witnessed. I'm using a windows computer at home. It is configured to display hidden files. I have a red hat linux server off who knows where that hosts my site. I set up a perl script to set and fetch cookies, and it does so correctly on my computer.

RE: Perl DBI / SQL Question

2005-09-14 Thread Bob Showalter
Vance M. Allen wrote: > I need to know how to retrieve through Perl DBI a listing of possible > ENUM elements from a field for processing under a CGI script. Need to know what database you're talking about. This will probably involve querying data dictionary views or tables. Some DBI drivers also

RE: Force a file download for link

2005-08-30 Thread Bob Showalter
Denzil Kruse wrote: > Hi, > > I want my users to download a csv file. When they > left click on the link, it brings the file up within > the browswer. They can of course do a right click and > "Save Target As" depending on the browser. > > But I don't want to fuss with instructions and > confus

RE: Easy question

2005-07-19 Thread Bob Showalter
Neville Hodder wrote: > The following code creates two Input types - a "file select" and a > "text input". The "text input" data is returned as expected whilst > the "file select" data is ignored. I have not found any references > for a CGI "file select" form tag in my documentation so I guess it i

RE: quote problem and mysql

2005-07-15 Thread Bob Showalter
Andrew Kennard wrote: > Hi all > > Done lots of googling but this simple thing still has me stumped > > The perl code to insert stuff into an mysql table is this > > my $Vals; > for ( my $i=1;$i<=32;$i++ ) { > $Vals.='?,'; > } Hmm, that seems like it would give you an extra

RE: CGI.pm internals question

2005-07-14 Thread Bob Showalter
Scott R. Godin wrote: [snip] > So if I were to say, override it thusly: > > package CGI; > > sub STORE { > my $self = shift; > my $tag = shift; > my $vals = shift; > #my @vals = index($vals,"\0")!=-1 ? split("\0",$vals) : $vals; > my @vals = @{$vals}; > $self->param

RE: CGI.pm internals question

2005-07-13 Thread Bob Showalter
Scott R. Godin wrote: > under what circumstances is the CGI.pm's STORE autoloaded method > called? > > is it used only when you assign values to the object, or is it only > used when receiving values (or multi-values) from the webserver query? It is part of the tied hash interface returned by th

RE: A scope question

2005-07-05 Thread Bob Showalter
Andrew Kennard wrote: > Hi all > > I've got the basic hang of scope of vars in Perl which is a bit > different to other languages I've used. > > Having split a large program into packages I would like to use a > global var across multiple packages. Perl does not seem to have a 'C' > type 'extern'

RE: Active Perl Script to delete 4 hours old files on Windows

2005-06-13 Thread Bob Showalter
Asad wrote: > All: > I need to write a script to delete 4 hours old files and > directories on Windows. I am planning to use Perl to accomplish > this. I understand the "-M" would delete at least a day old files, > but is there a way to delete 4 hours old files and directories. Thank > you.

RE: How to output in HTML?

2005-05-11 Thread Bob Showalter
Roger Grosswiler wrote: > Hi, > > i just wrote a very small perl-file, which opens a file, reads the > content, adds a 1 and closes it. It's a veery simple > hitcounter. (counter.pl, code see below) > > I would like now to print this in an existing html-sheet, say, when > opening index.h

Re: cgi form generates a cronjob

2005-03-25 Thread Bob Showalter
FRANK DELATORRE wrote: Hello, I hope this is the right forum to ask this question: Is it possible to generate a crontab file from a perl driven CGI script? If so, what are the key steps? I've been thinking about how to develop this but for some reason I cannot rectify, in my head, how to edit a cro

RE: removing dupes from fetchrow_array()?

2005-03-23 Thread Bob Showalter
Sara wrote: > Following is the code used in my CGI script. > > my $query = $dbh -> prepare("SELECT * FROM invoices WHERE ID = > '$ID'"); $query -> execute(); > while (my @row = $query -> fetchrow_array()){ > print "$row[1] - $row[2] - $row[3]"; > } > > What If I want to remove dupes from @row? li

RE: Premature end of script headers

2005-02-08 Thread Bob Showalter
vishwas bhakit wrote: > hello, > > I am getting following error. > > Premature end of script headers > > Can anybody plz tell me > what is the cause of this. When the webserver runs your CGI script, it parses the output, looking for the MIME headers, followed by a blank line, followed by the re

RE: Addendum: Content_Length.

2005-02-03 Thread Bob Showalter
Sara wrote: > Why the length is not coming out? Any ideas? > > # > > my @aho = ("fgfgfgf", "fgfgfgfgf", "fgfgfgfg"); > > my $length += length($_) for @aho; A perl "gotcha". The 'for' modifier creates a loop, and the 'my' is scoped to the body of t

RE: embedding dynamic images in html output

2005-01-21 Thread Bob Showalter
Chad Gard wrote: > and I really don't want to write images to files on disk. I think you should reconsider. This is really your best bet. Web clients and servers are really optimized for this kind of thing. You should write all the images out to disk files accessible through URL's and then emit IM

RE: Insecure dependency in glob while running with -T switch

2005-01-17 Thread Bob Showalter
David Gilden wrote: > Last question here, > > #!/usr/bin/perl -wT > > > Snip ... > > my @filesToRemove = <*>; > > The line above is causing: > > Insecure dependency in glob while running with -T switch > > What can I do still have this functionally and satisfy 'tainting' I'm not po

RE: Browser times out

2004-12-30 Thread Bob Showalter
Denzil Kruse wrote: > Hi all, > > I think I'm having a problem with my browser timing > out because my cgi script is taking too long. The > script processes some database records. When it does > 250 of them, it takes about a minute or so, and the > browser has no problem. But when I do more, th

RE: Setting a Cookie...

2004-12-08 Thread Bob Showalter
Bill Stephenson wrote: > How can I set a cookie when someone visits my home page? > > I've tried using a server side include like so > > # code # > #!/usr/bin/perl -w > > # This is in my html page: > # [snip cgi ] Your code to set the cookie

RE: How to avoid accidental re-sending of POST data

2004-12-02 Thread Bob Showalter
Ingo Weiss wrote: > Hi, > > this must be a common problem and I was wondering what commonly used > strategies to solve it are: > > How can I avoid that a user re-sends a POST form when hitting the > reload button on a result page? You can't. If the transaction is not repeatable, you need to have

RE: Killing a Process

2004-11-22 Thread Bob Showalter
Kevin Bass wrote: > I have a slight problem that I am attemping to solve. I am using > CGI/Perl (DBD Oracle) on Linux AS 2.1 to access to the database. When > users encounter problems on the web, they cancel (or press stop) in > their browsers. This will stop there browser interaction and also > ca

RE: question about doing it right in CGI

2004-11-19 Thread Bob Showalter
Lewick, Taylor wrote: > Hi all, I have been using perl for sometime for CGI scripts, but have > always used the print content-type:html version of doing things. > > I would like to learn a better way with the CGI module, but when I > read the docs I find it pretty easy to get confused as to whethe

RE: untainting data

2004-11-10 Thread Bob Showalter
Sara wrote: > > > > bad guys can always create their own form > > I can't say how others do it but almost my every script starts with: > > if ($ENV{'HTTP_REFREER'} !~ /yourdomain.com/) { > exit; > } > > it helps eliminating of Bad Guys forms & shoving of data (no remote > postings allowed). You

RE: Address bar & redirects

2004-11-04 Thread Bob Showalter
Jonathan Mangin wrote: > Why doesn't my IE address bar reflect successful redirects? Perhaps an internal redirect is being used? Show us the script that's issuing the redirect. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: how to auto expire session when not active for > 10 mins?

2004-10-20 Thread Bob Showalter
Jim Goh wrote: > Hi, > If I have web site and all the pages are under directory called > www.mysite.com/test. Assume this directory "test" is access by > username and password. After user enter the directory and view all > the pages. However if user not touch the pages under this directory > for mo

RE: Capturing PID of Shell Calls

2004-10-11 Thread Bob Showalter
Jamie Bridges wrote: > I am attempting to collect the PIDs of system/backtick calls ( up to > 40 of them ) and revisit them to ensure that they completed. Both system() and backticks call wait() internally, so they don't return until the child process terminates. If you want to start a process an

RE: undefined value error

2004-10-04 Thread Bob Showalter
Xiangli Zhang wrote: > Here is my updated code with errorHTTP 500 that did not happened for > the old code, and the modules I am using. n.b. that "Error 500" is just a "catch-all" error from the web server. If other error messages from your script were output, you will find them in the web server

RE: table with variables

2004-09-10 Thread Bob Showalter
Ing. Branislav Gerzo wrote: > > > print table( > > {-border=>>undef}, > > > caption('Choose your favourite brand:'), > > > Tr({-align=>CENTER,-valign=>TOP},), > > > td($items[0], $items[1], $items[2]), > > > td($items[3], $items[4], $items[5]) > > > )

RE: table with variables

2004-09-10 Thread Bob Showalter
Sean Davis wrote: > Just print '' and '' separately. Note that CGI has start_table and end_table methods. If you use function style, you need to import them: use CGI qw(:standard start_table); print start_table; ... print end_table; Actually, you can do this with any tag, not just

RE: Apache vs Boa error LFLF

2004-09-10 Thread Bob Showalter
Shawn Sharp wrote: > I am working on some perl cgi code that works on an apache webserver > but I get the following error when I run it on a boa webserver > > [08/Sep/2004:23:41:09 +] cgi_header: unable to find LFLF. > > I have tried the following change > > From: > > print "content-type: t

RE: Month-Year Links....

2004-09-08 Thread Bob Showalter
Greg Schiedler wrote: > Perl v5.6.1 > > Trying to easily create some variable based on the current month and > links to the two previous months. The filename(s) are based on two > digit months MM--Filename. I have the filename part working but > I need some guidancd on creating the MM-.

RE: Regex for accepting text and HTML *entities*

2004-09-07 Thread Bob Showalter
Chris Welch wrote: > Hi, > > I have a dilemma, I am processing CGI forms and I need to come up with > a regex that will accept HTML entities Have a look at the HTML::Entities module source code for regexes. If you're just trying to decode entities, use this module instead of rolling your own. ht

RE: Partial interpolation over pattern sustitution

2004-08-17 Thread Bob Showalter
J. Alejandro Ceballos Z. wrote: > How may I avoid partial interpolation over a pattern sustitution? > > My code looks like: > > # searching for all matches for later use > @matches = $htmlpage =~ m/(.*?)<\/pre>/gs; > for ($i=0; $i<$#matches; $i++) >{ $htmlpage =~ s/$matches

RE: stuck at TRUE/FALSE, pls help

2004-08-16 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Hi > > I am very very new to perl. And after lots of work I did script a perl > file to handle a online form (products order form). However, I am > stuck at a point. I tried my best but could not get thru. > > The form is located at: http://www.kevincoffey.com/order.htm

RE: BACK button in CGI

2004-08-13 Thread Bob Showalter
[redirected to beginners-cgi list] Shah, Urmil wrote: > This is a very basic question but still confusing me and so trying to > get help. > > I have 3 CGI FORMS that display HTML output. One form leads to second > and second leads to third. On 3rd page If I want to redirect the user > to page 1 h

RE: Filtering CGI Variables

2004-08-09 Thread Bob Showalter
Bill Stephenson wrote: > Hi all, > > I need some help. I have name/value parameters coming in from a web > form that look something like this (blank lines added for clarity): > > firstname=bill > lastname=stephenson > > q1=1 > t1=y > d1=something 1 > p1=3.45 >

RE: using HTTP authentication

2004-08-04 Thread Bob Showalter
Andrew Gaffney wrote: > I want to use HTTP authentication with Apache 2.x for a project I'm > working on. I only need 1 user to be able to access the whole site > (similar to a consumer router's web interface). Okay. > What do I need to do to setup it up in Apache This is found in the Apache d

RE: Help needed in extracting html over HTTTPS protocol.

2004-08-04 Thread Bob Showalter
Anas Perwez wrote: > Hi All, > My requirement is to extract html from any site ( HTTPS) and then > parse it for selective contents > > I am able to connect to HTTP sites but when it comes to HTTPS , it is > throwing errors. [ snip LWP code ] Have you read http://search.cpan.org/src/GAAS/libwww-p

RE: path/executable question

2004-07-30 Thread Bob Showalter
Sean Davis wrote: > I have a script that queries a database and then uses GraphViz.pm to > generate png output based on the query. GraphViz calls executables > located in /usr/local/bin. This runs fine from the command line and > produces a functional png output. However, when I switch this over

RE: why do i get a file download prompt?

2004-07-27 Thread Bob Showalter
Gary Jennings wrote: > Hi; > > > > I get a file download prompt when I run the following script. Can > anyone let me know why? I am simply trying to print the contents of > a file. Thanks. Displaying a download box is behavior of your browser. Your Content-Type header is botched, so maybe tha

RE: File upload question

2004-07-27 Thread Bob Showalter
Sean Davis wrote: > I am trying to write a toy script that will ask for an upload file and > then echo that file back to the user on the browser. However, if I do > this all in one script like the following, I get no echoed file. > However, if I instead use a separate HTML form and submit to my >

RE: Reading a file

2004-07-09 Thread Bob Showalter
Octavian Rasnita wrote: > Hi all, > > Does anyone know how can I read a file from a UNC path? > Is perl able to read files this way? Just pass the UNC to open(). The underlying OS takes care of it; it's not a Perl issue. open(F, '\\server\share\dir\file.ext') or die $!; Or am I misunderstand

RE: cgi question

2004-06-18 Thread Bob Showalter
Luinrandir Hernsen wrote: > I am writing a perl cgi online game. > > I would like to load the graphic.gif's to the players computer and > then call them from there.. > > ideas? JS? perl? something else? can it be done at all? where do I > start looking? You don't have access to the user's filesy

RE: How to host CGI scripts ?

2004-06-18 Thread Bob Showalter
Sunil Kumar wrote: > Hi, > > I am new to CGI, i just wanted to know if I can host CGi scripts on > my machine. > > OS Details : Win2k Professional with IIS installed, ActivePerl > installed. Yes, you can. You need to configure IIS appropriately, which I can't help you with. -- To unsubscribe

RE: Checkbox_group

2004-06-16 Thread Bob Showalter
Werner Otto wrote: > What I'm trying to do: > print checkbox_group(-name=>'hdel',-values=>[$hostname,$hostip]),; > > But I don't want $hostip's value to appear on the form, it should be > available when I request the param though. Are to trying to show a check box with only the name, but be able

RE: Can't INSERT INTO for one column

2004-06-15 Thread Bob Showalter
Chris Charley wrote: > Hi > > The error messages I'm getting from the attempted insert are: > > > C:\perlp>perl t.pl > DBD::SQLite::db do failed: no such column: cash at t.pl line 17, > line 1. > DBD::SQLite::db do failed: no such column: cash at t.pl line 17, > line 2. > DBD::SQLite::db do fa

RE: POST method with perl module

2004-06-04 Thread Bob Showalter
Tobias Fink wrote: > Good morning, > > im trying to set up a tools module for my modperl environment. > My function get_vars should get all passed variables with the > following snipplet: > > if($ENV{'REQUEST_METHOD'} eq "GET"){ > $my_data = $ENV{'QUERY_STRING'}; > } > else { > $data_lengt

RE: foreach problem

2004-05-21 Thread Bob Showalter
Ron B wrote: > My problem is how to print the next line after the line that > includes BLAH. So I want to print lines including BLAH keyword and > when BLAH is found the next line after it. > > #!/usr/bin/perl > # print lines wich include BLAH keyword > print "Content-type: text/html\n\n"; > prin

RE: Deleting a dir

2004-05-12 Thread Bob Showalter
Octavian Rasnita wrote: > Hi all, > > If the user Apache which runs the cgi scripts on my server want to > delete a file that has restrictive priviledges and is owned by > another user, how can I make a cgi program to be able to delete those > files? Deleting a file requires write privilege in t

RE: Running a Perl module

2004-04-05 Thread Bob Showalter
Octavian Rasnita wrote: > Hi all > > I want to run a certain perl module by getting the name of the perl > module from a scalar variable like: > > $module ="Test"; > require $module; > > I have read in the POD documentation that I need to use: > > eval {require $module}; > or > eval "require $modul

RE: Hash Assignment

2004-03-19 Thread Bob Showalter
stuart meacham wrote: > If I have 2 arrays that I want to assign to the keys and values of a > hash respectively, what would be easiest way to do that? @[EMAIL PROTECTED] = @valuesarray -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: running CGI locally??

2004-03-05 Thread Bob Showalter
Freimuth,Robert wrote: > > > ... I would like to build a simple > > > browser-based UI ... > > > > That's good. You'll need a web server of some sort, since that's > > what browsers talk to. > > > > > > > > Since I'm trying to generate dynamic HTML pages, I thought CGI > > > would be the way t

RE: running CGI locally??

2004-03-05 Thread Bob Showalter
Freimuth,Robert wrote: > Hello, > ... I would like to build a simple > browser-based UI ... That's good. You'll need a web server of some sort, since that's what browsers talk to. > > Since I'm trying to generate dynamic HTML pages, I thought CGI would > be the way to go. However, from what I

RE: Execute an external script

2004-03-02 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Hi! I've written a perl cgi script to create a web page. Now what I'd > like to do is to execute an Octave script from the Perl one and get > its output inside my perl script. I'm working on a Windows XP machine. > I tried $result = `C:/Program\ Files/GNU\ Octave\ 2.1.50/

RE: Newbie question

2004-03-01 Thread Bob Showalter
Shalabh wrote: > hi all, Hi. Use a better subject line. >i am searching from a tab delimited text file and it is > returning the line with tabs which contains the search string into an > array named @found_array, now i want to display it on an html page in > a predefined format and for th

RE: What are you really trying to do? - document type = applicat ion/vnd.ms-excel

2004-02-26 Thread Bob Showalter
Moon, John wrote: > What I'm trying to do is make my new boss happy! They like everything > in Excel. > > I have a BUNCH of CGI scripts on a SUN Unix generating tons of very > nice HTML pages from data in an Oracle database I "need" to > alternately be able to generate the same pages in an Ex

RE: CGI.pm unsecure / dangerous ?

2004-02-24 Thread Bob Showalter
David Gilden wrote: > I just had blow up with a sys. adm. who said my script (see below) > is potentialy unsecure and dangerous and therefor unacceptable. > ... > Is there away some could hijack my script, if so how, or is this > sys. adm. not living in the real world? You are passing form parame

RE: Need help to divert HTML print <

2004-02-18 Thread Bob Showalter
B. Fongo wrote: > I tried to divert the output of print < warns of uninitialized value. > The filehandle below succeeded - so what is not initialized? > > --- > > open (OUT, ">$dirhandle\$file") || die "Can't create the html > templa

RE: Email text encoding

2004-02-11 Thread Bob Showalter
Camilo Gonzalez wrote: > Eek! I've been told by my ISP that my Perl script to email myself and > the user of my form the contents on my contact form has been hijacked > by a spammer. My ISP has been deluged by recipients with complaints. > Where have I gone wrong? Please be kind, this is a beginner

RE: LWP get with no cache

2004-01-22 Thread Bob Showalter
J. Alejandro Ceballos Z. wrote: > I created a cron job that gets a page using LWP::Simple, but > everytime it runs via cron, it sends me the results generated when I > called directly; like if the page was called from memory or from a > cache, not from the actual one. > > Is there any

RE: Storing Form Data without submitting it.

2003-11-26 Thread Bob Showalter
Andrew Gaffney wrote: > > I believe there is an HTTP status code that tells the browser that > the form was successfully submitted, but not to go anywhere. I don't > know what it is off the top of my head, but I think it would work in > this case. Would that be 204 No Content? http://www.w3.org

RE: use CGI qw(:cgi-lib :standard);

2003-11-12 Thread Bob Showalter
Yehezkiel B Syamsuhadi wrote: > What does this line mean? > > use CGI qw(:cgi-lib :standard); > > I know that "use CGI;" means to use CGI module but what does > qw(:cgi-lib :standard) that follow "use CGI" mean? qw() is a way of building a list without having to quote each element and separate t

RE: REMOTE_USER

2003-11-12 Thread Bob Showalter
Colin Johnstone wrote: > Gidday All, > > We are running AIX on an IBM HTTP server with IHS. > > We are serving static HTML pages. Some of these pages are to > be protected. OK. That's the job of the web server, so you need to configure it to protect those pages. With Apache, you use .htaccess fi

RE: SQL question // date_format

2003-09-29 Thread Bob Showalter
David Gilden wrote: > Good evening, > > The following mySQL query works fine, but the server is in > California. I would like add 2 hours to %l, > because the client is in Texas. I could just go to time in GMT and > forget about it :) But I'm wondering if there is a simple solution > here. > > "

Re: remote host name

2003-09-14 Thread Bob Showalter
Alexander Blüm wrote: > hello, > > as my subject indicates, I'm looking for a way of resolving the remote > hostname. > any system command will do too... perldoc -f gethostbyaddr > > I'm planning to write a small script that simply tells the connecting > user, which DNS name he has, since my loca

Re: Truncate questions.

2003-09-14 Thread Bob Showalter
Sara wrote: > open (DB, "+ > truncate (DB, 1024); > > close DB; > > > > 1. This truncate the file from bottom .. Is there a way the > file can truncated from the top? No. You have to rewrite the file contents to delete from the beginning of the file. > > 2. I have DB with 4-8 digits numbe

RE: allow CGI to write on my HDD

2003-09-12 Thread Bob Showalter
Jean-Baptiste.Claude wrote: > Hi, > My cgi script has been written in order to collect some parameters > (with the POST method) but actually if I want to record them, I can > just put them in a pre-existent file. I am unable to create a new > file, even with a 'chmod 777' on my directory... > I wou

RE: accessing a hash map...

2003-09-09 Thread Bob Showalter
Hanson, Rob wrote: > You have it slightly wrong... > > print $hashref{'disks'}->{'io'}; Nope. That references a member of the %hashref hash. He wants print $hashref->{disks}{io}; > > ...And the quotes are optional (usually)... > > print $hashref{disks}->{io}; > > > Is there a more generic

RE: Perl on the web?

2003-09-05 Thread Bob Showalter
Dawn Bradshaw wrote: > Hi! > > Does anyone have experience with making a perl script run on the web? > Specifically, I'm having trouble collecting the answers the users give > on the web page and incorporating them into the script. The script > itself runs fine on the web server. > Any suggesti

RE: Urgent Question (Deployed code gone wrong!)

2003-08-14 Thread Bob Showalter
Greenhalgh David wrote: > A quick question about a while loop. > > I have a simple code that searches database for all entries and puts > one of the fields into a select box on the output page. However, due > to a mistake in my untaint routine (which I've fixed) if a visitor > entered their name i

RE: perl script as binary

2003-08-14 Thread Bob Showalter
Sven Bentlage wrote: > Hi everyone! > > I`m looking for a way to "compile" a perl script into an executable > binary for a WIN2000 system (no(!) perl installed). > > Is there a way to get this working? I use ActiveState's PerlApp for this. It's really very nice. It bundles everything into a sing

Re: Flock and Sleep

2003-08-06 Thread Bob Showalter
Sara wrote: > (sub get_number { > open(NUMBER,">>data.txt"); > flock (NUMBER, 2); Use the constants from the Fcntl module. > > Do blah blah blah > > close (NUMBER); > > closing a file automatically removes the lock?? Yes. > or should I have to > unlock it by placing > > flock (NUMBER, 8); > clo

RE: New to list...needing help

2003-07-29 Thread Bob Showalter
Bruce Whealton, Jr. wrote: > Hi all, > I've been frustrated with my initial efforts to run perl scripts > on my server, or rather the server I use. I have tried a few > simple form mailers, each of them > failing with internal 500 error. 1. Post these issues to [EMAIL PROTECTED] 2. Wheneve

RE: mod_perl doesn't seem to work

2003-07-24 Thread Bob Showalter
Kates Gasis wrote: > Hello Perl world. > > I'm using ActiveState Perl 5.6.1 and Apache 1.3.27. Everything used > to work fine until I installed mod_perl. Now my perl scripts doesn't > work anymore. Whenever I access my scripts, my browser is giving me > an option to save or open the file. If I cho

RE: cookie expiration time problem

2003-07-11 Thread Bob Showalter
Sawsan Sarandah wrote: > Greetings, > > I have a small problem. When I create a cookie using cgi.pm, the > expiration date is always three hours behind the actual time. In > other words, the following code snipet: > > # Time on my local machine: 10:00 pm > # Rhat Linux server using "date" comman

RE: select multiple

2003-07-11 Thread Bob Showalter
Dennis Stout wrote: > ARHG. > > I want to stay as far away from use CGI; as possible =/ Why? > > *sigh* > > mod_perl and the methods available in the apache request object > shuold beable to replace CGI.pm entirely, especially when you have a > highly customized RequestHandler :/ I think this

RE: Working with DBI

2003-07-08 Thread Bob Showalter
Bob Showalter wrote: > ... Make sure you have RaiseError turned on. and PrintError -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Working with DBI

2003-07-08 Thread Bob Showalter
Greenhalgh David wrote: > On Tuesday, July 8, 2003, at 01:19 pm, Bob Showalter wrote: > > > Greenhalgh David wrote: > > > ... > > > In other words, my SELECT block is returning the value of available as > > > it was before the UPDATE, even though I have A

RE: Working with DBI

2003-07-08 Thread Bob Showalter
Greenhalgh David wrote: > ... > In other words, my SELECT block is returning the value of available as > it was before the UPDATE, even though I have AutoCommit set to 1, the > UPDATE is called before the SELECT and manual investigation of the > table clearly shows that the UPDATE was successful. T

Re: Cookies and mod_perl

2003-07-05 Thread Bob Showalter
Dennis Stout wrote: > Is there any difference in setting cookies between operating under > just general CGI and when using an Apache webserver and mod_perl? By "general CGI", if you mean mod_cgi, then no, there is no difference. > > I got a program I'm writing that generates every page it dishes

Re: question on global variable / scope

2003-07-05 Thread Bob Showalter
David Granas wrote: > Hi, > > Im just learning Perl and was a little confused with why I couldnt > prevent my subroutines from reading variables from the main program. > Here is an example: > > use strict; > > my $var = 1; > > test(); > > sub test > { > print $var; > } > > I had thought that

RE: Using "#" in the url string

2003-06-20 Thread Bob Showalter
michael watson (IAH-C) wrote: > Hi guys > > Hope someone can help. > > My file is called lame#19.gpr > > I am trying to send this to my cgi script, so my url looks like: > > cgi?filename=lame#19.gpr > > But of course "#" is a special character for a URL, so my > filename parameter gets cut

RE: Problem with script headers.

2003-06-20 Thread Bob Showalter
causing the log file to be created, but not be writable? If you are creating files, be sure to set the umask to something reasonable like 022. > > Thankyou once again. > > Nicholas Davey > > > > www.vadtec.net > [EMAIL PROTECTED] > - Original Message ---

RE: Problem with script headers.

2003-06-18 Thread Bob Showalter
Nicholas Davey wrote: > Hi. > > Okay, I have been over my script about a hundred times, and > all my syntax is perfect. However, when I view my page on the net, I > get this: > > Internal Server Error > The server encountered an internal error or misconfiguration > and was unable to complete you

RE: Premature end of Script header

2003-06-16 Thread Bob Showalter
Kristofer Hoch wrote: > David, > > print "Content-Type: text/html\n\n"; # Inaccurate > print "Content-type: text/html\n\n"; # Accurate > > The difference is in case sensitivity. Notice the word '-type:' Actually, Content-Type is "correct" per the RFC (see RFC 2616, sec. 14.17). But these fields

RE: radio_group question:

2003-06-06 Thread Bob Showalter
Herbold, John W. wrote: > Help Please! > > I am trying to pass an image link as a label and getting the info > back with < characters in it, and thus not displaying the image. I > am trying to display severl graphic choices for my user, and allow > them to select the "schema" for the website, thi

RE: DBI indexing question

2003-06-04 Thread Bob Showalter
Greenhalgh David wrote: > ... > Second question. If I use the following: > > my $query="CURDATE()"; > my $sth->prepare($query); > $sth->execute; > > I understand that $sth now just contains the reference to the result > of the query. Where is the value of the query (which should be today's > date

RE: Calling a perl script from another perl script

2003-06-03 Thread Bob Showalter
Paul Kraus wrote: > List correct me if I am wrong but you can use single quotes here > because your not using any variables. You are passing exactly what > you see. In fact this is the preferred way to write strings that do > not contain variables or special characters. Correct? > > -Original

RE: fixing uninit error

2003-05-30 Thread Bob Showalter
Peter Fleck wrote: > I'm getting this error (warning?) in my Apache error log: > > Use of uninitialized value in string ne This is a warning. > > Here's the offending line. > > if ($titlelink ne undef) That's not how you test for undef. Use the defined() function. if (defined $titlelink) {

RE: Need your help regarding CGI

2003-05-28 Thread Bob Showalter
Soumyadeep nandi wrote: > Hi Everybody, > > As a naive cgi programmer, I want to get rid of a > problem, for that, I am keen, awaiting your > suggestions. I doubt, I could not present my case in > front of you properly. Anyway, my problem spins around the following. > > I am running a CGI script

RE: Removing all \n in a text file.

2003-04-02 Thread Bob Showalter
Scot Robnett wrote: > By writing it this way: > > open(OUTPUTFILE, ">". $outputFile); > > the script thinks that you are trying to open a file called > > >Out_input2.txt > > with the "greater than" sign actually being part of the file name. > But what you want to do is open > >

RE: self refreshing web page question

2003-04-02 Thread Bob Showalter
Luinrandir Hernsen wrote: > I want to create a web page that calls on another web page and > automatically refresh the other webpage every minute. can I do this > in JS alone? Perl alone? or do I have to use both? > > Thanks for the help, I just need to be pointed in a direction... You can have a

RE: Forcing a refresh from within a CGI script

2003-04-02 Thread Bob Showalter
Rob Dixon wrote: > Hi all. > > I'm in the process of modifying an existing CGI script. There is a > page of HTML which has an anchor to the script which, when run, > modifies the HTML file which linked to it and redisplays it. At > present this is done by returning just the header line > > Lo

  1   2   3   >