Re: Random images on a bulletin board

2002-07-01 Thread Connie Chan
Emm. I don't exactly know what do you want, but try this if that's what you want: make an array to put your IMG files, make another array to put your SWF files. make a random 0, 1 to choose if you want to output as IMG or SWF if IMG, random a file from the IMG array, if SWF, random a file f

Form.pm

2002-07-01 Thread perl-dvd
    Well, I'm a little bit behind schedule because the home page for Form.pm just got erased (long story).  Anyway, I just setup a backup system on my server now so I'll have a weeks worth of daily backup's (ya, I know I should have had this before).  But attached are the main functions of F

Random images on a bulletin board

2002-07-01 Thread Troy May
Hello, I'm trying to make a random signature for use on bulletin boards. Images are fine, they are set sizes. But I'm trying to make it display Flash files also. These Flash files default to full-screen when there are no size limits set. I can't figure out how to adjust this script to display

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-07-01 Thread perl-dvd
Curtis, Thanks for the reminder, I'll get it up shortly after I get home from work. About 5:00pm Mountain Time. David - Original Message - From: "Ovid" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 01, 2002 11:39 AM Subject: Re: CGI.pm v/s roll

Re: What's wrong with this?

2002-07-01 Thread Brian
Terminology not withstanding, it's again the lexical scoping. Basically, what you're doing wrong is by declaring the scalar test inside the while block. As long as the code is exiting within the while block, $test is still alive. The code exits out of the while block and $test is no more. Also- b

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-07-01 Thread Ovid
--- [EMAIL PROTECTED] wrote: > Curtis, > You make some good points. I will be leaving in about 10 minutes for a >vacation, and wont be > back until Monday, so if you wouldn't mind sending an email to the list Monday as a >reminder, I > will submit the code then. > > Thanks, > David David,

Re: What's wrong with this?

2002-07-01 Thread Sp0oKeR
Try while (my $test=) { commands ... } Best Regards, "Quem nunca pirateou que atire o 1º disco, que eu atiro uma cópia" === Sp0oKeR - NsC Analista Linux / Security [EMAIL PROTECTED]

Re: What's wrong with this?

2002-07-01 Thread Andy Lester
> open(TEXT,"text.txt") or die ("error: text.txt failed\n"); > while () { > my $text = ; > } > > It tells me $text requires explicit package name but I do give it 'my' > so why is it still giving me that error? The $text has fallen out of scope. Lexical variables (d

Re: Including External Pages

2002-07-01 Thread perl-dvd
open(FH, " for write, >> for append local $/ = undef; # slurp mode (allow for shoving the whole file into a scalar) my $faq = ; # slurp the whole file into this scalar. close(FH); - Original Message - From: "Kyle Babich" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 3

Re: Help! which are the correct parameters?

2002-07-01 Thread perl-dvd
my $stuff = qq^ here is some stuff and more stuff to boot stuff for me and stuff for you ^; $stuff =~ s/stuff/money/gs; # g says match all occurrences # s says treat $stuff as a single line Regards, David - Original Message - From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: <[EMAIL P

Re: What's wrong with this?

2002-07-01 Thread Kyle Babich
Ok, thank you, but now I'm having another problem with this: open(TEXT,"text.txt") or die ("error: text.txt failed\n"); while () { my $text = ; } close(TEXT) or die("error: close text.txt failed\n"); print <<"EndOfHTML"; $text EndOfHTML It tells me $text requ

Re: Printing the Content-type

2002-07-01 Thread perl-dvd
Look up the wget package for Linux. or you can try the combination of these: HTTP::Request; LWP::UserAgent; Regards, David - Original Message - From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 28, 2002 6:25 AM Subject: Printing the Content-typ

sendmail wont run from script

2002-07-01 Thread Jake
Hello all... I have a perl script which, among other things, sends a mail message by piping to sendmail. The script worked fine right up until I reinstalled my OS (Mandrake 8.2) Now the script wont send the mail - it works in every other way. I dont get any errors in the error_log, and I ca

Re: Verifying the existence of a file

2002-07-01 Thread perl-dvd
Teddy, Try: if (-e "/usr/www/domain/file.txt"){ print "file.txt exists\n"; } A few others are -f to check if it is an ordinary file, -d to find if it exists and is a directory, -l to find if it exists and is a symlink, -T to find if it exists and is a plain text file. There are about 2

Re: What's wrong with this?

2002-07-01 Thread Andy Lester
>Try to use(UpperCase): > open(TEXT,"text.txt") > while() Also, if you're using Perl >= 5.6.0, use the $fh notation and get around the barewords entirely. open( my $fh, "text.txt" ) or die $!; while ( <$fh> ) { # whatever } close $fh; -- 'Andy Lester[E

Re: What's wrong with this?

2002-07-01 Thread Felix Geerinckx
on Mon, 01 Jul 2002 15:22:00 GMT, [EMAIL PROTECTED] (Kyle Babich) wrote: > open(text,"text.txt") or die ("error: text.txt failed\n"); > [...] > bash-2.05$ perl -Tcw index.pl > Unquoted string "text" may clash with future reserved word at > index.pl line 17. > [..] > How do I fix it? >From p

Re: What's wrong with this?

2002-07-01 Thread Sp0oKeR
Try to use(UpperCase): open(TEXT,"text.txt") while() Best Regards, "Quem nunca pirateou que atire o 1º disco, que eu atiro uma cópia" === Sp0oKeR - NsC Analista Linux / Security [EMAIL PRO

What's wrong with this?

2002-07-01 Thread Kyle Babich
open(text,"text.txt") or die ("error: text.txt failed\n"); #line 17 while() { print $_; } close(text) or die("error: close text.txt failed\n"); #line 22 bash-2.05$ perl -Tcw index.pl Unquoted string "text" may clash

RE: Executing cgi from html

2002-07-01 Thread Scot Robnett
You can do what you are saying, with the exception that you will not be able to keep the .html extension without a reconfiguration of the web server. Most likely, you will have to change it to .shtml or .shtm, depending on your web server and OS. Check out this documentation on server side includ

Re: the /?something=somethingelse

2002-07-01 Thread Andy Lester
> How is that done where there is no filename included in the url, just > the directory and then the variables? Same way that you can have a URL without the query string without a filename, such as http://petdance.com/perl/. Apache sees that there's not a filename, and so looks at index.html (or

Re: the /?something=somethingelse

2002-07-01 Thread fliptop
Kyle Babich wrote: > How is that done where there is no filename included in the url, just > the directory and then the variables? usually, it's a mod_perl directive. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

the /?something=somethingelse

2002-07-01 Thread Kyle Babich
How is that done where there is no filename included in the url, just the directory and then the variables? Thanks in advance. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

.

2002-07-01 Thread Nigel Mills
Hi I'am having difficuly using a simple form-mail.pl using sendmail.pm located on a new Novell web server. Although the perl script is working as I get a "Thank you " reply back in the browser, it doesn't send the form data back to my e-mail address. The problem seems to be with the sendmail.p

Re: HTML contents into Perl CGI

2002-07-01 Thread David vd Geer Inhuur tbv IPlib
Hi, $data = param('data'); $data =~ s/\/n//g; ... .. print ""; print $data; print ""; Regs David # --- > > Hi, > > If this has been answered before please direct me there as I am at a loss as to >where to look as there is so much info to plow thru. > > Situation: