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
What is the global wildcard for unix?
I'm trying to chmod 755 all files in a dir... possible?
chmod 755 *.* ?
Thanks
LH
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
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
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
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"."
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
- 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
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
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
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
I want to have a window loaded when someone leaves my website.
does anyone know what is wrong with the following code?
Thanks!
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
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?
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
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
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
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
ok, where did i go wrong now???
##
##set $previous site var.
##
if ($ENV{'HTTP_REFERER'} = "")
{$previous = "an unknown site"}
else
{$previous = "$ENV{'HTTP_REFERER'}};
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
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
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
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
I have tried
perldoc -f env
perldoc -f http
perldoc -f %env
perldoc -f $env
to find documentation on %ENV. no luck
anyone???
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
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
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
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
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?
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;
###
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
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
: 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
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
. 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
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
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
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
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
39 matches
Mail list logo