Folks,
I need to execute a program in a remote machine, that takes its input from
STDIN.
I created a user in such remote machine, and set my program as the shell
for that account (so I don't need to provide shell access).
On my local node, I have this program:
#!/usr/bin/perl
use IPC::Open
I'm using the following to print HTML to the browser:
print <<"HTML code";
"my html here"
HTML code
It works fine in IE but when I execute the script under Netscape it displays
the source instead of loading the page based on the source. Please help.
Mariusz
___
I'm trying to set up credit card processing and one of the first steps is to
establish a "secure socket connection" - how can i do it? (My host does
support it)
Thanks,
Mariusz
_
STOP MORE SPAM with the new MSN 8 and get 2 months FR
Did enyone have to create a script to process credit cards using the AIM
method through the AuthorizeNet gateway? I'm a little bit lost. There are
few things I must do and never done before:
[e.g. open a SSL connection between my hosting server and their gateway and
then post the data (credit ca
Hi,
I'm trying to install the MD5 module and following the steps from CPAN
website.
I got to the part
C. BUILD- by typing:
perl Makefile.PL
it goes well, but then it says:
make: gcc: Command not found
make: *** [MD5.o] Error 127
Should I continue with install after this? Can anybody tell me what
Few days ago I sent a message about uploading modules but I just realized I
wasn't subscribed to the list. I just re-subscribed but I missed the replys;
is there a way to view the last messages posted to the list by date or
something? or could someone just copy the reply to : "How to install MD5
Could anyone give me step by tep instructions on how to install a perl
module (MD5) on my host server. How come they don't have it installed? Isn't
popular enough?
Sorry if I sent the same message for the second time, but the prvious one
doesn't came through on my list.
Mariusz
__
How can I install the MD5 module on the server where I'm hosting my website?
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
Hi,
The following line gives me an "Internal Server Error":
use MD5;
I also tried:
use Digest::MD5;
with the same result.
When I check the syntax locally through perl -c filename everything is ok.
File is properly uploaded, etc.. basically it works without that line.
thanks for suggestions
y combinations, but if the secret_word (or
number) is short; isn't easy to find it?
Mariusz
From: "Jenda Krynicky" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: session ID
Date: Thu, 13 Feb 2003 00:37:38 +0100
From: "mario kulka" <[EMAIL PR
I inserted the following line into my cgi script:
use Digest::MD5 qw(md5 md5_hex md5_base64);
and it generates error; but if type:
use MD5;
it works fine. Can someone pls explain?
By the way, I read on perldoc.com that
md5($data,...)
This function will concatenate all arguments, calculate the
hash).
Thanks for further explanations,
Mariusz
From: Bernhard van Staveren <[EMAIL PROTECTED]>
To: "mario kulka" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: session ID
Date: Wed, 12 Feb 2003 18:46:27 +0100
On Wed, 12 Feb 2003 17:07:16 +
"mario kulk
Hi,
I guess I'm lost again on this topic:(
I'm basically trying the following:
User logs in -> then he has a choice:
1. enter new record
2. edit old one
Once taken to those new pages I somehow must keep the fact that he already
logged in and at the same time forbid other people from a direct acce
If I include a link on my site to a file that sits on the server(e.g.
*.mp3), the viewer will get the "Save as.." box and can coninue with the
download. My question is: what is the defoult transfer mode for the above
described action? ASCII or binary? Is it dependend on the browser?
Mariusz
hi,
My form asks for the time in the format hh? mm? am/pm?
However before I combine it all into one value (so I can insert it into my
MySQL table) I would like to change the format to military time. I thought I
could simply add 12 to the "hh" value when "am/pm" is pm, which works fine
except for
hi,
I'm trying to retrive the id number ($ad_id) of the record I just entered:
...
$sth = $dbh->do (qq{INSERT INTO $table..."my record"
$sth = $dbh->prepare ("SELECT LAST_INSERT_ID() FROM $table");
$sth -> execute();
$ad_id = $sth->fetchrow_array();
$sth->finish();
...
The above works fine and g
I am trying to extract ".jpg" (subtype of the file) from the string:
c:\my_files\file.jpg
I found the following pattern on the net:
$file =~ s/.*[\/\\](.*)/$1/;
which extracts the file name (file.jpg). I understood most of that pattern
except what does the (.*) part does? And how can I tweak it
would assume that whatever after the last
period (.) would be its subtype; e.g.
if the file path is c:\my_music\file.mpeg
I could just split that and extract the last element??
Thank you for any suggestions,
Mariusz
From: Bob Showalter <[EMAIL PROTECTED]>
To: 'mario kulka
Hi,
While uploading a file my $type outputs as "audio/mpeg"
What's the simplest way to extract just the extension (in this case mpeg)?
I thought to do this:
($not_needed,$extension) = split;
But can
$type = $info->{'Content-Type'}
output something in other formats with more elements? (e.g.
audio
I found the problem. Pls disregard my last email. Thanks for all your help.
Mariusz
PS. My HTML was incomplete. It was missing: enctype="multipart/form-data"
From: Wiggins d'Anconia <[EMAIL PROTECTED]>
To: mario kulka <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Su
I don't get any errors. The only problem is that $type prints out as empty.
Script executes fine; $info (after submitting a .txt file) prints to the
browser as: HASH(0x821b428)
HTML part:
music
Thanks for all your help.
M
From: [EMAIL PROTECTED]
To: "mario kulka" <[EM
mario kulka wrote:
I found the following in a book when trying to find out the file's MIME
type, but it doesn't work. Am I missing something obvious? Thanks. M.
code:
#!/usr/bin/perl -W
use CGI ':standard';
$file = param('music_file');
$info = uploadInfo ($fil
I found the following in a book when trying to find out the file's MIME
type, but it doesn't work. Am I missing something obvious? Thanks. M.
code:
#!/usr/bin/perl -W
use CGI ':standard';
$file = param('music_file');
$info = uploadInfo ($file);
$type = $info -> {'Content-Type'};
print "Content-
Before I upload a file with a random name I would like to make sure that
another file with the same name doesn't already exist. Is there a way to
look for a specific $name file within a directory (on UNIX).
thanks,
M
_
Protect
Hi,
After I click on "submit" and point to the cgi there is a period of time
before the cgi finishes running and loads the next page. If the script is
simple and takes short amount of time everything is great. But what if
that's not the case? What if the script (while uploading a file for exampl
mment is welcome.
Best Regards
Mario
perl -ne ' print "$1\n" if /\s(\d+\.\d+\.\d+\.\d+)\s/ ' file
is better.
Try this one line command
perl -ne ' print "$1\n" if /\s(\S+\.\S+\.\S+\.\S+)\s/' file
Cordially
Mario
The answer here still gnu emacs. For NT, have a look at:
http://www.gnu.org/software/emacs/windows/faq.html
cheers,
mario
-Original Message-
From: RL Autry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 04, 2001 3:01 AM
To: Kris G Findlay; Beginners perl; [EMAIL PROTECTED]
Subject
Hi Bill,
my choice is gnuemacs with cperl!
cheers,
mario
-Original Message-
From: Bill Pierson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 9:34 PM
To: [EMAIL PROTECTED]
Subject: Editor
Hello again, all.
May I get some suggestions for any Windows-based PERL development
30 matches
Mail list logo