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 instructions.

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 some

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: 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: 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: 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 confused users.

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 is not a

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 comma at

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};

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 the

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.html,

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

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]br; } What If I want to remove dupes from @row? like if $row[2]

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 response

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 that loop (I

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

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, the

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: # !--#exec cgi=/cgi-bin/ezInvoice2/ssi.cgi-- [snip

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 some

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 cause

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 whether I

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 do know that

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] http://learn.perl.org/

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 more than

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 and

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's

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:

RE: table with variables

2004-09-10 Thread Bob Showalter
Sean Davis wrote: Just print 'table' and '/table' 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

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]) ); I want print all

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-. I

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(.*?)\/pre/gs; for ($i=0; $i$#matches; $i++) { $htmlpage =~

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 how do

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 q2=

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

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

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: 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 that has

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 misunderstanding

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 to

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:\perlpperl t.pl DBD::SQLite::db do failed: no such column: cash at t.pl line 17, DATA line 1. DBD::SQLite::db do failed: no such column: cash at t.pl line 17, DATA line 2. DBD::SQLite::db do

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_length =

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; print html\n;

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 the

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 $module; You need to

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: 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: 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 to go. However, from

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/bin

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 that i

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 Excel

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 parameters

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 beginners'

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 way

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?

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 files

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. SELECT

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 localnet is

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 would

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 mailing

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 suggestions,

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 single

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 in

Re: Flock and Sleep

2003-08-07 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); close (NUMBER); No,

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. Whenever

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 command: Fri

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 AutoCommit set to 1, the UPDATE is called before

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: 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 a my variable

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 short to

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 are not

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.) It doesn't

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: 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 in

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 Location:

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: safe system()?

2003-03-28 Thread Bob Showalter
drieux wrote: ... think about the case of $file = '/path/to/file ; ( find / -print | xargs rm -r -f )'; system(md5 $file); DO NOT TRY THAT ONE AT HOME KIDDIES Wouldn't system('md5', $file); Be safer, since the list form of system() bypasses the shell? Consider: $ perl

RE: Replacing/deleting text in a text file, part deux

2003-03-28 Thread Bob Showalter
Scot Robnett wrote: Anything I can do to make this an easier question? No responses...maybe I didn't ask the question the right way or made it confusing as to what I am trying to do? Would it help to split it up? Thanks for any advice... ... foreach $record(sort(@records)) {

RE: Replacing/deleting line in a text file

