Please bottom post...
> You can execute that second script:
> require script.pl
>
> or
>
> system('perl script.pl');
>
While interesting solutions I would avoid both. The first is a very odd
usage of require to me, if you want to go along those routes I suspect
you are better off with do or e
> > On Tue, 13 Jan 2004 22:38:18 -0500, [EMAIL PROTECTED] (Gerry
> > Creighton) wrote:
> >
>
> Well that's disappointing. Well then how do they do it with the Megaupload
> script? That works great and isn't slow BUT it doesn't have form
> processing. The guy who wrote it said that I can paste th
> Hi,
>
> Sorry for this off topic subject, but I don't even know where to ask about
> this problem.
M$.com?
>
> A program on my site saves some email messages and let me download them
> later, and I use the .eml file extension for those files.
> When I try to access the URL to one of those me
> I have having difficulty with my brain lately. I need to display an image
> that is a link. I cannot find an example anywhere.
>
> Thanks,
> Rod.
>
Huh? Slow down, breathe, then give us that again coherently
http://danconia.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
Please bottom post...
> I am sorry, that was a little hastely written out of frustration.
>
>
> I am trying to use CGI.pm to display a row of images. Each of those
images
> are a link. I can make a text link, but have not figured the right
syntax for
> making an image link.
>
> Hope that was
> Question #1: Does anyone have any favorite document
> that is a style guide for perl programmers? There are
> entire books on the subject of style for C++
> programmers, I've not seen any for perl, though.
>
Well there is the perlstyle doc page,
perldoc perlstyle
that gives general suggestio
Please don't cross post to multiple groups...
>
> Dear Friends,
>
> I need to write a Perl CGI script that connects to
> a website (like Yahoo) and change the Password for
> my user. I don't want to do it manually. It should
> be handled by the script.
>
> Please suggest any idea/code available
> Wiggins d'Anconia wrote:
> > Andrew Gaffney wrote:
> >
> >> Wiggins d'Anconia wrote:
> >>
> >>> Andrew Gaffney wrote:
> >>>
> >>>> I have a Perl CGI script that runs a query against a MySQL table. I
> >
> Hi,
>
> Does anybody know if there is an option in readdir to return the file list
> in the order of their creation time? Or know of a way to do that? Been
> reading the perldoc w/o much luck. Thanks!
>
Doubtful, but it should be trivial using readdir in a list context and
using 'sort' with
Personally I would leave hassling script kiddies to the script
kiddies To me this is a bandwidth drain. Script kiddies are an
ignorant nuisance, the more time you spend on them the more they have
"won" in their little game.
http://danconia.org
> NICE!!!
> I really like this!
> I'm not sur
> Hi,
>
> and thanks for all the previous suggestions regarding email modules.
Now it turned out that my ISP refuses to let me install *any* additional
Perl module on the server, so I have to use sendmail.
>
Switch ISPs? Sorry this isn't the answer you want. Sorry I can't
provide more help wit
> Hello,
>
> Can you guys tell me on this piece of codes? It doesn't print the small
> html codes in the sub below. No warning - nothing!
> N.B. Don't bother about the html; just check my perl codes to see why I
> doesn't print what I want.
>
> Thanks
>
> Babs
>
nt your header and the contents of the file, you may
even be able to bypass the local temp storage but I didn't check real
closely.
Good Luck,
http://danconia.org
>
> -Original Message-
> From: Wiggins d Anconia [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 26,
> I am trying to generate a web page with :
> print $q->header("application/vnd.ms-excel"),
>
> This tries to launch Excel but I get the error:
> "File cannot be opened because: A declaration was not closed Line 1,
> Position 1 <"
>
> When I use:
> print $q->header("text/html"),
>
> The page dis
> Wiggins d'Anconia wrote:
>
> > use strict; # always
> > use warnings;# usually
>
> Why not always? I would make it:
>
>use strict; # always
>use warnings; # always
>
I won't argue with you over them. I always do both... some people
> Are there any standarized tests one can take to measure one's Perl
> prowess? How much are they and where can I find them?
>
This comment is pretty off topic for a CGI specific list. It has been
discussed a couple of times in the jobs-discuss list and the advocacy
list (I think), particularly
> I have a Perl script which uses the CGI module which needs to be able
to get all the
> selected items in a SELECT. I see that the request comes in as
> 'selectname=item1&selectname=item2&selectname=item3'. If I do '$p =
$cgi->Vars', wouldn't
> I only get the last value?
>From the CGI.pm doc
>
> Hi,
>
> I am designing a form using cgi and when the user clicks the submit
button,
> the form must print to the users local printer and then submit.
>
> Thanking you in advance
>
>
You are talking client side, and most likely are going to need something
like Java, Flash, ActiveX, etc.
> I want to store the data from a straightforward form in an XML file. The
> perl script has to read the form data, and write it to the XML file.
>
> What's the best/simplest module for this?
>
CGI.pm with XML::Simple would be my choices, both easy to work with and
available on CPAN.
http://da
> I'm using Perl 5.6.1 for mainly CGI work
>
> How do I know which modules are already installed?
>
If you have shell access,
find `perl -e 'print "@INC"'` -name '*.pm' -print
Will show you, note that this will include modules in your cwd which if
that is your home dir and you have a .cpan the
Please bottom post
> thanks - I've tried installing it (and other modules) on my Solaris 9 box.
> The 'perl MakeFile.pl' and 'make' work fine, but 'make test' fails
spitting
> out "Command failed for target 'test_dynamic'" -- any idea what this
means
> and how I can fix it?
>
Can you prov
Please don't cross post, use one list first, if your question isn't
answered satisfactorily then try the other...
> Dear Friends,
>
> How to create menus using Perl CGI?
>
> Any help in this regard will be great.
>
What do you think a "menu" is? You will need to be more specific with
your que
> Hi,
>
> The following code is hanging up the browser and I think it has something
> to do with the hash having keys array and values array. There is no error
> message, just the browser taking a really long time. Any help would be
> appreciated. Works fine with 3 line, 12 word 1 kb text file
> Hi,
>
>I am using the Perl CGI module to generate HTML form elements. One
of these elements is a
> checkbox. Following is my definition of this checkbox
>
>print $q->checkbox(-name=>'want_media',
> -checked=>'checked');
>
>The problem is, when the page gets
>
> Hi,
>
> I have files(.jpg, .pdf, .rtf, .xls) in the following non-public folder:
>
> /home/alex/documents/
>
> I need to show these files (jpg), or allow the download (.pdf, .rtf
...) from a script for users who already are authenticated and have a
session opened in the server (this part is
> ...
> >>I need to show these files (jpg), or allow the download (.pdf, .rtf
> ...
> > ...) from a script for users who already are authenticated and have a
> > session opened in the server (this part is already working).
>
>
> Gr - I promise to read slower.
>
> Set DefaultType applicat
> Hi,
>
> I have created some HTML forms using the Perl CGI module. Now I need
to perform client-side
> validations on those forms. Examples of these validations include
checking if numbers alone have
> been entered in a price field, checking if the e-mail field is in the
correct format etc.
>
> Hi all,
>
> Does anyone know how could I print a UTF-8 HTML page (like Google's one)?
>
> Which modules I need to use?
>
> Is perl able to do that?
>
> Thank you.
>
You may find some useful help in,
perldoc perluniintro
perldoc perlunicode
perldoc utf8
I suspect it can, just don't know mu
> I find I'm undefining variables my assigning an
> unitialized variable to defined value to make it
> undefined (as exemplified below).
>
> Is there a better way to do this?
>
> my $k;
> for($i = 0; $i < $c; $i++){
> if ( defined $k ){
> print $x[$k];
> my $t; # intentionally und
> On 07 Apr 2004 22:54:17 -0400, [EMAIL PROTECTED] (B McKee) wrote:
>
> >Yeah, ok, this isn't completely on topic. Please humour me (or at least
> >flame me politely). I need to redirect people to a perl-CGI script
> >
> >I have written a perl script that generates a series of active web
>
> Dear Friends,
>
> Please provide me a list of Interview questions that are frequently
asked in
> Perl.
>
This has what to do with CGI?
I would also suggest that if you post this message in a more appropriate
forum that you state your reasons for wanting them. If you are trying
to learn wha
> Hi,
>
> Is there any way in which I can tell perl where to print my data. i.e.
>
> Here is my .html
That doesn't look like HTML to me? I am thoroughly confused, can you
provide better information about the issue?
As a hunch you might want to check out one of the various template kits,
Templa
> Hi,
>
> I have tried:
>
> system("zip", "-r", "archive", "*");
>
> But this tells me that the file "*" cannot be found.
> I guess the shell thinks that I want to pass the quoted string "*" and not
> only the * character to match all files.
>
> I have succeeded with:
>
> system("zip -r \"arch
Please bottom post...
> This is better, replace the quotes with nothing and then build your input
> tag.
>
Better? You have destroyed the data. Stay away from my information
with your substituitions.
[snip code that should not be used in production]
>
> I hope this helps
Anyone readin
>
> On 14 May 2004, at 15:58, Werner Otto wrote:
>
> > Is there any way in which I can make my site appear the same in all
> > available browsers?
>
> No.
>
> (I'd be very impressed if you could even make it appear similar in
> Emacspeak, JAWS, Firefox, and Lynx).
>
> Work to public standard
> Hi all,
>
> I am using CGI to set a cookie:
>
>
> # create cookie:
> $packed_cookie = $query->cookie(-NAME => "cookieName",
> -VALUE => "cookieValue",
> -EXPIRES => "+10m" );
>
> # set cookie:
Please bottom post...
> I'm not an Apache guru, but I had a similar problem on Linux. You need
to add
> the following directive into a "conf" file. I've never installed
Apache on
> Windows before so I'm not sure where you need to put it. On Linux I
added it
> to "default-server.conf", but there
> I cant find a simple perl function to replace characters in a string. Im
> trying to inserts strings like "bob's" into a database and need to convert
> that to "bob''s" so that sql doesnt whine when i do an insert.
>
> Any suggestions?
>
There are regex's and the tr/y functions/operators? But
>
>
> I working on a rather complex database cgi program and i've never done
much work with user logins. Ideally I woudl love to set up a secure
login which will verify passwords aggaints data stored in an SQL table.
The modle I wish to use ie below. The area I need help with is the
proper way to
> hi there,
>
> I've got the following example:
>
> system ("ping -a $hostname | cut -c20-30");
>
> how do I get the following result which is (is alive) into a string
> variable as I keep on getting 0
>
> Please help.
>
Seems like you might want to post these types of things to
[EMAIL PROTE
> Hi
>
> I have a very simple cgi script that I have put onto a webserver. I want
> to write to a log file when it is run. My problem is that the open file
> command always fails (and I get the "openFailed" message in my browser).
> (even if i try opening for input it fails). I have created the fi
Please bottom post...
> Also, the first line,
>
> > #!/usr/local/bin/perl
>
> What if the server isn't a UNIX server, but an IIS server? Doesn't
this line
> have to change?
>
Careful, Unix is an OS type, IIS is an application software group.
It is my understanding (which could be very wrong)
401 - 442 of 442 matches
Mail list logo