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 wrote: > Does anyone know where I ca

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 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) = $myChart->plot(\...@data) or die

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 wrote: > 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 passed, then have the

Re: Send email using SMTP

2009-01-06 Thread Sean Davis
On Tue, Jan 6, 2009 at 7:17 AM, Fúlvio 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, jody_rrhq_fa...@

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 wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mike Williams wrote: >> On Sun, Dec 14, 2008 at 1:28 PM, Adam Jimerson wrote: >>> On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: >>

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 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 tha

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 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 > look but I ca

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 fe

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

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 ins

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 da

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 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 ## > > > http://mysite.com/link/here_goes?id=239";>LINK > >   > > > http://mysite.com/link/here_goes?id=239";>LINK > width="150">06/11/2007 12:29AM > > > #

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 l

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 dir

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

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 us

Re: pushing web form params into mysql table

2007-06-29 Thread Sean Davis
Aaron Reist wrote: How I get off this mailing list? I tried the link at the bottom of the message, (many times) but it doesnt seem to work. http://learn.perl.org/faq/beginners-cgi.html#1.2%20%20how%20do%20i%20unsubscribe -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: pushing web form params into mysql table

2007-06-28 Thread Sean Davis
at perform inserts, deletes, updates, and selects and wrap everything in the appropriate error handling. Alternatively, there are a number of higher-level interfaces (like DBIx::Simple) that have it built-in. Sean > ----

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 "$DB

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 PROTECT

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.

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

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

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

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

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 elaborat

Re: A Few Questions

2007-01-23 Thread Sean Davis
On Tuesday 23 January 2007 17:08, Akbar Ehsan wrote: > Hello, > > I am working on a CGI script. It works fine from the command prompt. > > I am using Net::SMTP and strict. > > When I try to pass this script through a web parameter, it ends in > "Internal Server Error". You will need to look in you

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 i

Re: About MVC framework

2006-12-20 Thread Sean Davis
Wan wrote: On Wed, Dec 20, 2006 at 04:54:15PM +0800, Wan wrote: I'm looking for a MVC framework that fast in develop and run. and I don't want to build it myself, please recommend someome. http://search.cpan.org/search?query=MVC (Catalyst is probably the most popular option these days. It get

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: read-only textfields?

2006-09-11 Thread Sean Davis
Mary Anderson wrote: I want users to be able to edit entries that have been stored in a database. The user types in an ID. A form appears with an ID textfield containing that ID and the other info from the database. I would like to have that ID appear in a read only textfield so that the use

Re: Print to new file for each results

2006-08-29 Thread Sean Davis
Ron McKeever wrote: I am try to use part of someones elses code that creats the data file which prints out like this: ip|result|deptA|data ip|result|deptB|data ip|result|deptC|data My goal instead of having all the data in one big file is to loop this and create a file for each result. So I w

Re: One more time: Need to update a table with a form

2006-08-25 Thread Sean Davis
On 8/25/06 10:06 AM, "Dennis G. Wicks" <[EMAIL PROTECTED]> wrote: > > Thanks for the responses to my previous post, but everyone > missed the key points. > > 1 - I already have a form that creates html files. > All that is in the html file is one table. > > 2 - There are already many of

Re: Answering a XMLHttpRequest without using CGI::Ajax

2006-08-08 Thread Sean Davis
On 8/8/06 7:59 AM, "Marcus Willemsen" <[EMAIL PROTECTED]> wrote: > Hi everybody, > > Like almost everybody else I know I'm playing around with AJAX related > techniques. Instead of switching over to PHP I'd like to go on using Perl to > handle my XMLHttpRequests and to query my databases in th

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 respec

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

Re: Need help parsing QUERY_STRING_UNESCAPED

2006-05-23 Thread Sean Davis
On 5/23/06 12:15 PM, "Ovid" <[EMAIL PROTECTED]> wrote: > --- "Dennis G. Wicks" <[EMAIL PROTECTED]> wrote: >> Sean, >> >> Thanks, but no cigar. CGI and several modules on CPAN will >> process QUERY_STRING but I can't find any modules that do >> anything with QUERY_STRING_UNESCAPED. And unfortun

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 oth

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 be

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 t

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 logi

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 al

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

