Screen control again

2002-02-04 Thread Luinrandir Hernson
The last question had to do with X,Y placement for alphanumerics... I ask, what about .gifs? can they be moved across the screen using some command. Also is there a command to find out the persons screen Height/width? LH

wildcard for unix????

2002-02-03 Thread Luinrandir Hernson
What is the global wildcard for unix? I'm trying to chmod 755 all files in a dir... possible? chmod 755 *.* ? Thanks LH

Please point me to a language (perl I hope)

2002-01-31 Thread Luinrandir Hernson
Sorry if this is off topic, but I really don't know who else to ask. Heres what I want to do.. maybe you would be so kind as to tell me what language this can best be done in. I'm just learning perl and know HTML. within frames (or a table)... I would like to put a large gif in the backround an

trying to secure text input.

2002-01-28 Thread Luinrandir Hernson
Below is the code i'm using to filter out non alphanumeric charecters... however when i type ?!$BOB yeilds this: -_3f_21_24bob- The ?!$ should be stripped away and come back empty, not _3f_21_24 ANY ideas as to what I'm doing wrong??? I'm asking for an email address. my $eaddress = ""; rea

Question about GIF's

2002-01-26 Thread Luinrandir Hernson
within an HTML frame... I want to run a GIF animation and make play again as required. In this animation a person is riding a horse, 4 steps of the horse is one cycle for the animation. Can perl make it recycle again without having to load each time? It is possible to load a gif once to the pe

just bragging

2002-01-19 Thread Luinrandir Hernson
guess what I found!!! and it works (mad scientist laugh) $password=~tr/A-Z/a-z/;##changes everything to lowercase $password=~tr/a-z0-9/_/c; instead of ##$password=~s/@/\_/g; ##removes"@" ##$password=~s/\./\_/g; ##removes"."

Re: help!!!trying to match password

2002-01-19 Thread Luinrandir Hernson
bobby or abobby, then you may have to use border like this ~/\bbob\b/ end of msg - Original Message - From: "Luinrandir Hernson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 19, 2002 6:41 PM Subject: help!!!trying to ma

Re: more help!!!trying to match password OPPPSSSS

2002-01-19 Thread Luinrandir Hernson
- Original Message - From: Luinrandir Hernson To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, January 19, 2002 10:06 PM Subject: more help!!!trying to match password Thanks Jeff . I had tried $password eq /bob/ but your way works just fine. Now for

more help!!!trying to match password

2002-01-19 Thread Luinrandir Hernson
r (and the last question) thanks in advance Lou - Original Message - From: Jeff 'japhy' Pinyan To: Luinrandir Hernsen Cc: [EMAIL PROTECTED] Sent: Saturday, January 19, 2002 10:09 PM Subject: Re: help!!!trying to match password On Jan 19, Luinrandir Hernson said

help!!!trying to match password

2002-01-19 Thread Luinrandir Hernson
I have managed to get this far. I've stripped down read(STDIN,$buffer,$ENV{'CONTENT_LENGTH'}); to the actual input, in this case bob and it works but so does bob123 , bobbies and bobs_a_bum etc... Just how do I match the input exactly bob to just bob ??? thanks in advance code below

Password ---- cgi-perl-html

2002-01-07 Thread Luinrandir Hernson
I am trying to password protect part of my website. I have the password page done. But how to I make the pages protected so you have to go through the password page? Do i do it by passing hidden inputs from page to page? How do I force people coming in around the password page to go through the

off topic - javascript question

2001-10-29 Thread Luinrandir Hernson
I want to have a window loaded when someone leaves my website. does anyone know what is wrong with the following code? Thanks!

LH question about variables

2001-10-04 Thread Luinrandir Hernson
if more than two people are using my perl program (an online game), do i need to create different variables for each person or does unix/apachie know who variable is whos? Each players variables are recorded to their own unique files... i just need to know about the variables.. does the ques

please help with perl form

2001-09-09 Thread Luinrandir Hernson
My question is, What command (in my perl prog?) do i use to goto the next page? Also, do i have the part of the perl prog correct? it doesn't make the file. And what command do i use to set the CHMOD on the net file (in perl)? This is in my HTML page code: Email address?

