Re: queryString and CGI.

2001-06-19 Thread Greg Jetter
On Monday 18 June 2001 22:35, Vontel Girish wrote: > I have just started to create a sample online store > with Unix OS, Apache web server, CGI with perl and > MySQL database. > > The perl program given below splits the querystring > into Name value pairs. > > -

Re: Slightly OT: Kenneth Copeland and regexps?

2001-06-19 Thread Mel Matsuoka
I wrote: > > $word .= 'o' x $starlength; of course i meant to say: $word .= '*' x $starlength; Food takes priority over proper perl syntax right now :) mel matsuoka Hawaiian Image Productions Chief Executiv

Slightly OT: Kenneth Copeland and regexps?

2001-06-19 Thread Mel Matsuoka
>Delivered-To: [EMAIL PROTECTED] >From: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Rejected Message >Date: Tue, 19 Jun 2001 20:46:45 + > >Content-Type: text/plain; > >The attached mail message has been rejected for the following reason: > >Body contains word/phrase 'D*mn ' > >Additiona

perl

2001-06-19 Thread lynn bui
How do you write a command in perl to tell it to go to a certain page layout based on a specific selection from a drop down menu. e.g (example) there are 4 selections in the drop down list(A, B C, and D). They all direct to the same form once selcted, but in form D there is an extra fiel

Re: converting MS access DB to mysql

2001-06-19 Thread Mel Matsuoka
At 01:07 AM 06/19/2001 +0100, you wrote: >i have an Ms Access DB and need to use it on a linux web server !! > >does anyone know how i can go about converting it to Mysql or suchlike ?? >as it is quite large. !! I have used a Access module called "exportsql", which you can get at http://www.cy

Re: Help w/ Reseting Counter

2001-06-19 Thread Randal L. Schwartz
> "Scott" == Scott <[EMAIL PROTECTED]> writes: Scott> http://www.red2.org/dailykount.txt Yup, no locking whatsoever. Two hits come through at the same time and BLAMMO, you get a zero count because one is reading the empty file that the other is creating. See File::CounterFile in the CPAN

Help w/ Reseting Counter

2001-06-19 Thread Scott
I have a counter script that keeps on reseting, I can't figure out why. It keeps track of the total hits, daily hits, and will archive the info for the day to an archive data file. Any help would be appreciated. I'll link you to the code so your e-mail is filled with it. http://www.red2.org/

Re: Server Push - ditto

2001-06-19 Thread Curtis Poe
This link should have several examples of what you are looking for. http://stein.cshl.org/WWW/software/CGI/examples/ --- "Moon, John" <[EMAIL PROTECTED]> wrote: > Ditto ... any body doing this ?... I too want to uses frames to send a > message to another frame without regenerating the form in th

Server Push - ditto

2001-06-19 Thread Moon, John
Ditto ... any body doing this ?... I too want to uses frames to send a message to another frame without regenerating the form in the originating frame ... or is there a CGI solution I'm not seeing ? John W Moon -Original Message- From: Geraint Jones [mailto:[EMAIL PROTECTED]] Sent: June

Re: XML problem

2001-06-19 Thread Aaron Craig
Could you give us an example of the HTML you want to produce? At 11:33 19.06.2001 +0200, Morgan wrote: >Hi > >I'm newbee perl-cgi developer and a rookie of xml :( > >Is there anyone who can give me some hints or help me out with a problem >I have? > >Here is the problem. >I will recive newsarticl

Re: parsing character by character and printing

2001-06-19 Thread Aaron Craig
In general, I would urge you to read the built-in functions for strings and scalars in the Perl documentation. That said, an easy way to get the first fifty characters of a string (ie a substring of a string) use my $substring = substr($row, 0, 50); # $row is the string, 0 is the starting poin

Re: XML problem

2001-06-19 Thread Aaron Craig
Could you give us an example of the HTML you want to produce? At 11:33 19.06.2001 +0200, Morgan wrote: >Hi > >I'm newbee perl-cgi developer and a rookie of xml :( > >Is there anyone who can give me some hints or help me out with a problem >I have? > >Here is the problem. >I will recive newsarticl

Re: parsing character by character and printing