2003-03-26 Thread Bob Showalter
Scot Robnett wrote: I have a delimited file that is formatted like this: Altech|[EMAIL PROTECTED]:[EMAIL PROTECTED] Specialties Steel Corp. |[EMAIL PROTECTED] Specialty Steel Corp. [EMAIL PROTECTED]|[EMAIL PROTECTED]:[EMAIL PROTECTED] burton.com* Starwood|[EMAIL

RE: CGI.pm htmlTAGS

2003-03-25 Thread Bob Showalter
David Gilden wrote: Good afternoon, a few quick questions pertaining to CGI.pm: How can I get CGI.pm to return lower case html tags. print end_html; # prints Upper Case /BODY/HTML probably need to upgrade CGI.pm. I get lower case: $ perl -MCGI=:standard -le 'print $CGI::VERSION; print

RE: Help using %Hashes

2003-03-25 Thread Bob Showalter
Horace Franklin Jr. wrote: Help! I need help using %hashes to receive input from the form below. What changes would I make to the syntax of the commented lines below to do this?. Well, none. That code creates the form, which is a different matter from receiving input from the form. When

RE: simple query

2003-03-20 Thread Bob Showalter
mark sony wrote: Hi Can anyone tell me what does $. in perl mean ? And also anyplace I will get references about these in quick time ie. a handbook type ? All the special variables are documented in perldoc perlvar $. keeps track of the input line number, similar to awk's NR -- To

RE: html table limit

2003-03-12 Thread Bob Showalter
Rob Benton wrote: Is there a limit to how many rows you can put in an html table? I can't find anything wrong with my script but when I get over 1000 rows or so in my tables they start drawing weird borders. That would be a function of the browser, so see if your browser has any limits. Try

RE: html table limit

2003-03-12 Thread Bob Showalter
Rob Benton wrote: Mozilla, Konqueror, Opera, and IE all act the same way. Check out this page to see what I mean. The top, bottom, and right side of the table borders act funky: http://www.geocities.com/emperorrob/test.html Hmm, this page displays fine for me in IE6. I tried the

RE: cgi security aspects

2003-03-11 Thread Bob Showalter
Skorpion wrote: can you give me a pice of advice of security aspects creating cgi scripts working with apache server on linux running 2.2.19 kernel - any backdoors i should be aware of ? See the security resources on the CGI Meta-FAQ: http://www.perl.org/CGI_MetaFAQ.html is there any chance

RE: Database connection trouble

2003-02-21 Thread Bob Showalter
Van Andel, Robbert wrote: A coworker and I have been working on connecting to a MySQL database running on the webserver. We are using the following command to connect: my $dsn = 'DBI:$driver:database=$database;host=$hostname'; my $dsn = DBI:$driver:database=$database;host=$hostname';

RE: Database connection trouble

2003-02-21 Thread Bob Showalter
Bob Showalter wrote: my $dsn = DBI:$driver:database=$database;host=$hostname'; Oy vey! One more try: my $dsn = DBI:$driver:database=$database;host=$hostname; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Perl question

2003-02-13 Thread Bob Showalter
Stephen Spalding wrote: Hello all, I have a question about perl. I'm trying to pass an array into a subroutine, but I don't know what the proper way to receive it in the subroutine is. Below is an example of what I'm trying to do. The ??? represents what I do not know what to put in.

RE: Data Validation Issues

2003-02-07 Thread Bob Showalter
Will wrote: Greets Folks, I am developing a registration area for a members site that will interface with a MySQL DB users table, and I ran into a problem or two. Note that I am using DBI as my DB Driver. ... Second, suppose they try a username that has already been taken. I need a

RE: Premature end of script headers

2003-02-06 Thread Bob Showalter
[redirected to beginners-cgi list] zegdatwel wrote: hi, Premature end of script headers what can this mean...it's in the error log. When does this happen? I got error 500 when executing script. It means your script ended (normally or abnormally) before emitting a proper MIME header. The

Re: Date Range

2003-01-29 Thread Bob Showalter
Melissa Stranzl wrote: Hi all, This is part of a perl program I wrote that doesn't compile. I am trying to get my database to search by date- to have current and past events come up. Anyway, based on the following code, I get an error message that reads: can't locate object method new

RE: add new piece of html code in perl not success:internal serve r error

2002-12-19 Thread Bob Showalter
-Original Message- From: eric [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 4:04 AM To: [EMAIL PROTECTED] Subject: add new piece of html code in perl not success:internal server error Dear perl users: I want to copy a piece of html code to my site,

RE: including perl in html

2002-12-11 Thread Bob Showalter
(reply redirected to [EMAIL PROTECTED]) -Original Message- From: Adam Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 11:30 AM To: [EMAIL PROTECTED] Subject: including perl in html Hi, can anyone help me, i want to include the ouput of a perl file within

RE: Writeing a HTTP server with perl

2002-12-02 Thread Bob Showalter
[reply redirected to [EMAIL PROTECTED]] -Original Message- From: LRMK [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 11:57 AM To: [EMAIL PROTECTED] Subject: Writeing a HTTP server with perl I wrote a http server in perl to handle GET request from browser but

RE: fetchrow_hashref

2002-11-14 Thread Bob Showalter
-Original Message- From: T. Murlidharan Nair [mailto:nair;sdsc.edu] Sent: Thursday, November 14, 2002 2:22 PM To: [EMAIL PROTECTED] Subject: fetchrow_hashref Hi!! I am retriving data in a while loop using fetchrow_hashref How do I assign it to another hash. I am trying the

RE: DBI / loop

2002-11-14 Thread Bob Showalter
-Original Message- From: Sven Bentlage [mailto:root;svenbentlage.de] Sent: Thursday, November 14, 2002 2:43 PM To: [EMAIL PROTECTED] Subject: DBI / loop Hi everyone! I have a small problem which should be very easy to solve, but right now I just do not understand where the

  1   2   3   >