Dir Denied

2001-10-25 Thread angelo . bettati
Hi to All, I use Win95 with Apache Server and, if I want to protect a special directory in which I put reserved files, I think that I have to act in the configuration file of Apache called httpd.conf The problem is that I don' t know the sintax to change the permits of a dir. (for example the dir

Re: Printing Hash Keys

2001-10-25 Thread Shannon Murdoch
The Perldoc (found out I can only use it under Windows, which I have running under an emulator) says this about keys: The keys are returned in an apparently random order. The actual random order is subject to change in future versions of perl, but it is guaranteed to be the same order as either t

Re: Printing Hash Keys

2001-10-25 Thread Shannon Murdoch
That's a great idea. What if the hash content is parsed by the CGI.pm and entered into the params hash using: use CGI qw(:standard :cgi-lib); my %params = Vars; What a pain... haha =) Could I go: use CGI qw(:standard :cgi-lib); my %params = Vars; my @keys = Vars; at all? I don't know enough

Re: Printing Hash Keys

2001-10-25 Thread matt jones
At 19:51 25/10/01 +1000, Shannon Murdoch wrote: > So I take it there is no way to list all the keys contained in a hash in > the same order they were entered in, like I can with a normal array? use Tie::IxHash; It makes hash functions return elements in insertion order, IIRC. -- mjx free love

Re: Dir Denied

2001-10-25 Thread RaFaL Pocztarski
[EMAIL PROTECTED] wrote: > if I want to protect a special directory in which I put reserved files, > I think that I have to act in the configuration file of Apache called > httpd.conf Try this: order deny,allow deny from all allow from 127.0.0.1 /path/to/your/dir is a physical path

Re: Auto-initialising a client-side download

2001-10-25 Thread RaFaL Pocztarski
Shannon Murdoch wrote: > That's correct Rafal, > All I want is a save dialog to come up asking if or where they want to save > the text file, instead of viewing it. I'm sure download.com and > versiontracker.com both use some sort of auto-download initiator script... Does the idea I suggested w

Dir Denied

2001-10-25 Thread angelo . bettati
Hi RaFaL, it is exactly what I want to do. I' ve tried with 127.0.0.1 and now all is protected. Thanks a lot !!! Bye Angelo -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Printing Hash Keys