2001-06-19 Thread Aaron Craig
In general, I would urge you to read the built-in functions for strings and scalars in the Perl documentation. That said, an easy way to get the first fifty characters of a string (ie a substring of a string) use my $substring = substr($row, 0, 50); # $row is the string, 0 is the starting poin

Re: binaries of DBI, DBD::mysql, CGI

2001-06-19 Thread Aaron Craig
> > HTML and the Database. Now I want to use Perl as language that does the > > cgi-stuff. I know, I ought to use the modules DBI, DBD::mysql and CGI, > > but my test-server runs on my desktop-pc with windows on it. As the > > modules come as sourcecode, i would have to compile them to use them.

Re: Re: Running CGI's locally

2001-06-19 Thread Michael D . Risser
On Tuesday 19 June 2001 09:38 am, you wrote: > On Tuesday 19 June 2001 09:06 am, you wrote: > > You also have to make sure that Apache is set up > > to serve local host. It doesn't come that way > > as a default. > > Tell me how to do that. I'm a real newbie and have been wanting to do > this for

Re: Re: Running CGI's locally

2001-06-19 Thread Bob Rea
On Tuesday 19 June 2001 09:06 am, you wrote: > You also have to make sure that Apache is set up > to serve local host. It doesn't come that way > as a default. Tell me how to do that. I'm a real newbie and have been wanting to do this for a while, but i need some handholding occasionally. :)

Re: formatting and writing to file: getting the params

2001-06-19 Thread Randal L. Schwartz
> "Roger" == Roger C Haslock <[EMAIL PROTECTED]> writes: Roger> You have >> foreach my $name ( $cgi->param ) >> {print "$name\t" . $cgi->param( $name ) . "\n"; >> } Roger> You have to be careful with CGI::param; it returns a scalar for a scalar, Roger> and an arrayref for a list. Not un

RE: Re: Running CGI's locally

