RE: [Perl-unix-users] Printing CGI WEB Pages

2003-01-03 Thread Thomas_M
Title: Message



You can pretty much 
answer this question and all your previous questions by reading the 
documentation on the CGI module. You can use perldoc CGI, or this URL: http://search.cpan.org/author/LDS/CGI.pm-2.89/CGI.pm. 
Also, the author of the module has a book: http://www.amazon.com/exec/obidos/tg/detail/-/0471247448/ 
if you prefer this format.

-- Mark 
Thomas    
[EMAIL PROTECTED] Internet Systems Architect User Technology Associates, 
Inc. 
$_=q;KvtuyboopuifeyQQfeemyibdlfee;; 
y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;   

  
  -Original Message-From: Mundell, R. 
  (Ronald) [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 
  2003 7:14 AMTo: Perl-Unix-Users (E-mail); Perl-Win32-Users 
  (E-mail)Subject: [Perl-unix-users] Printing CGI WEB 
  Pages
  Good Day All 
  does any body know how to print a page out of 
  Perl 
  Thanks 
  Ronald 


Re: [Perl-unix-users] CGI redirection

2003-01-03 Thread Szabo Zoltan
On Thu, 2 Jan 2003, Jo Geraerts wrote:

> On Tue, Dec 31, 2002 at 10:45:03AM +0200, Mundell, R. (Ronald) wrote:
> > Does any one knows how to redirect one CGI page to another?  I am writing a
> > webpage to do login. on success it needs to reload a different page in its
> > place otherwise it must reload itself. If anyone can help me, please do.
>
> from perldoc CGI
>
>
>GENERATING A REDIRECTION HEADER
>
>   print $query->redirect('http://somewhere.else/in/movie/land');

or before printing the content:
print "Location: http://somewhere.else/in/movie/land\n";;
exit;

:)

C.
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: [Perl-unix-users] Multiple FTP Session

2003-01-03 Thread BWilson
Suresh,

I am unsure of what you are trying to accomplish.

