Re: Page Breaks

2009-03-06 Thread Sean Davis
There are a number of CPAN modules for doing paging. You cannot know what the size of the page is, though, in general. All you can do is to set the number of rows per page and then page based on that. Sean On Thu, Mar 5, 2009 at 2:25 PM, Bill Stephenson bi...@perlhelp.com wrote: Does anyone

Re: Using GD on the fly to add a graph to a web page

2009-02-03 Thread Sean Davis
On Mon, Feb 2, 2009 at 8:26 AM, bacoms googlebr...@balfour.me.uk wrote: I've got a web page that includes a graph. I achieve this with code that looks like: print Content-type: text/html\n\n; etc etc my($myImage) =

Re: Sending intermediate response for a long running cgi script

2009-01-27 Thread Sean Davis
On Tue, Jan 27, 2009 at 12:56 AM, Tim Bowden tim.bow...@mapforge.com.auwrote: I've got a cgi script that will on occasion run for some time (exactly how long I'm not sure yet...) and I'd like to return a processing please wait type response to the web client if/when a certain time limit has

Re: Send email using SMTP

2009-01-06 Thread Sean Davis
On Tue, Jan 6, 2009 at 7:17 AM, Fúlvio fulvi...@gmail.com wrote: Hi Jody, I use your code bellow but the the following error message happens: Can't call method domain on an undefined value at Works for me. Are you behind a firewall by any chance? Sean On 5 jan, 21:16,

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Sean Davis
On Sun, Dec 14, 2008 at 10:01 PM, Adam Jimerson vend...@charter.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Williams wrote: On Sun, Dec 14, 2008 at 1:28 PM, Adam Jimerson vend...@charter.net wrote: On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: Are you

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Sean Davis
On Sun, Dec 14, 2008 at 1:28 PM, Adam Jimerson vend...@charter.net wrote: On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: You cannot put perl in a webpage the way that you do with PHP. However, there are a number of template engines written for and in perl that give you similar

Re: embedding a CGI script in a HTML page?

2008-12-14 Thread Sean Davis
On Thu, Dec 11, 2008 at 5:42 PM, Adam Jimerson vend...@charter.net wrote: Is it possible to embed a CGI scrip into a HTML page? I don't know if CGI scripts work in a way that allow for this, I know that in PHP this is possible, because I want to make my CGI scripts and website have a unified

Re: xml::xslt and regexes

2008-12-10 Thread Sean Davis
On Tue, Dec 9, 2008 at 8:09 PM, Chris Cosner [EMAIL PROTECTED] wrote: Question: What is the speediest tool to pull data from an xml feed that will only be a few hundred lines at most? Some regexes will be necessary. Context: I am playing with the google books data api. They provide a feed,

Re: Problem with uploader

2008-11-18 Thread Sean Davis
On Sun, Nov 16, 2008 at 4:05 PM, Adam Jimerson [EMAIL PROTECTED] wrote: I'm trying to make a CGI script to upload files remotely onto my server, to get around my uni blocking everything but port 80, but I have ran into a problem with it. I followed the documentation on CPAN for uploading

Re: what is the best / latest .CGI to handle safe form parsing?

2008-11-18 Thread Sean Davis
On Mon, Nov 17, 2008 at 8:04 PM, Lou Hernsen [EMAIL PROTECTED]wrote: what is the best / latest .CGI to handle safe form parsing? CGI.pm? I'm not sure what you are asking, otherwise? Sean

Re: sessions

2008-08-24 Thread Sean Davis
On Sat, Aug 23, 2008 at 2:52 AM, JuneEarth [EMAIL PROTECTED] wrote: How to make CGI sessions to be shared among multi-webservers? Thanks. The simplest way is to use a transactional database system. You read the session from the database and write back to the database. It will work with as many

Re: Standard CGI module vs CGI::Fast/CGI::Simple

2008-06-17 Thread Sean Davis
On Tue, Jun 17, 2008 at 9:37 AM, Mimi Cafe [EMAIL PROTECTED] wrote: Hi, I will be developing a database backed CGI application and now looking into CPAN modules to use. Now my idea is to find people who have experience using the modules I am considering to hear their opinion. For instance,