2001-06-19 Thread kotto
You also have to make sure that Apache is set up to serve local host. It doesn't come that way as a default. -Original Message- From: Curtis Poe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 11:12 AM To: CGI Beginners Subject: Re: Re: Running CGI's locally --- Adam Carson <[

Re: Re: Running CGI's locally

2001-06-19 Thread Curtis Poe
--- Adam Carson <[EMAIL PROTECTED]> wrote: > OK. I have Apache installled and running. I put my test page in the htdocs folder. > I put the > perl files in the cgi-bin. I made sure the HTML was pointing to the cgi-bin in the >ACTION > setting. I made sure Apache was set to run files in the c

Re: Re: Running CGI's locally

2001-06-19 Thread Adam Carson
OK. I have Apache installled and running. I put my test page in the htdocs folder. I put the perl files in the cgi-bin. I made sure the HTML was pointing to the cgi-bin in the ACTION setting. I made sure Apache was set to run files in the cgi-bin. It still doesn't work. Do I need the she

RE: How to generate a table ?

2001-06-19 Thread Tillema, Glenn
> -Original Message- > From: Moon, John [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 7:36 PM > To: Tillema, Glenn; 'Curtis Poe'; [EMAIL PROTECTED] > Subject: RE: How to generate a table ? > > > Glenn & Curtis; > > Thanks for the suggestions ... but more thanks to both you >

Re: converting MS access DB to mysql

2001-06-19 Thread Jon Farmer
> i have an Ms Access DB and need to use it on a linux web server !! > > does anyone know how i can go about converting it to Mysql or suchlike > ?? as it is quite large. !! Save the tables out from Access as CSV and import them into MySQL. If you want to use the Access frontend with MySQL get

Re: Re: Running CGI

2001-06-19 Thread Mark Bergeron
First you have to tell us what operating sys. you want to use for this. Then we can help you install a webserver. (apache or IIS). Then you have to install Perl for the Op. sys. (*nix or win32) Then we'll have to get you setup with a type of Mailer that will let you send things to Groupwise. It

RE: Running CGI's locally

2001-06-19 Thread Kris Cook
I stumbled through this myself, so here are the things I stubbed MY toes on: First, if you're running on a desktop OS (NT Workstation), you'll need Personal Web Server or IIS loaded, or Apache if you prefer. My PWS said it was loaded, but my Perl scripts would not generate CGI (they opened a DOS

RE: Running CGI's locally

2001-06-19 Thread Tillema, Glenn
Adam, The scripts need to be run from a server that supports Perl and Perl scripts; usually this is Apache and Perl or Microsoft Internet Information Server and Perl. If you are interested in running a Web server and Perl on your own computer I would suggest you read-up on Apache for Win32 at h

RE: Running CGI's locally

2001-06-19 Thread Adam Carson
I am not running any web server program. I was trying to just run the scripts on the machine I was using. Should I have a web server program? >>> <[EMAIL PROTECTED]> 06/19/01 10:21AM >>> What web server program are you using? -Original Message- From: Adam Carson [mailto:[EMAIL PROTECT

RE: Running CGI's locally

2001-06-19 Thread kotto
What web server program are you using? -Original Message- From: Adam Carson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 9:24 AM To: [EMAIL PROTECTED] Subject: Running CGI's locally I am trying to create a simple form in HTML for tech support requests for the county I work fo

Running CGI's locally

2001-06-19 Thread Adam Carson
I am trying to create a simple form in HTML for tech support requests for the county I work for. I just started even looking at Perl a few days ago, so a lot of this is confusing. In HTML, I have problems sending forms because my office uses Groupwise, which is not receiving data from the mai

Re: queryString and CGI.

2001-06-19 Thread Timothy Kimball
I wrote: : You should have to write this yourself. Sorry, that should have been: You should *not* have to write this for yourself. -- tdk

Re: queryString and CGI.

2001-06-19 Thread Timothy Kimball
Vontel Girish wrote: : CAN ANYONE TELL ME WHEN I AM WRITING A CGI PROGRAM : FOR CONNECTING TO MYSQL DATABASE AND DUMPING THE DATA : INTO THE TABLE, WILL I HAVE TO INCLUDE THE ABOVE PIECE : OF CODE FOR SPLITTING THE QUERYSTRING INTO NAME VALUE : PAIRS? You should have to write this yourself.

RE: XML problem

2001-06-19 Thread Straatman, Mat
Hi, Use the module XML::SimpleObject from the CPAN library. Read the man page to parse the part you want to have from the xml file. Greetings, Mat Straatman -Original Message- From: Morgan [mailto:[EMAIL PROTECTED]] Sent: dinsdag 19 juni 2001 11:34 To: [EMAIL PROTECTED] Subject: XML pr

Server Push

2001-06-19 Thread Geraint Jones
Hello list, I've just implemented a CGI script that uses a server push, and while it performs the required task, I was wondering if there is any way of improving it. For example, is it possible to use frames? That is, can I keep one frame static while updating another frame? Are there any reso

RE: parsing character by character and printing

2001-06-19 Thread mark crowe (JIC)
>I am trying to figure out how I can parse a row, character by >character, that I have retrieved from a database. You could try something like this: while ($row) { # while there are still characters left to look at ($char) = $row =~ s/(\w)//; # Removes the first word character of

XML problem

2001-06-19 Thread Morgan
Hi I'm newbee perl-cgi developer and a rookie of xml :( Is there anyone who can give me some hints or help me out with a problem I have? Here is the problem. I will recive newsarticles three times a day in xml format and I need to automaticly publish those articels on a web page, on the first p

Re: formatting and writing to file: getting the params

2001-06-19 Thread Roger C Haslock
You have > foreach my $name ( $cgi->param ) > {print "$name\t" . $cgi->param( $name ) . "\n"; > } You have to be careful with CGI::param; it returns a scalar for a scalar, and an arrayref for a list. May I suggest something like my %params = $cgi->Vars; foreach (keys %params) { my $para

RE: queryString and CGI.

2001-06-19 Thread Grierson, Garry (UK07)
I don't use MySql but if you are using CGI you can just do the following: use CGI; my $q = new CGI; my $value1 = $q->param( "first-passed-value" ); my $value2 = $q->param( "second-passed-value" ); my $value3 = $q->par

RE: formatting and writing to file

2001-06-19 Thread Grierson, Garry (UK07)
Are you outputting this to a HTML page? If so try replacing the new line "\n" code with the HTML "" command. Just a thought, Please ignore this if I'm being stupid... > -- > From: Teresa Raymond[SMTP:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 6:17 PM > To: [EMAIL P