2005-12-30 Thread Sean Davis
On 12/30/05 7:50 AM, "Thom Hehl" <[EMAIL PROTECTED]> wrote: > We do IDX-enabled Real Estate software for Real Estate brokerages. As > part of this, I want to be able to save searches and e-mail the results > to an e-mail address once a week. > > What I'm concerned about is someone picking up t

Re: Storing a search string

2005-12-15 Thread Sean Davis
On 12/15/05 3:26 PM, "Thom Hehl" <[EMAIL PROTECTED]> wrote: > I have a screen that is gotten to by a rather elaborate search string. I > want to put a button on that page that calls a CGI and passes it > location.href, which has all of the parameters I need to get back to > that page. The probl

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:// > > Please do not link to this site. > > These are pirated copies of the books in question, hosted on a Uk

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

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: text/xml

2005-11-03 Thread Sean Davis
On 11/3/05 3:46 AM, "Dermot Paikkos" <[EMAIL PROTECTED]> wrote: > Hi, > > First off apologies if this is OT but I am trying to get my head > around something. In the near future I will work with a system that > responds with: > Content-type: text/xml (\n\n) > > > The idea is to get statistical

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

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 l

Re: hash array sorting

2005-06-03 Thread Sean Davis
Untested: foreach $key (sort { lc($lang->{$a}->[0]) cmp lc($lang->{$b}->[0]) } keys(%{$lang})) Sean - Original Message - From: "Mike Blezien" <[EMAIL PROTECTED]> To: "Sean Davis" <[EMAIL PROTECTED]> Cc: "Perl List" Sent:

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: Recomdations for Template Plugins for Windows/CGI/ApacheHTTP

2005-05-16 Thread Sean Davis
- Original Message - From: "Siegfried Heintze" <[EMAIL PROTECTED]> To: Sent: Monday, May 16, 2005 7:01 PM Subject: Recomdations for Template Plugins for Windows/CGI/ApacheHTTP Does anyone use Template::Plugin on windows/cgi/ApacheHTTP? Template::Plugin::GD::Text looks very intriguing an

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 error

Re: Perl equivelant

2005-05-02 Thread Sean Davis
- Original Message - From: "Mike Blezien" <[EMAIL PROTECTED]> To: "Perl List" 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 converting IP's,

Re: [NOVICE] calling perl program within a cgi script with parameters from html form

2005-04-26 Thread Sean Davis
This isn't really the right email list for this question. Try this list instead (to which I have moved the discussion). beginners-cgi@perl.org However, this likely has to do with privileges to execute your perl script. In the last couple of days, the beginners-cgi list has answered your quest

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

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 d

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' ) =~ /Up

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 do

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

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 scrip

Re: Database Rows Returned

2005-01-04 Thread Sean Davis
ign. Sean - Original Message - From: "Literatecat" <[EMAIL PROTECTED]> To: "Sean Davis" <[EMAIL PROTECTED]> Cc: 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 determine

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: Sent: Monday, January

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: 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: http://modperl

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

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 $html='

Re: Forcing download of compressed file

2004-11-23 Thread Sean Davis
in/gzip -9 -c %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

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.)? H

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 sc

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=Wvar&H=Hvar "" + "click here"+ "" yes ?

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 CGI

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,

Re: "Configuration" page

2004-10-06 Thread Sean Davis
My original post was about how to save state information when there is an "interruption" by a configuration page (or something like that) in the normal CGI flow from one page to the next. I wasn't clear on what I can do from this point of view. I can determine whether to call the configuratio

"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 state

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

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 general

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   entity. I would like to make each of these inner cells a fixed width, but

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

Re: table with variables

2004-09-10 Thread Sean Davis
Just print '' and '' 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 question ab

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 t

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: CGI parameter question

2004-09-08 Thread Sean Davis
William, 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? Sean On Sep 8, 2004, at 10:46 AM, William McKee wrote: On Wed, Sep 08, 2004 at 09:18:17AM -0400, Sean Davis wrote: I would like to be able to have the page switch

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 the

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 A>23, B<5, and C>7. I can do this with three list-boxes and corresponding text boxes,

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

  1   2   >