new code .. will it work?

2001-06-20 Thread Luinrandir Hernson
Below is a piece of code that determines what web site you just came from. I want to put a line in their that will exclude me ###here is the working code if ($ENV{'HTTP_REFERER'} eq "" | '0') {$previous = "$ENV{'HTTP_HOST'}$ENV{'DOCUMENT_URI'}";} else {$previous = "$ENV{'HTTP

permission question

2001-06-12 Thread Luinrandir Hernson
I want to let other people put my webpages on their site. I want to control the contents of the web page without changing their code. I am going to make up a web page of .pl's that just type the html code for them as below. My question is what permission (775?) must i set the .pl's at so that a 3

Re: string manipulation

2001-06-08 Thread Luinrandir Hernson
Whats a bash prompt?? Ok OK let me see if i have it the name of the string is EightyCharsLong $EightyCharsLong and the substr command is like the midstring command substr() I'm going to guess the first charecter is 0 so that 19 becomes the 20th position??? and of course the 10 is for the legt

string manipulation

2001-06-08 Thread Luinrandir Hernson
OK.. thanks to all who helped me... i'm actually learning this thing... perl In BASIC there are commands for leftstring, midstring, and rightstring. I am looking for the perl equiv for these. maybe an example too??? not in butt tight code, but in line by line code so I can learn. THEN I'll

if then else

2001-06-08 Thread Luinrandir Hernson
ok, where did i go wrong now??? ## ##set $previous site var. ## if ($ENV{'HTTP_REFERER'} = "") {$previous = "an unknown site"} else {$previous = "$ENV{'HTTP_REFERER'}};

Re: Perl Templates?!

2001-06-08 Thread Luinrandir Hernson
I think what this oerson means is this: What is the format of a if then else statement in perl?? I know in basic is would be If (condition) then (result1) else (result2) its a matter of code syntax referral In perl is it if condition { result1 } ? Lou

Re: code to force a fresh page

2001-06-07 Thread Luinrandir Hernson
never mind i found it in javascript Lou - Original Message - From: Luinrandir Hernson To: [EMAIL PROTECTED] Sent: Thursday, June 07, 2001 10:01 PM Subject: code to force a fresh page Im not sure if i need to use java or perl... Heres the scratch. I want to force my

referer.pl I wrote and works!!!

2001-06-07 Thread Luinrandir Hernson
I am a firm believer in sharing information. here is a working program i just wrote and tested. it my not be clenched-buttock tight code. but, blast it, it works!!! Lou #!/usr/bin/perl -w use strict; use diagnostics; print "Content-type: text/html\n\n"; ## ##declared variables

code to force a fresh page

2001-06-07 Thread Luinrandir Hernson
Im not sure if i need to use java or perl... Heres the scratch. I want to force my webpage to a new frame/browser so I don't get my site trapped inside someone elses. Lou

$ENV

2001-06-07 Thread Luinrandir Hernson
I have tried perldoc -f env perldoc -f http perldoc -f %env perldoc -f $env to find documentation on %ENV. no luck anyone???

counter update

2001-06-05 Thread Luinrandir Hernson
from within the body of the .htm page use this command This is the .cgi program #!/usr/bin/perl -w use strict; use diagnostics; my $count; $count = "12345"; print "Content-type: text/html\n\n"; print "-($count)-\n"; exit; ## this works.. now to build up the

Re: one last attempt?

2001-06-05 Thread Luinrandir Hernson
well i cant beleive it know what the first problem was spaces after and before the double dashes. i was using and the correct command is this caused three days of hairpulling madness... I'm laughing on the outside... but inside ERRR! the spaces were suggested to me on this list. ANY

one last attempt?

2001-06-05 Thread Luinrandir Hernson
Well i'm about to chuck perl out the window this is the command line from my index.htm file I've made this so darn simple it should work. this is the perl program in my cgi-bin: #!/usr/bin/perl -w use strict; use diagnostics; my $count; $count = "12345"; print "-($count)-"; exit; does anyone