Re: Simple Question... I hope

2008-06-04 Thread Sean Davis
On Tue, Jun 3, 2008 at 1:00 PM, [EMAIL PROTECTED] wrote: Ok, I'm uploading a file to a 3rd party. The file is being uploaded to an https site with a cgi extension. The 3rd party finally provided me with a snippet of their Perl code. They see the attempt coming through, but there is no data. I

Re: Using a CMS with cgi scripts

2008-05-29 Thread Sean Davis
On Thu, May 29, 2008 at 9:26 AM, JUSTIN R COLON [EMAIL PROTECTED] wrote: Hello I have begun to use a CMS/web development tool named Joomla and I was wondering if you had any information on implementing perl/cgi scripts into this CMS or if there is another CMS that would be better to use if i

Re: Extracting TD's from a Text File (Regex Help).

2008-04-08 Thread Sean Davis
On Tue, Apr 8, 2008 at 8:22 AM, [EMAIL PROTECTED] wrote: TEXT FILE ## td class=PhorumTableRowAlt thread style=padding-left: 0px a href=http://mysite.com/link/here_goes?id=239;LINK/a nbsp;span class=PhorumNewFlag/span/td td

Re: Suggestions for a simple configuration management web application

2008-03-12 Thread Sean Davis
On Tue, Mar 11, 2008 at 2:54 PM, Richard [EMAIL PROTECTED] wrote: Hey all, I am trying to find a simple, modular web based configuration application and am having a little trouble. Basically, I need something to do some simple configurations on an appliance similar to something like a

Re: Process Directory and subdirectories Recursively

2008-01-28 Thread Sean Davis
On Jan 28, 2008 6:56 AM, Mimi Cafe [EMAIL PROTECTED] wrote: Hi, I am trying to process a directory and all subdirectory recursively and generate a list as the Unix command ls -R will display, but this seems not to behave as it should. My script only goes as far as processing the directory

Re: Intermittent problems accessing MySQL data

2008-01-23 Thread Sean Davis
On Jan 22, 2008 11:11 PM, Chris W [EMAIL PROTECTED] wrote: I have inherited a site written in perl. Recently an intermittent problem has come up and when users log into the site, they end up seeing other users data. I personally can not reproduce the problem but it has happened enough that

Re: uploading a file with perl---kueri: ------------4CyrMz2ZeGIClwYfFsVdcv Content-Disposition: form-data; name=level asda ------------4CyrMz2ZeGIClwYfFsVdcv Content-Disposition: form-data; name=m

2008-01-13 Thread Sean Davis
Hi, Patrik. You should probably be using CGI.pm. It will vastly simplify what you are doing. Then, you can read any of a dozen sites on doing file uploads using CGI; see search.cpan.org for the details of using CGI.pm. Sean On Jan 12, 2008 5:54 PM, Patrik Hasibuan [EMAIL PROTECTED] wrote:

Re: formatting tables generated by checkbox_group()

2007-11-27 Thread Sean Davis
On Nov 26, 2007 5:10 PM, neil [EMAIL PROTECTED] wrote: Hi, I was wondering if its possible to get the class= field passed to the tables generated by checkbox_group()? Not a direct answer to your question, but you will want to move away from using CGI to generate HTML and move toward using a

Re: pushing web form params into mysql table