2001-10-25 Thread Bob Showalter
> -Original Message- > From: Shannon Murdoch [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 25, 2001 5:51 AM > To: [EMAIL PROTECTED] > Subject: Re: Printing Hash Keys > > > ... Perldoc (found out I can only use it under Windows, which > I have running > under an emulator) ... Who

Re: Printing Hash Keys

2001-10-25 Thread Shannon Murdoch
Couldn't seem to locate it (using MacPerl) unfortunately. There is a few pods that came with it, but mostly I'm using The Perl CD Bookshelf by O'reilly & Associates for reference. It's on my PC system when I need it though. >> ... Perldoc (found out I can only use it under Windows, which >> I

RE: Printing Hash Keys

2001-10-25 Thread Bob Showalter
> -Original Message- > From: Shannon Murdoch [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 25, 2001 9:35 AM > To: [EMAIL PROTECTED] > Subject: Re: Printing Hash Keys > > > Couldn't seem to locate it (using MacPerl) unfortunately. > There is a few > pods that came with it, but mo

Re: Printing Hash Keys

2001-10-25 Thread RaFaL Pocztarski
Shannon Murdoch wrote: > > Couldn't seem to locate it (using MacPerl) unfortunately. There is a few > pods that came with it, but mostly I'm using The Perl CD Bookshelf by > O'reilly & Associates for reference. It's on my PC system when I need it > though. You can always use http://www.perldoc

trying to write to a file

2001-10-25 Thread Matthew Mangione
hey im trying to write to a file with just like 6 lines of code and it doesnt work so I need some help. here is the code: #!perl open DATA, "> mydata.dat"; unless ($success) { print "Problem Encountered"; die; } print DATA "Hi Matt"; thanxmatt

Re: trying to write to a file

2001-10-25 Thread Curtis Poe
--- Matthew Mangione <[EMAIL PROTECTED]> wrote: > hey im trying to write to a file with just like 6 lines of code and it doesnt work >so I need > some help. here is the code: > > #!perl > > open DATA, "> mydata.dat"; > > unless ($success) { > print "Problem Encountered"; > die; > } > > pri

questions

2001-10-25 Thread Gary M Rocco
hi! please consider the following: i downloaded the perl source from active state. is there an index of commands/instructions with syntax rules included in the download? if not, where might i find one? i am using windows 98. must i run scripts from the dos prompt? how can perl be used to m

Problems with a script that saves news

2001-10-25 Thread Bryan Forbes
Hey guys (and gals too), I'm having problems with this here script. It seems that I can save new articles, but when I go to save changes to an old article, it doesn't save them. If you need it, I can provide the source to admin_news.cgi also. Thanks for your help in advance. (I'm not sure

Re: trying to write to a file

2001-10-25 Thread register
I am assuming that the script you showed is complete ... there are a few problems with it. First the showstopper ... what is the value of $success? Did you mean $success = open(DATA,">mydata.dat"); Next are the "probably a better idea to di it this way" (IMHO) stuff ... die takes parameters an

Source for admin_news.cgi

2001-10-25 Thread Bryan Forbes
Here's the source for admin_news.cgi. The more I thought about it, the more I realized you people probably need this source to fully understand what the other script does. Also, I keep getting an error in my log that says: edit_article.cgi: Use of uninitialized value at (eval 11) line 17. OR it

Re: trying to write to a file

2001-10-25 Thread register
Sorry to reply to my own reply but you should also consider "use strict" which will catch certain things like the $success bug in your script .. On Thu, Oct 25, 2001 at 06:12:22PM +0100, [EMAIL PROTECTED] shaped the electrons to read: > I am assuming that the script you showed is complete ... th

Re: I want out, but I'm no idiot.

2001-10-25 Thread Scott R. Godin
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Stephan Tinnemeyer) wrote: > > No! Do not anything that involves more mails to the list! > > I have described how to unsubscribe in 4 paragraphs (and propably bad > english) in a posting from Sunday, Oct 21st, 11:55 UTC. Read it, > carefully a

SSL and CGI

2001-10-25 Thread Scott R. Godin
is there a reasonably simple way for a cgi script to tell whether it's being accessed through SSL or not? just curious. I'd like to play with the thought a bit, and want to have my test script report an error if it gets accessed without SSL. -- Scott R. Godin| e-mail : [EMAIL PROT

Weekly list FAQ posting

2001-10-25 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email addr

CGI->compile();

2001-10-25 Thread Scott R. Godin
use CGI qw/:standard :html3 *table *div *form -no_xhtml escapeHTML unescapeHTML/; # should I leave ^ these in if I do this: CGI->compile(':standard :html3 *table *div *form -no_xhtml escapeHTML unescapeHTML'); vs use CGI (); CGI->compile(':all'); vs use CGI (); CGI->compile(':standard :html

SSL via Apache on WINNT

2001-10-25 Thread Eric Wang
Hi people, Is there a way to configure SSL for apache on winnt? thanx Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Faking form variables

2001-10-25 Thread Greg . Froese
I'm using the following snippet of code to put all form data passed into a hash table. $form_data_size = $ENV{'CONTENT_LENGTH'}; read (STDIN, $form_data, $form_data_size); @info_returned = split (/&/,$form_data); foreach $keyvalue (@info_returned) { ($key, $value) = split(/=/, $keyvalue);

Re: trying to write to a file

2001-10-25 Thread Mark Bergeron
And I quote, "just like 6 lines of code and it doesnt work so I need some help." Are you sure about this? -Original Message- From: "Matthew Mangione"<[EMAIL PROTECTED]> To: "Linux Beginners"<[EMAIL PROTECTED]> Date: Thu Oct 25 09:35:02 PDT 2001 Subject: trying to write to a file >hey im

Re: questions

2001-10-25 Thread Mark Bergeron
I know this is a beginner's list. And, we have all been at the point of starting out but, you've get to explain your situation a bit better than this. What window?, do you want to collapse a window during a process and have it post something on after the completion of another process. In front?

Re: Faking form variables

2001-10-25 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > I'm using the following snippet of code to put all form data passed into a > hash table. > > $form_data_size = $ENV{'CONTENT_LENGTH'}; > read (STDIN, $form_data, $form_data_size); > @info_returned = split (/&/,$form_data); > > foreach $keyvalue (@info_returned) >

Re: Printing Hash Keys

2001-10-25 Thread Brett W. McCoy
On Thu, 25 Oct 2001, Shannon Murdoch wrote: > So I take it there is no way to list all the keys contained in a hash in the > same order they were entered in, like I can with a normal array? Why do you need to? There is way by using the Tie::IxHash module. It is available from CPAN (if you have

Re: Printing Hash Keys

2001-10-25 Thread Brett W. McCoy
On Thu, 25 Oct 2001, RaFaL Pocztarski wrote: > You can always use http://www.perldoc.com/ but it's hard to believe that > any version of perl comes without perldoc, however I don't know MacPerl > at all. Try to find any info about perldoc in MacPerl docs or website. Yeah, but recall that Macs (p

read I/O function

2001-10-25 Thread Nate Brunson
ok this is my delema, i am trying to read from this file using: read(FILEHANDLE, $buffer, $size); because the file size will be different every time i try to read it (stuff gets added to it all the time)i wanted to use a variable to store the file size, but i dont know how to update that vari

RE: read I/O function

2001-10-25 Thread Moon, John
@size=stat FILEHANDLE; $size=$size[7]; Hope this helps ... Can this file get very big ? If so you may wish to re-consider what you are doing... If you are looking for one thing in the file you may wish to look into grep or egrep ... #! /usr/local/bin/perl $found = `egrep '^[0-9]+ bytes sent'

Re: read I/O function

2001-10-25 Thread RaFaL Pocztarski
Nate Brunson wrote: > ok this is my delema, i am trying to read from this file using: > read(FILEHANDLE, $buffer, $size); You can get a file size using: $size = -s FILEHANDLE; or $size = -s "filename"; but you don't need to know the size if you just want to read the entire file into

Re: Simple Guestbook "CGI.pm in @INC"??? I use Windows not UNIX

2001-10-25 Thread pAuLyOYo
I did download CGI.pm but, is a version for UNIX, i use Windows, is there a version for windows thanks... paul = @paul {$yoyo} - I like yoyos. They go up and down. Yoyos are controlled by centrifical force which keep them spinning. It is a known fact

Re: Auto-initialising a client-side download

2001-10-25 Thread Shannon Murdoch
Oh, I only just found there was more beyond the first quoted block of text! I'll look in to it now. Thanks Rafal! > From: [EMAIL PROTECTED] (Rafal Pocztarski) > Newsgroups: perl.beginners.cgi > Date: Thu, 25 Oct 2001 13:20:43 +0200 > To: [EMAIL PROTECTED] > Subject: Re: Auto-initialising a clien

Re: Printing Hash Keys

2001-10-25 Thread Shannon Murdoch
I was originally going to write all the values that a form submitted to a text file, delimited by tabs and Carriage Returned, ready for the next submission. Now I've changed the structure of the site so that the valid keys to the submitted data are written to a file as the form is created online

Re: Auto-initialising a client-side download

2001-10-25 Thread Shannon Murdoch
Oh, I only just found there was more beyond the first quoted block of text! I'll look in to it now. Thanks Rafal! > From: [EMAIL PROTECTED] (Rafal Pocztarski) > Newsgroups: perl.beginners.cgi > Date: Thu, 25 Oct 2001 13:20:43 +0200 > To: [EMAIL PROTECTED] > Subject: Re: Auto-initialising a clien

Re: Printing Hash Keys

2001-10-25 Thread Shannon Murdoch
I was originally going to write all the values that a form submitted to a text file, delimited by tabs and Carriage Returned, ready for the next submission. Now I've changed the structure of the site so that the valid keys to the submitted data are written to a file as the form is created online

autoresponder?

2001-10-25 Thread David Gerler
I want to write a script to handle emails sent to a specific address. I want it to respond in specific ways. My problem is I don't know where to start. Where can I get documentation about this? Recommended books maybe. David Gerler Gerler Enterprises See our products at http://www.GerlerEnterpri

Re: Simple Guestbook "CGI.pm in @INC"??? I use Windows not UNIX

2001-10-25 Thread RaFaL Pocztarski
pAuLyOYo wrote: > > I did download CGI.pm but, is a version for UNIX, i > use Windows, is there a version for windows What do you mean for Unix? There is only one version of CGI.pm, it's been tested under Linux, Solaris, OpenBSD, HPUX, Darwin, MacOS, SunOS, Irix and Win32 and works on a lot