Re: Redirect using .htaccess or ?? ( kinda [OT] )

2004-04-07 Thread WC -Sx- Jones
Wiggins d'Anconia wrote: RewriteEngine on RewriteRule ^/$ /cgi-bin/index [R,L] This is also possible: RedirectMatch permanent /(.*) http://www.example.com/cgi-bin/index.pl (It's just another way...) I would always use mod_rewrite myself... -- http://www.usenix.org/

Re: Redirect using .htaccess or ?? ( kinda [OT] )

2004-04-07 Thread WC -Sx- Jones
B McKee wrote: I thought simply putting Redirect permanent index.* /cgi-bin/index.pl [ without mod_rewrite ] Redirect permanent / http://www.example.com/cgi-bin/index.pl But mod_rewrite would be best - as the OP stated... Over all this is a bad Idea... after a few more months of CGI programmi

Re: Display while forked

2004-04-06 Thread WC -Sx- Jones
Jason Normandin wrote: I can't event get output to the browser untill after the fork completes even though I have set $|=1 (turn off the buffer) Display the message BEFORE the fork; research NPH CGI programming. -Sx- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: Output Unicode

2004-04-02 Thread WC -Sx- Jones
Octavian Rasnita wrote: I am accessing www.google.com which redirects to www.google.ro, or www.google.com/ncr That is an auto-handshake between your browser and google. It means you've properly set-up what Language(s) you want first and google is trying to be helpful. (In a previous note I said th

Re: Script not behaving the same when run under perl and mod_perl

2004-04-02 Thread WC -Sx- Jones
Loren Erwin wrote: This might be a question for Apache configuration, but I figured I would start here. http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems If your script doesnt work under mod_perl try mod_cgi (If mod_cgi was built into the httpd server.) read: http://perl.apach

Re: How to undine a value

2004-04-02 Thread WC -Sx- Jones
Wiggins d Anconia wrote: my $k; for($i = 0; $i < $c; $i++){ if ( defined $k ){ print $x[$k]; my $t; # intentionally undefined $k = $t; # undefine $k } else { $k = $i; } } Unless this is a contrived example, just increment $i by 2 each loop. If it is contrived then

Re: BitVector in GET/POST Params

2004-04-01 Thread WC -Sx- Jones
Randy W. Sims wrote: maybe 'perldoc -f vec', 'perldoc -f pack', also I was only suggesting: man perlpacktut -Sx- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: BitVector in GET/POST Params

2004-04-01 Thread WC -Sx- Jones
Richard Heintze wrote: What if I need more than 32 elements in my bit array? I suppose I could use the first hidden field for the first 32 elements of my array and the next 32 elements are stored in the next hidden field. Uggghhh... Is there an easier way? You must not read the regular beginners l

Re: How to undine a value

2004-04-01 Thread WC -Sx- Jones
Richard Heintze wrote: my $t; # intentionally undefined $k = $t; # undefine $k Just for clarity - This isn't "undefining" it is assignment of nothing to $k; my $nothing; print "\n\$nothing\'s Value: $nothing and \$nothing\'s length ". length $nothing; my $somthing = 100; $somthing

Re: Output Unicode

2004-04-01 Thread WC -Sx- Jones
Octavian Rasnita wrote: It seems that something's wrong because Internet Explorer automaticly chooses UTF-8 encoding, but it doesn't display the text correctly. In fact, I don't know which is the problem because I read the text from the screen using a screen reader (I am blind) but I can read othe

Re: interactive perl programing

2004-03-31 Thread WC -Sx- Jones
Wiggins d'Anconia wrote: rob lester wrote: I'm stumped on where to look but there must be a module to handle interactive programming. What I mean is printing out a list of things, the user selects what he wants, hits enter and the program continues. I presume the module would enable going back

Re: Show/download file from a non public folder

2004-03-26 Thread WC -Sx- Jones
Set DefaultType application/octet-stream in the Web Server configs and let the client figure it out or ... Ah, so that's what application/octet-stream is for... I get it now :-). Too bad they didn't name it 'application/punt-to-client' ;-)... LOL, very true that :) I found it works best on Uni

Re: Show/download file from a non public folder

2004-03-26 Thread WC -Sx- Jones
... I need to show these files (jpg), or allow the download (.pdf, .rtf ... ...) from a script for users who already are authenticated and have a session opened in the server (this part is already working). Gr - I promise to read slower. Set DefaultType application/octet-stream in the We

Re: Show/download file from a non public folder

2004-03-26 Thread WC -Sx- Jones
Alex A. wrote: Hi, I have files(.jpg, .pdf, .rtf, .xls) in the following non-public folder: /home/alex/documents/ I need to show these files (jpg), or allow the download (.pdf, .rtf ...) from a script for users who already are authenticated and have a session opened in the server (this part is a

Re: hash hanging up browser

2004-03-22 Thread WC -Sx- Jones
Teresa Raymond wrote: Bill, Thank you so, so much --> Your corrections/advice/help not only helps me this time but also will help me to code/think more clearly in the future. --Teresa Great :) -- _Sx_ http://youve-reached-the.endoftheinternet.org/ _ perldoc -qa.a | perl -lpe '($_)=m("(.*)")