If your flat file contains a list of files that need to be ftp'd and if you
wish to perform these ftp jobs 
in parallel, you can use the fork function to spawn as many subprocesses as
you need ( on Unix anyway, I am not sure
of fork's performance on Windows ).

Do an internet search on 'Perl fork examples' and you will find some helpful
code.

The book "Programming Perl" is also a very good source for most Perl
information.

The best way for this forum to help you ( in my opinion ) is to try doing
what you want and if you get stuck, send your
code, a description of what you are attempting and what problems you are
having.  The more information, the better.

Good luck,

Bryan



-Original Message-
From: V. Rajaraman [Sys-Support] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 3:38 PM
To: [EMAIL PROTECTED]
Subject: [Perl-unix-users] Multiple FTP Session



Hi All,

What will be the better way to create a multiple ftp session. The number
of sessions has to be determined by a flat file dynamically created by the
user.

And any link which talk about writing efficient perl codes.

Thanks
Suresh A.

___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



[Perl-unix-users] DIV tags

2003-01-03 Thread Mundell, R. \(Ronald\)
Title: DIV tags





Good Day all


Please refer to the java script below. I would like to know if there are a way to do the same in perl.








_javascript_
===




function CheckStatus()
{
    if (document.all('RejectRequest').style.display == "block")
    {
        document.all('RejectRequest').style.display = "none";
    }
    else
    {
        document.all('RejectRequest').style.display = "block";
    }
}
                                        Links                                               http://www.microsoft.com">http://www.microsoft.com     http://www.oracle.com">http://www.oracle.com

[Perl-unix-users] Accessing KSpread on Linux (Open Office)

Title: Accessing KSpread on Linux (Open Office)





Good Day All


Does anyone know how to access KSpread from OpenOffice?


Thank you


Ronald





RE: [Perl-unix-users] Perl Login

Title: RE: [Perl-unix-users] Perl Login





Where can I get more information on cookies


-Original Message-
From: Anthony Ettinger [mailto:[EMAIL PROTECTED]]
Sent: 02 January 2003 07:19
To: Mundell, R. (Ronald); Perl-Win32-Users (E-mail); Perl-Unix-Users
(E-mail)
Subject: Re: [Perl-unix-users] Perl Login



It's my experience that you would have to verify the
login for each request.


This can be easily done by storing the
username/password in a cookie, and then reading that
cookie, and querying the database for correct
user/pass combo on each request.


If anyone knows of a better way, please let me know!




--- "Mundell, R. (Ronald)" <[EMAIL PROTECTED]>
wrote:
> Hi all
> 
> I am trying to create a login webpage. I have
> created a HTML front-end that
> calls a cgi script. but that is were the problem is,
> I do not know how to do
> logins under perl. If someone can help me please do
> 
> Ronald
> 



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com





RE: [Perl-unix-users] CGI redirection

Title: RE: [Perl-unix-users] CGI redirection





To all those people that helped me with this problem thank you.


-Original Message-
From: Jo Geraerts [mailto:[EMAIL PROTECTED]]
Sent: 02 January 2003 02:35
To: [EMAIL PROTECTED]
Subject: Re: [Perl-unix-users] CGI redirection



On Tue, Dec 31, 2002 at 10:45:03AM +0200, Mundell, R. (Ronald) wrote:
> Does any one knows how to redirect one CGI page to another?  I am writing a
> webpage to do login. on success it needs to reload a different page in its
> place otherwise it must reload itself. If anyone can help me, please do.


from perldoc CGI
 


   GENERATING A REDIRECTION HEADER


  print $query->redirect('http://somewhere.else/in/movie/land');




-- 
/**
* Geraerts Jo  * Politics:    *
* [EMAIL PROTECTED]    *   Poly: many *
* http://users.skynet.be/ernie *   Ticks: blood sucking parasites *
**/



___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs





[Perl-unix-users] Printing CGI WEB Pages

Title: Printing CGI WEB Pages





Good Day All


does any body know how to print a page out of Perl


Thanks 


Ronald





RE: [Perl-unix-users] Perl Login

Title: Message



I 
prefer setting up a session number, saving that to a hash with username and 
password. Every request the browser does something like http://www.yourdomain.com/perlscript.pl?session=2uoiu29823u923u298343i2 and the script 
checks if the session hasn't expired yet. If it hasn't it checks if the username 
and password match. If there is a match, the script returns the requested data, 
otherwise not. I've done something like this for http://www.postmenderks.nl/.

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of 
  Mundell, R. (Ronald)Sent: Friday, January 03, 2003 6:03 
  AMTo: 'Anthony Ettinger'; Perl-Win32-Users (E-mail); 
  Perl-Unix-Users (E-mail)Subject: RE: [Perl-unix-users] Perl 
  Login
  Where can I get more information on cookies 
  -Original Message- From: 
  Anthony Ettinger [mailto:[EMAIL PROTECTED]] 
  Sent: 02 January 2003 07:19 To: 
  Mundell, R. (Ronald); Perl-Win32-Users (E-mail); Perl-Unix-Users 
  (E-mail) Subject: Re: 
  [Perl-unix-users] Perl Login 
  It's my experience that you would have to verify the 
  login for each request. 
  This can be easily done by storing the username/password in a cookie, and then reading that cookie, and querying the database for correct user/pass combo on each request. 
  If anyone knows of a better way, please let me know! 
  
  --- "Mundell, R. (Ronald)" <[EMAIL PROTECTED]> 
  wrote: > Hi all > > I am trying to create a login 
  webpage. I have > created a HTML front-end 
  that > calls a cgi script. but that is were the 
  problem is, > I do not know how to do 
  > logins under perl. If someone can help me please 
  do > > Ronald 
  > 
  __ 
  Do you Yahoo!? Yahoo! Mail Plus - 
  Powerful. Affordable. Sign up now. http://mailplus.yahoo.com 
  ---Incoming mail is certified Virus Free.Checked by 
  AVG anti-virus system (http://www.grisoft.com).Version: 6.0.435 / Virus 
  Database: 244 - Release Date: 
12/30/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.435 / Virus Database: 244 - Release Date: 12/30/2002
 


Re: [Perl-unix-users] Printing CGI WEB Pages

there are a number of alternatives.
i recommend a template based system.

Text::Template (easy to use)
HTML::Template (conditionals, progrmatic structures)
Template::Toolkit (heard it was AWESOME).

or you can just print the html in your script...
try something like this, so you won't have to
backslash quotes:

print<
  
document $variable
  

HTML

--
anthony

--- "Mundell, R. (Ronald)" <[EMAIL PROTECTED]>
wrote:
> Good Day All
> 
> does any body know how to print a page out of Perl
> 
> Thanks 
> 
> Ronald
> 
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Re: [Perl-unix-users] Perl Login

It's my experience that you would have to verify the
login for each request.

This can be easily done by storing the
username/password in a cookie, and then reading that
cookie, and querying the database for correct
user/pass combo on each request.

If anyone knows of a better way, please let me know!



--- "Mundell, R. (Ronald)" <[EMAIL PROTECTED]>
wrote:
> Hi all
> 
> I am trying to create a login webpage. I have
> created a HTML front-end that
> calls a cgi script. but that is were the problem is,
> I do not know how to do
> logins under perl. If someone can help me please do
> 
> Ronald
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs