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.
>
> -
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
>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
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
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
> "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
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/
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
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
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
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
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
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
> > 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.
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
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. :)
> "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
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 <[
--- 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
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
> -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
>
> 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
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
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
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
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
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
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
I wrote:
: You should have to write this yourself.
Sorry, that should have been:
You should *not* have to write this for yourself.
-- tdk
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.
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
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
>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
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
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
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
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
37 matches
Mail list logo