Re: hash hanging up browser

2004-03-22 Thread WC -Sx- Jones
Teresa Raymond wrote: Your code has logic/implementation design errors; see below - my $file = param('upload'); $file will be equal to "" -- therefore the later test !$file will logically fail when it should have succeeded. IE - $file is NOT undefined; maybe you meant length equal zero? @[EMAIL

Re: General question about HTML form

2004-03-20 Thread WC -Sx- Jones
Bill Tribley wrote: CGI was written from the beginning to not compromise > the security of the box on which it runs. Just because a module is secure doesn't mean the resulting application is. -Sx- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Creating Menus in CGI

2004-03-20 Thread WC -Sx- Jones
Mike Ni wrote: http://search.cpan.org/~lds/CGI.pm-3.04/CGI.pm Also, see: http://modperl.com:9000/hangman.html Bill -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Creating Menus in CGI

2004-03-19 Thread WC -Sx- Jones
How to create menus using Perl CGI? You would use DHTML or JavaScript -- in either case it is not Perl related. Perl CGI would ONLY be a delivery/code formatter and wold not provide any type of Menu control via CGI. After all the web browser can only speak HTML and the like - not Perl. Maybe

Re: Any CPAN module for creating thumbnails?

2004-03-08 Thread WC -Sx- Jones
B. Fongo wrote: I wander if here a way to create thumbnails using Perl? I want to implement functionality for my shop program to create a thumbnail of product pictures. A good instance of it may be that of eBay. Users can upload a picture of any dimension for their listing. EBay will automaticall

Re: AW: Any CPAN module for creating thumbnails?

2004-03-08 Thread WC -Sx- Jones
B. Fongo wrote: Does anyone no what exactly the difference between these two cpan modules is? I went through the descriptions of both modules, and they seems the same to me. Why 2 Modules with the features? Mail::Sendmail by Milivoj Ivkovic Mail::Sendmail by Abe Timmerman What is called .79 is ap

Re: running CGI locally??

2004-03-05 Thread WC -Sx- Jones
Teresa Raymond wrote: Just wondering what URLs you might have for these: There are web servers written in Perl alsoo =) http://www.earth.com/server/doc/plexus.html http://sites.inka.de/sites/bigred/sw/tinyhttpd.html Plus there are CPAN Modules to help contruct your own server. -Bill- __Sx_

Re: running CGI locally??

2004-03-05 Thread WC -Sx- Jones
Freimuth,Robert wrote: Since I'm trying to generate dynamic HTML pages, I thought CGI would be the way to go. However, from what I understand of CGI, it requires a web server and can't be run locally. Since all of my code is in perl, I would prefer to stick with it, if possible. A coworker sugg

Re: Problem installing a module

2004-03-03 Thread WC -Sx- Jones
Octavian Rasnita wrote: Hello all, Does anyone know how can I configure the installation for a perl module if I want to install it using CPAN library? I want to install the perl module DBD::mysql and if I try: perl -MCPAN -e "install DBD::mysql;" It fails installing the module and it tells me th

Re: CGI.pm unsecure / dangerous ?

2004-02-24 Thread WC -Sx- Jones
David Gilden wrote: print MAIL "TO: [EMAIL PROTECTED]"; print MAIL "From: $name <$email>\n"; print MAIL "Subject: $subject\n\n"; The From is Hard wired so I donĂ¢t understand you mention below. In your orginal post it was evaluated as a PARAM CGI input -- therefore it is not hard-wired

Re: CGI.pm unsecure / dangerous ?

2004-02-24 Thread WC -Sx- Jones
David Gilden wrote: They are going with this one :) I wanted to specifically address this FormMail issue separately - so there is no miscommunications. All FormMail programs and their derivatives are BAD -- worse then what you wanted to write in my opi

Re: CGI.pm unsecure / dangerous ?

2004-02-24 Thread WC -Sx- Jones
David Gilden wrote: Is there away some could hijack my script, if so how, or is this sys. adm. not living in the real world? Yes, this script can be hijacked =/ Sorry. print MAIL "TO: [EMAIL PROTECTED]"; print MAIL "From: $name <$email>\n"; print MAIL "Subject: $subject\n\n"; Her

Re: perl running on a handheld

2004-02-22 Thread WC -Sx- Jones
Mauricio Cujino wrote: I'm planning on buying a handheld computer (palmtop, sony ,hp...), could somebody recommend on a model/brand I can use to write and execute perlcode? Zaurus. http://www.google.com/search?num=100&hl=en&ie=UTF-8&oe=UTF-8&safe=off&q=Zaurus&spell=1 -Sx- -- To unsubscribe, e

Re: connectivity b/w a form in html and database using perl

2003-06-02 Thread WC -Sx- Jones
On Sunday, June 1, 2003, at 04:39 PM, Annie wrote: I have a form with two textfields ..one for login and one for password and two buttons reset and submit. on submit i need to verify the login and password from a table in mysql and want to retrieve the corresponding information of the verif