2007-06-28 Thread Sean Davis
everything in the appropriate error handling. Alternatively, there are a number of higher-level interfaces (like DBIx::Simple) that have it built-in. Sean From: /Sean Davis [EMAIL PROTECTED]/ To: /Shad Keene [EMAIL

Re: pushing web form params into mysql table

2007-06-26 Thread Sean Davis
[EMAIL PROTECTED] wrote: On Jun 25, 3:19 pm, [EMAIL PROTECTED] (Ricky Zhou) wrote: Greg Jetter wrote: my $query = insert into tablename (atablenaem1,atablename2,atablename3)VALUES($SubjPerform,$somthing2, $somthing3); # insert stuff in the db $dbh-do($query) or die $DBI::errstr; To

Re: List Problems?

2007-06-14 Thread Sean Davis
Bill Stephenson wrote: I've sent one message to this list and one message to [EMAIL PROTECTED] The message to the list was not posted and the message to Help was not responded to. Any reason why? The list address that you want to use is [EMAIL PROTECTED] The email [EMAIL PROTECTED] is

Re: Premature end of script headers

2007-06-05 Thread Sean Davis
[EMAIL PROTECTED] wrote: Hello, i need to know the reasons for this error Premature end of script headers i checked with my http header content-type:text/html ,but i had not solved yet.. Check your error_log file on your server to see if you are generating an error in your script. Sean

Re: Redirect Print

2007-05-30 Thread Sean Davis
On Wednesday 30 May 2007 11:56, Naji, Khalid wrote: Hi, is there any way to mask a printing, when I call a Function using the Command print and without to modify this Function: Like: My ($Name) = get_name(12345); Sub get_name { $id = @_; ... Print Blalalalalalalbla...\n; Return

Re: FLOCK

2007-05-29 Thread Sean Davis
Akbar Ehsan wrote: Hello Everyone, I am attempting to lock a file using FLOCK. I understand the FLOCK is an advisory lock and that it does not prevent any other process/program from clobbering the file even when the lock in on the file. Is there anything I should look into to apply a lock on a

Re: FLOCK

2007-05-29 Thread Sean Davis
Akbar Ehsan wrote: Thanks for the response. Here is the situation. We have a web form that creates a tab-delimited text file. We want to lock this file to clean up the file, may be for a minute, so that if anyone submits a form request, it does not get written to the. I have been looking at and

Re: File Downlaod issue.

2007-04-19 Thread Sean Davis
On Thursday 19 April 2007 17:12, Sara wrote: I have directory from which users are downloading files directly using FTP client (no browser). If I can run a script or program, which could tell me as which files have been downloaded? File::Stat changes? if they simply download the file from

Re: Signature

2007-02-13 Thread Sean Davis
On Tuesday 13 February 2007 05:16, Rajesh Raghammudi wrote: I have a project on perl, and at certain place, need to print a document with the signature of the user. Is there any way to caputre the signature of the user while taking his inforamtion? We should provide an option to write/draw his

Re: Merging Files in Perl

2007-02-02 Thread Sean Davis
On Friday 02 February 2007 08:15, Akbar Ehsan wrote: Thanks. The cat command worked. Can I add a line break at the end of the content of each file? Just print a line break in each file before you close it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Quirky form field

2007-02-01 Thread Sean Davis
On Thursday 01 February 2007 13:37, Akbar Ehsan wrote: Hello, Can two scripts be triggered when a form is submitted: one to email form results to various users and the other to count and write to a file the number of times the users get emails from the form? No, not without some elaborate

Re: cgi.pm form save to .html

2007-01-10 Thread Sean Davis
On Tuesday 09 January 2007 22:22, Chris Henderson wrote: I'm trying to make a form using cgi.pm the output of which will be saved to a .html file. But the variables are not parsing correctly. If I put 3 names in 3 different places they all appear together instead of each appearing on each

Re: XSLT processing

2006-11-18 Thread Sean Davis
Brian Hancock wrote: Hi, My Perl script receives data back from a legacy database in the form of an XML file, which I want to process with an XSL template. I am thinking of using 'xsltproc' to process the file. The only way I have used xsltproc is as a commandline , eg system('xsltproc

Re: [cgiapp] CGI Script to pass a file to different servers

2006-07-06 Thread Sean Davis
On 7/6/06 3:00 PM, I BioKid [EMAIL PROTECTED] wrote: Dear All, We have 3 inhouse web servers and 2 remote web servers. All of this web server accept same type of files as input : say foo.txt (these file contain some data and the 5 web server will process it and gives its respective

Re: Multiple .cgi scripts vs. one large script

2006-06-14 Thread Sean Davis
Moore, George T. wrote: It depends on how you are using your scripts. The most expensive aspect of the files is the IO used to read them from the hard drive they reside on. If you are calling on the scripts multiple times and they have to be read each time, rather than being cached in memory,

Re: Need help parsing QUERY_STRING_UNESCAPED

2006-05-23 Thread Sean Davis
On 5/23/06 5:09 AM, Dennis G. Wicks [EMAIL PROTECTED] wrote: Sean Davis wrote: Dennis G. Wicks wrote: Greetings; I have discovered that under some conditions QUERY_STRING is set and under other conditions QUERY_STRING_UNESCAPED is set. I can detect these conditions but I can't find

Re: Need help parsing QUERY_STRING_UNESCAPED

2006-05-22 Thread Sean Davis
Dennis G. Wicks wrote: Greetings; I have discovered that under some conditions QUERY_STRING is set and under other conditions QUERY_STRING_UNESCAPED is set. I can detect these conditions but I can't find out how to get the contents of QUERY_STRING_UNESCAPED transformed to the form it would

Re: How to do a static variable that persists from page to page

2006-04-28 Thread Sean Davis
On 4/27/06 10:19 PM, Mary Anderson [EMAIL PROTECTED] wrote: Hi, I have a cgi program that pulls data out of a database and stores it in an array ref. I would like to display this data one row at a time. Unfortunately I am having difficulty getting the current index to persist

Re: remote user and remote password request

2006-03-14 Thread Sean Davis
On 3/13/06 7:59 AM, Carla Wilbert [EMAIL PROTECTED] wrote: Hi, I must login to access a website on an Apache webserver because the access to the site is restricted with .htaccess file. So a window with username and password request pop up. For my program I need also the login

Re: @INC

2006-03-13 Thread Sean Davis
If you are using bash as you shell, something like: export PERL5LIB=${PERL5LIB}:/usr/local/project/packages That will set the global search path for perl to find modules to include '/usr/local/project/packages'. However, the better way to handle this is to set up a directory that you use for

Re: newbie needs help on hidden and CGI parameters

2006-03-09 Thread Sean Davis
You realize that hidden fields are not hidden, right? You just have to view the source of the page in which they are embedded and you now know the username and password, and that with every round-trip to the server, this information is sent in plain-text (unless you are using SSL)? I would read

Re: Performance Degradation of ActivePerl CGI script under IIS

2006-03-07 Thread Sean Davis
I'm not a windows person, but you could try something simple like looking at the task manager. What does your task manager show as the process at the time that this is happening? Is there a process that shows 100% CPU during that time? Sean On 3/7/06 5:23 PM, Mary Anderson [EMAIL PROTECTED]

Re: Filering a file

2005-12-05 Thread Sean Davis
On 12/5/05 8:20 AM, Adedayo Adeyeye [EMAIL PROTECTED] wrote: I have a file that contains a listing of names like: John Paul Kate Paul Charles Kate How do I write a script to parse through this file and just return the unique names. Ie I want the repetitions ignored.

Re: Filering a file

2005-12-05 Thread Sean Davis
On 12/5/05 9:47 AM, Chris Devers [EMAIL PROTECTED] wrote: On Mon, 5 Dec 2005, Sean Davis wrote: See here: http://mumble.mumble.ua Please do not link to this site. These are pirated copies of the books in question, hosted on a Ukranian web server without the authorization

Re: Stress-test server

2005-11-14 Thread Sean Davis
On 11/14/05 11:25 AM, Dermot Paikkos [EMAIL PROTECTED] wrote: Hi, I would like to see what happens to my web server if I get 50-60 connections all posting requests to it. Can anyone suggest a module that might help (WWW.Mechanize perhaps). If you are using Apache, it comes with 'ab'

Re: cookies as hidden files

2005-09-16 Thread Sean Davis
On 9/16/05 12:08 AM, Denzil Kruse [EMAIL PROTECTED] wrote: Hi all, I read through the docs for CGI::Cookie and learned how to set a cookie. I do it with line: my $cookie = new CGI::Cookie(-name='name', -value=$name,

Re: Perl DBI / SQL Question

2005-09-15 Thread Sean Davis
On 9/14/05 8:32 PM, Vance M. Allen [EMAIL PROTECTED] wrote: I use MySQL 4.1.7 under Fedora Core 3. Vance Bob Showalter [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Vance M. Allen wrote: I need to know how to retrieve through Perl DBI a listing of possible ENUM elements

Re: export to text file

2005-06-08 Thread Sean Davis
You can also often just save the file as HTML and load it directly in Excel, if all you need is the export. Sean On Jun 8, 2005, at 5:48 AM, Thomas Bätzler wrote: Sara [EMAIL PROTECTED] suggested: I always used 'phpmyAdmin' for such tasks. Give it a try. Great idea! That's like handing

Re: hash array sorting

2005-06-03 Thread Sean Davis
Look at using lc (lower case). It can make your sort case-insensitive. On Jun 3, 2005, at 7:17 PM, Mike Blezien wrote: Hello, ran into a strange problem when doing a sort. we have a file like this: 0::Accounts;Local Language 1::Anatomy;Local Language 2::Arabic;Local Language

Re: Recommended approaches for exceptions, stacktraces, error messages

2005-05-16 Thread Sean Davis
Hi, Siegfried. Did you look in the browser error_log? It typically contains more information. On many unices, it is in /usr/local/apache/logs. However, I'm not sure where it is on your system. A more perl approach is to do: use CGI::Carp qw(fatals_to_browser); This will redirect fatal errors

Re: Perl equivelant

2005-05-02 Thread Sean Davis
- Original Message - From: Mike Blezien [EMAIL PROTECTED] To: Perl List beginners-cgi@perl.org Sent: Monday, May 02, 2005 8:20 PM Subject: Perl equivelant Hello, Hoping we have some expert MySQL Function to perl function people on the list. Is there an equivelant function in perl for

Re: PATH problem

2005-04-25 Thread Sean Davis
Not sure this is the problem, but remember that when you run a CGI script from the command line, you are running as yourself. When you run it in the browser, you are running under whatever username and group the server is running with (and almost always this is different from yourself). So,

Re: Remote Desktop

2005-04-20 Thread Sean Davis
Rajesh, I may be misunderstanding your question, but you want to capture something OUTSIDE of the web browser window? I hope this IS NOT possible via a web-based application (and I think is not). If this is done inside an intranet or some other controlled environment, you could use a remote

Re: Preventing CPU spikes / was switch confusion

2005-04-14 Thread Sean Davis
On Apr 14, 2005, at 2:09 PM, Charles K. Clarkson wrote: How about skipping the Switch stuff and using something like this. use CGI qw/:standard Button/; . . . if ( param() ) { if ( param( 'action' ) =~ /Upload/ ) { # call upload sub } elsif ( param( 'action' ) =~

Re: Content_Length

2005-02-03 Thread Sean Davis
Content length includes all the content, including names of form parameters, etc. If you want to count the keystrokes for a form, you could just run through the form parameters and get the length of each value (assuming they are all text fields). Check out these two links to the CGI.pm

Re: embedding dynamic images in html output

2005-01-21 Thread Sean Davis
On Jan 21, 2005, at 10:05 AM, Chad Gard wrote: On Jan 21, 2005, at 9:56 AM, David Dorward wrote: How about passing it the data it needs to make a suitable database request? That's what I'll do if I can't make it work the way I want. However, I'd like to be able to avoid the overhead of

Re: embedding dynamic images in html output

2005-01-21 Thread Sean Davis
On Jan 21, 2005, at 11:03 AM, Chad Gard wrote: On Jan 21, 2005, at 10:22 AM, Sean Davis wrote: Do these need to all be generated on-the-fly? Or is there a way to create them first (one time a day, for example) and serve them as static images? They need to be generated on-the-fly, as the data

Re: Database Rows Returned

2005-01-05 Thread Sean Davis
On Jan 4, 2005, at 11:07 PM, Literatecat wrote: Hi Sean, I do already have some of the books that you mention, and I have just recently picked up the perl medic to help convert these scripts to the latest version of perl. However, as I already use hidden fields and have started working on

Re: Database Rows Returned

2005-01-04 Thread Sean Davis
- Original Message - From: Literatecat [EMAIL PROTECTED] To: Sean Davis [EMAIL PROTECTED] Cc: beginners-cgi@perl.org Sent: Tuesday, January 04, 2005 7:29 PM Subject: Re: Database Rows Returned Hi Sean, The max_rows_returned is set in the setup file, but it simply determines the number of rows per

Re: Database Rows Returned

2005-01-03 Thread Sean Davis
Cat, Unfortunately, you haven't given us the business end of your script. Unless you can tell us where $db_status and $total_rows_returned comes from, it is unlikely that we will be able to help much. Sean - Original Message - From: Cat [EMAIL PROTECTED] To: beginners-cgi@perl.org

Re: Browser times out

2004-12-30 Thread Sean Davis
On Dec 30, 2004, at 1:54 PM, Denzil Kruse wrote: --- Bob Showalter [EMAIL PROTECTED] wrote: snip Is there a way to tell the browser to hang around a bit longer to wait for a response? Or is there another way to keep the browser's attention so it knows it has a live connection and to wait? One way

Re: mod_perl questions

2004-12-18 Thread Sean Davis
Greg, You will probably need to read some documentation: http://perl.apache.org/docs/index.html http://perl.apache.org/docs/1.0/guide/porting.html Note that last one is mod_perl-based, not mod_perl2, but it is a reasonable introduction. Also, the mod_perl book is available online:

Re: Using a CSS file

2004-12-08 Thread Sean Davis
On Dec 8, 2004, at 10:52 AM, David Dorward wrote: On Wed, Dec 08, 2004 at 07:47:09AM -0800, Graeme St. Clair wrote: [Wed Dec 08 10:30:01 2004] [error] [client ###.###.###.###] c:/program files/perl_apache/apache/cgi-bin/fred/blah.css is not executable; ensure interpreted scripts have #! first

Re: output buffering

2004-11-30 Thread Sean Davis
On Nov 30, 2004, at 1:42 AM, Ing. Branislav Gerzo wrote: Sean Davis [SD], on Monday, November 29, 2004 at 17:45 (-0500) has on mind: SD Probably the simplest way is to save all your output into a variable, say SD $html, rather than printing directly, as you would typically. Then, make a SD

Re: output buffering

2004-11-29 Thread Sean Davis
Probably the simplest way is to save all your output into a variable, say $html, rather than printing directly, as you would typically. Then, make a simple function that displays $html and performs any filtering you like. Such a subroutine might look like: #somewhere in the code my

Forcing download of compressed file

2004-11-23 Thread Sean Davis
I have a simple question: I have a file that is a tar.gz file that I want download to the user when a form is submitted. The file is static and I know how to set headers, etc., for download. Is there a specific header type for tar.gz files (so that the browser will try to uncompress, etc.)?

Re: Forcing download of compressed file

2004-11-23 Thread Sean Davis
%s:T_REG:O_COMPRESS:GZIP - Original Message - From: Sean Davis To: '[EMAIL PROTECTED]' Lists Subject: Forcing download of compressed file Date: Tue, 23 Nov 2004 08:11:08 -0500 I have a simple question: I have a file that is a tar.gz file that I want download to the user when a form is submitted

Re: question about doing it right in CGI

2004-11-22 Thread Sean Davis
I use the object-oriented interface pretty much exclusively. There are good examples of creating a popup menu in the documentation for CGI. (You know about http://search.cpan.org?) Also, there are multiple websites describing use of CGI.pm. I would suggest that you start with a simple cgi

Re: Reducing load on server.

2004-11-20 Thread Sean Davis
Sara, If your msg column has known values (like an auto_increment column), you could select those rows directly. I think the reason that all the rows are selected first by the SQL server is because of the order by. Therefore, if you could select msg between a and b, that could improve the

Re: screen size...

2004-11-05 Thread Sean Davis
On Nov 4, 2004, at 10:03 PM, Luinrandir Hernsen wrote: Ok.. now how do I get the screen size info to a hidden input (in a form) or send back to a cgi ? I'm guessing as a hiiden input with in a form or as part of the link command, which calls the game.cgi?W=WvarH=Hvar p + A HREF='game.cgi?W= +

Re: Output of a command executed by system

2004-10-21 Thread Sean Davis
If the output is to stderr for some reason, you could try /dev/null. Sean On Oct 21, 2004, at 7:36 AM, Jan Eden wrote: Hi, this must be simple, but I cannot seem to find it: When executing a command via system within a CGI script, the command's output appears in my browser. I do not use

Re: Need a little help with a sub.

2004-10-14 Thread Sean Davis
If you have two hashes, you are probably better off passing by reference, otherwise the first hash will slurp up the second hash on the [EMAIL PROTECTED] Something like Navigate(\%modules,\%settings); sub Navigate { my ($module_ref,$settings_ref)[EMAIL PROTECTED]; Sean On Oct 14, 2004,

Configuration page

2004-10-05 Thread Sean Davis
I have an application that requires a configuration to be done before some pages can be displayed. I have a hook in my code to divert to the configuration if it hasn't occurred for the active session (I keep a session ID). However, I'm having a hard time conceptualizing how to store the

Re: moving files

2004-09-30 Thread Sean Davis
HTTP header, I imagine. There is a section in the CGI documentation about generating these headers. Sean On Sep 30, 2004, at 12:25 AM, Jeff Herbeck wrote: So, what kind of header are we talking about here. (I'm still learning) Jeff On Wed, 29 Sep 2004 12:43:46 -0600, Wiggins d Anconia [EMAIL

Re: session ids?

2004-09-22 Thread Sean Davis
Bryan, You might want to look into CGI::Session (on http://search.cpan.org, our best perl friend). Like much of the grunt work in perl, someone has already done the vast majority of the work for us and done it right. Sean On Sep 22, 2004, at 2:27 AM, Bryan Harris wrote: I'm still very much a

Quick table format question

2004-09-14 Thread Sean Davis
All, Slightly off-topic, but I have a script that dynamically generates a table. Within this outer table, I have in each cell another table with 1 row, with each cell having a background color and containing only nbsp entity. I would like to make each of these inner cells a fixed width,

Re: Quick table format question

2004-09-14 Thread Sean Davis
Thanks Chris and Gunnar. Setting the inner table width worked, but I can see that using CSS would offer significant benefits and I will need to migrate that direction at some point. It seems like the table version seems to work on many browsers--is the [envisioned] CSS solution also

Several images from same cgi script

2004-09-13 Thread Sean Davis
I have a cgi-script that needs to generate a batch of images and insert them into the HTML. I am currently doing this using a helper script that does the generation for each image and the call to this script and parameters are in an img tag. However, if I submit this page to the server,

Re: table with variables

2004-09-10 Thread Sean Davis
Just print 'table' and '/table' separately. Then, you are free to when necessary. Alternatively, if you are doing a good deal of this, look at HTML::Template on cpan--quite nice for doing this type of thing. Sean On Sep 9, 2004, at 6:20 PM, Ing. Branislav Gerzo wrote: Hi CGIers! I have small

CGI parameter question

2004-09-08 Thread Sean Davis
I have the following html and CGI subroutine that handles it (uses HTML::Template). I would like to reload the page, switching to another page when the user changes the pull-down menu. This works fine. However, as you can see, there is another parameter, name, that I is included with

Re: CGI parameter question

2004-09-08 Thread Sean Davis
Another good point to know. I will try something like that. Sean On Sep 8, 2004, at 11:11 AM, William McKee wrote: On Wed, Sep 08, 2004 at 11:06:58AM -0400, Sean Davis wrote: Thanks for the clarification. This is as I suspected and not hard. I guess I have to do reset on my own, then, as well

Re: PHPerl

2004-09-08 Thread Sean Davis
http://perl.apache.org/embperl/ On Sep 8, 2004, at 11:56 AM, Octavian Rasnita wrote: Hi all, Is there a way to embed Perl programs in html like PHP can do? I heard that Perl can be used in ASP files, but I am wondering if there is an Apache module for that task. It would be cool to exist such a

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-06 Thread Sean Davis
White space (including carriage returns) is ignored by HTML, generally. Try surrounding your text output by the pre tag (preformatted text). Does this do what you want? Sean On 9/6/04 20:10, Robert Page IV [EMAIL PROTECTED] wrote: I am trying to write a simple weekly entry CGI script and I

Constructing form for SQL query dynamically

2004-09-06 Thread Sean Davis
I have a database of values, each of which belongs to one of several categories. I want to allow the user to choose one to several category/value pairs. In other words, I would like to be able to do stuff like A23, B5, and C7. I can do this with three list-boxes and corresponding text boxes,

Re: ODBC

2004-09-01 Thread Sean Davis
On Aug 31, 2004, at 4:15 PM, Rearick, Kenneth N. wrote: Is there anyway to see the errors that the DBI:ODBC is generating when the application is being run from the server? Any ideas why the ODBC connect is failing? $dbh = DBI-connect(DBI:ODBC:$SERVER, $USER, $PASSWORD); You can put catch errors

Re: CGI Problem

2004-08-26 Thread Sean Davis
Dimitra, Generally, the CGI script has to have permissions to run the executable. The executable has to be supplied input, typically from a command line input (via system call) or from a file written to disk and read by the executable (or piped, etc.). The output of the executable needs to

path/executable question

2004-07-30 Thread Sean Davis
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 to CGI (after adding

Re: path/executable question

2004-07-30 Thread Sean Davis
Jan, Thanks for the reply. Since 'neato' is an executable on my system, I ended up setting my environment path using $ENV{'PATH'}, which fixed the problem. Sean On Jul 30, 2004, at 7:44 AM, Jan Eden wrote: Hi Sean, Sean Davis wrote on 30.07.2004: I have a script that queries a database

File upload question

2004-07-27 Thread Sean Davis
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 script, it works fine.

Re: File upload question

2004-07-27 Thread Sean Davis
Bob, Thanks. That was the issue. Sean On Jul 27, 2004, at 1:31 PM, Bob Showalter wrote: 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

tempfile permissions

2004-07-23 Thread Sean Davis
I am writing a file (created using File::Temp) to a directory in my webserver documents directory. I cannot access it from my script afterwards. It is a graphic created by the script that I then want to display in an html page. Everything works except that I get an error that I don't have

Re: Running BLAST using RemoteBlast.pm

2004-07-20 Thread Sean Davis
Jane, You should probably look at the BioPerl tutorial (http://www.bioperl.org/Core/Latest/ bptutorial.html#iii.4.1_running_blast_(using_remoteblast.pm). There are many tools for doing such things. Sean On Jul 20, 2004, at 12:08 PM, Jane Sun wrote: Where can I find the examples or source

Re: please help to solve the problem: Error message: Premature end of script headers

2004-07-09 Thread Sean Davis
I would try to locate the file error_log. It contains the errors generated by webpages/cgi. This may give you the answer. I assume that your script works with tests from the command line, etc.? Sean On 7/9/04 5:12 AM, nobody [EMAIL PROTECTED] wrote: Hi all, I have received the respond

Re: Unexpected CGI and HTML

2004-06-25 Thread Sean Davis
Thanks for the replies, William and Wiggins. My misconception was that some cgi.pm methods return strings, and some return arrays. I was assuming that all were strings--performing a join on the arrays to get simple strings fixes the problem. Sean On 6/24/04 2:44 PM, Wiggins d Anconia [EMAIL

Unexpected CGI and HTML

2004-06-24 Thread Sean Davis
I have an odd result (at least to me) that I can't explain. I am using CGI::Application and have the following subroutine that returns $output, the html for the page (only a toy example, but illustrates the point, I think): sub return_probe_details { # Get OligoMap object (actually, just