Re: newcounter(was did i do that correctly)

2001-06-05 Thread Luinrandir Hernson
n(NUMBER,">$counterfile"); print NUMBER "$number"; close(NUMBER); } if (($position>0) && ($position<=length($number))) { $positionnumber=substr($number,(length($number)-$position),1); } else { $positionnumber="0"; } if ($imagefile{$positionn

Re: did i do this correctly?

2001-06-04 Thread Luinrandir Hernson
epage.$number.".gif" - Original Message - From: "Luinrandir Hernson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 04, 2001 9:18 PM Subject: Re: did i do this correctly? here is the entire code it works but no .gif files appear?

Re: did i do this correctly?

2001-06-04 Thread Luinrandir Hernson
here is the entire code it works but no .gif files appear? i set permissions to 775 on all .gif's the counter.txt file and the .pl and .cgi programs ideas if i didn't want to use the .gif's could i put a print "counter.txt"; somewhere #!/usr/bin/perl -w use strict; ###

did i do this correctly?

2001-06-04 Thread Luinrandir Hernson
I am working on a cgi and i'm new to perl. could someone please check to see if i did this right? below is code for a program. as you can see it is going to take a lot of editing. #!/usr/bin/perl # Setup begin $counterfile = "/home/yourdomain/counter/counte

Re: Counter problem

2001-06-03 Thread Luinrandir Hernson
ne else on this thanks L H - Original Message - From: Me To: Luinrandir Hernson Sent: Sunday, June 03, 2001 1:33 AM Subject: Re: Counter problem I think I just spotted why it isn't working. You are using a line something like: Right? You need a space

Re: Counter problem

2001-06-02 Thread Luinrandir Hernson
: Johnathan Thibodeau To: Luinrandir Hernson Cc: [EMAIL PROTECTED] Sent: Saturday, June 02, 2001 11:35 PM Subject: Re: Counter problem On Sat, 2 Jun 2001, Luinrandir Hernson wrote: > the command that calls this is > Maybe one of the techs at your provider got smart and dissabl

Re: Counter problem

2001-06-02 Thread Luinrandir Hernson
I just used that and where the number should be it said [an error occurred while processing this directive] thanks for your effort - Original Message - From: Johnathan Thibodeau To: Luinrandir Hernson Cc: [EMAIL PROTECTED] Sent: Saturday, June 02, 2001 11:35 PM Subject

Re: Counter problem

2001-06-02 Thread Luinrandir Hernson
. hmm. its late, maybe i need sleep ;-) I just talked to my web host person and he says all the permissions are ok. he says the program is not even being run because of the problem in the code abort the whole thing. - Original Message - From: Me To: Luinrandir Hernson ; [EMAIL

Counter problem

2001-06-02 Thread Luinrandir Hernson
Something is wrong with this code it WAS working.. This code is suposed to work from any of my web pages and count the number of hits to each web page. the command that calls this is Just substitute your homepage for the "homepage" throughout the program #!/usr/bin/perl -w # ##gets the nam

Re: How do I....

2001-05-29 Thread Luinrandir Hernson
Thanks Peter C. I know about the .pl association with active perl... thats working I'm set up on the web server and am currently running a perl program on my web page. My server is Unix type. (EXCITEMENT!!!) I know what the "shebang" line is and means!!! WahWho! Let you know more tomorrow Th

Re: How do I....

2001-05-29 Thread Luinrandir Hernson
perl on my PC? #!c:/internet/perl/perl5 ?? Lou (thanks folks!!!) - Original Message - From: Brett W. McCoy To: Luinrandir Hernson Cc: [EMAIL PROTECTED] Sent: Tuesday, May 29, 2001 5:59 PM Subject: Re: How do I On Tue, 29 May 2001, Luinrandir Hernson wrote

How do I....

2001-05-29 Thread Luinrandir Hernson
I am dedicating a PC to internet only, including perl. I only know about windows. Is there a platform/OS like (maybe red hat???) that i can put on that PC and still run my windows netscape and run perl on too? I want to make the PC perl friendly... or can I run unix on it? Where do I find it? a