Re: Perl with Ajax issue

2019-08-13 Thread David Dorward
On 12 Aug 2019, at 19:45, Matt Zand wrote: use CGI; Do read [CGI: CGI.pm has been removed from the Perl core][1] Should I install Perl on the server or does it come with Apache package. Apache HTTPD does not include a Perl distribution although some third-party bundles include both Perl

Re: cgi development environment

2012-09-19 Thread David Dorward
. It is possible to do CGI programming in PHP (which you already know), but PSGI[1] is the flavour du jour for server side web programming with Perl. CGI is still a plausible option though. It has the benefit of simplicity (but isn't the most efficient option). [1] http://plackperl.org/ -- David

Re: Logout from Apache

2009-03-19 Thread David Dorward
Naji, Khalid wrote: How can I logout via a perl-script from Apache? That depends on the authentication method used. Usually it just comes down to Stop sending your authentication data or token with each request. -- David Dorward http://dorward.me.uk/ -- To unsubscribe, e-mail: beginners

Re: Login code

2009-01-08 Thread David Dorward
: http://search.cpan.org/~hkclark/Catalyst-Manual-5.7016/lib/Catalyst/Manual/Tutorial/Authentication.pod -- David Dorward http://dorward.me.uk/ -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

Re: embedding a CGI script in a HTML page?

2008-12-16 Thread David Dorward
data to server using the CGI interface 8. Server sends output HTML back to the browser Templates are used because it is easier to edit HTML in a template then it is to edit Perl that generates HTML. -- David Dorward -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org

Re: embedding a CGI script in a HTML page?

2008-12-16 Thread David Dorward
6 pulls a stylesheet in). -- David Dorward http://dorward.me.uk/ -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread David Dorward
with the data (and has things to loop over arrays when you have repeated data). -- David Dorward http://dorward.me.uk/ -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

Re: embedding a CGI script in a HTML page?

2008-12-14 Thread David Dorward
of the rest of the site. -- David Dorward http://dorward.me.uk/ -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

Re: cgi and ssh

2008-09-23 Thread David Dorward
/docs/1.3/suexec.html -- David Dorward http://dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: sessions

2008-08-24 Thread David Dorward
JuneEarth wrote: How to make CGI sessions to be shared among multi-webservers? Thanks. They have to use a shared data store for the session information. Using a database for that would be one approach. -- David Dorward http://dorward.me.uk/ -- To unsubscribe, e

Re: Simple Question... I hope

2008-06-04 Thread David Dorward
is invalid due to a missing start tag for a paragraph. -- David Dorward http://dorward.me.uk/ http://blog.dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: .htaccess = .WWWaccess ?

2007-12-05 Thread David Dorward
to be using an internal feature of Apache to perform HTTP Basic Authentication. While it is possible to perform HTTP Basic Authentication using a CGI script, that isn't what you are doing. You might have better luck on an Apache mailing list. -- David Dorward http://dorward.me.uk/ http

Re: first steps with mod_perl

2007-10-09 Thread David Dorward
... but I'll stick to Template-Toolkit -- David Dorward http://dorward.me.uk/ http://blog.dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Cant Display the image...

2007-09-06 Thread David Dorward
in it. but instead of the image just a square box is displayed .. So look at the server logs to see what the server thinks is happening when the image is requested. -- David Dorward http://dorward.me.uk/ http://blog.dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: .pdf files in a perl cgi application?

2007-04-24 Thread David Dorward
documentation ( http://search.cpan.org/~lds/CGI.pm-3.29/CGI.pm ). -- David Dorward http://dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: .pdf files in a perl cgi application?

2007-04-24 Thread David Dorward
. http://www.ietf.org/rfc/rfc2183.txt -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: .pdf files in a perl cgi application?

2007-04-23 Thread David Dorward
these into my application? In what sense? There are plenty of things you /could/ do with PDF files in a CGI app. What do you actually want to do? -- David Dorward http://dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: how to force html4 output

2007-01-11 Thread David Dorward
facilities, I find that its easy to craft something of decent quality by using Template-Toolkit (or HTML::Template, or etc. etc. etc.). -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Getting Content-Type: text/html; charset=ISO-8859-1 strings in my pages :(

2007-01-09 Thread David Dorward
that. You haven't provided enough of your script. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: About MVC framework

2006-12-20 Thread David Dorward
of buzz, at least.) -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: stuffing the document header

2006-12-06 Thread David Dorward
from Perl. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Store and retrive binary content via perl-cgi

2006-11-16 Thread David Dorward
#CREATING_A_FILE_UPLOAD_FIELD http://search.cpan.org/~timb/DBI-1.53/DBI.pm http://search.cpan.org/~danieltwc/DBIx-Class-0.07002/lib/DBIx/Class.pm -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: download java applications

2006-11-10 Thread David Dorward
On Fri, Nov 10, 2006 at 03:05:48AM -0800, cool planet wrote: How , it is possible to download java applications (jad/jar) via perl - cgi ? It is no different from downloading any other resource. can i see few examples ? http://search.cpan.org/~gaas/libwww-perl-5.805/lib/LWP.pm -- David

Re: Headers(Location) in Perl??

2006-11-04 Thread David Dorward
page in my system. In php I could use the header(Location: www.blah.com) todo this, is there anything like that in perl? You can just print them directly (since CGI expects headers followed by a blank line followed by message), or CGI.pm has a header method. -- David Dorward

Re: CGI Scripts and IE

2006-09-25 Thread David Dorward
, and you are testing for $q-param('foo') eq 'baz' and falling over IE's problem of sending Bar as the value. ... but you haven't provided anywhere near enough information about the problem to say for sure. Real URL? HTML? Perl? -- David Dorward http://dorward.me.uk

Re: How to do a static variable that persists from page to page

2006-04-28 Thread David Dorward
{'param'}. Because CGI.pm is quite smart. -- David Dorward http://dorward.me.uk/ Anybody remotely interesting is mad, in some way or another. -- The Greatest Show in the Galaxy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: catching multiple values

2006-04-18 Thread David Dorward
is multivalued (e.g. from multiple selections in a scrolling list), you can ask to receive an array. Otherwise the method will return a single value. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: redirect - CGI

2006-04-11 Thread David Dorward
'); -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: C++ query with mySQL

2006-04-10 Thread David Dorward
calling the script: http://mysite.com/cgi-bin/index.cgi?cat=C_and_C++/Ad_Management However, the + character _does_ have special meaning in URLs - it represents a space character. You should URL encode the data you pull from the database. The URI::Escape module can help with this. -- David Dorward

Re: FTP from my web ssite question

2006-03-14 Thread David Dorward
=myfile.zipmy artwork/a); ... Or, if you really want to use FTP: ... print q(Download a href=ftp://example.com/myfile.zip;my artwork/a); ... -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: referer throwing Internal Server Error

2006-03-13 Thread David Dorward
://www.example.com/ -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Preventing unauthorized use of a CGI script

2006-02-07 Thread David Dorward
due to laziness in that overwriting the referer header with junk means that the software doesn't need to recalculate the content-length). If you are trying to stop spammers from using the form handler to send many messages, then no. Forging a referer header is trivial. -- David Dorward

RE: CGI - HTML::TEMPLATE - How do it ?

2006-02-02 Thread David Dorward
.com', subdomain = 'www.domain2.com', }, -- David Dorward http://dorward.me.uk/ Anybody remotely interesting is mad, in some way or another. -- The Greatest Show in the Galaxy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: CGI - Email Forms

2005-12-08 Thread David Dorward
(such as NMS) is a good way to solve the problem. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: CGI - Email Forms

2005-12-08 Thread David Dorward
::Sendmail; I'm not familiar with Mail::Sendmail, but I'm betting that it replaces the new line with an escape sequence. That has nothing to do with CGI.pm. -- David Dorward http://dorward.me.uk/ Anybody remotely interesting is mad, in some way or another

Re: CGI - Email Forms

2005-12-07 Thread David Dorward
address. Nor should you allow new lines ... $subject = User entered data with\nBCC: spam victim [EMAIL PROTECTED] -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: Filering a file

2005-12-05 Thread David Dorward
?). Nothing in your question is CGI related, have you got this working as a command line script but are having trouble converting it to work under CGI? What code have you got so far? -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL

Re: Need help with making a Modules

2005-11-27 Thread David Dorward
, then dropping it into a template (using Template-Toolkit of HTML::Template) makes things more manageable. -- David Dorward http://dorward.me.uk/ Anybody remotely interesting is mad, in some way or another. -- The Greatest Show in the Galaxy

Re: Turn off enctype

2005-11-07 Thread David Dorward
of every browser I've ever tried it with. In fact, its the default type mandated by the HTML spec: http://www.w3.org/TR/html4/interact/forms.html#form-content-type -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: uninitialized variable

2005-11-01 Thread David Dorward
($action eq 'search') { ... } -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: hardcoded paths

2005-10-28 Thread David Dorward
URLs? -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Combined select and input

2005-10-21 Thread David Dorward
probably be the best place to ask. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: XML [AntiVir checked]

2005-10-11 Thread David Dorward
specific needs. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: One link to 2 frames

2005-09-21 Thread David Dorward
. It sounds like a band-aid solution to more serious underlying problem. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first

XHTML (was Re: One link to 2 frames)

2005-09-21 Thread David Dorward
). Using CSS for layout, HTML (or XHTML) for semantics, relationships and structure, and JavaScript for behaviour is generally lumped under the umbrella heading of Standards based design. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL

Re: One link to 2 frames

2005-09-21 Thread David Dorward
be in addition to the link as JavaScript is optional, and meta refresh isn't standardised. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Re: XHTML (was Re: One link to 2 frames)

2005-09-21 Thread David Dorward
On Wed, Sep 21, 2005 at 10:18:37AM -0400, Chris Devers wrote: On Wed, 21 Sep 2005, David Dorward wrote: XHTML 1.1 is XHTML 1.0 Strict with Ruby added. Really? Yes. As in the scripting language Ruby? No. As in the Ruby Annotation language. http://www.w3.org/TR/2001/REC-ruby

Re: Forcing a save as' dialogue box to come up on left click

2005-09-20 Thread David Dorward
. Whoops, beg pardon. http://www.faqs.org/rfcs/rfc2616.html Section 19.5.1 -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first

Re: One link to 2 frames

2005-09-20 Thread David Dorward
frameset document. Neither really involve Perl or CGI. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Forcing a save as' dialogue box to come up on left click

2005-09-19 Thread David Dorward
On Sun, 2005-09-18 at 17:46 -0500, Tony Frasketi wrote: I'm trying to find a way to force a download dialogue box to come up when the user clicks on a link on a web page http://www.faqs.org/rfcs/rfc2183.html -- David Dorward http://dorward.me.uk/ Anybody remotely

Re: CGI.PM and IF statment....

2005-09-10 Thread David Dorward
want to test if they have selected the Choose type message option, then you need to check if $mt contains the data 0. The length of 0 is 1 (since it is one character long), so (length($mt) == 0) will always fail. if ( (!defined $mt) || ($mt eq '0') ) { # Etc } -- David Dorward

Re: $ENV{'HTTP_REFERER'}

2005-08-24 Thread David Dorward
it No -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: getstore and comments

2005-08-19 Thread David Dorward
takes a file can take either a filename or a filehandle. If your only intention is to read it, then you might be better off with get() instead of getstore(). -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: htaccess question

2005-08-12 Thread David Dorward
it going to be clear. The difference here is that it is visible in the URL - and so exposed to the look-over-the-user's-shoulder-in-the-real-world attack. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: How do I make two different web pages come up from one CGI?

2005-08-04 Thread David Dorward
use JavaScript to spawn a second window, although it might be blocked by popup blockers (the specifics of such a solution are rather off topic for this list though, so I'll suggest you look elsewhere if you want to go down that path). -- David Dorward http

Re: Easy question

2005-07-19 Thread David Dorward
/FORM You should pay a visit to http://validator.w3.org/ -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: How to browse and select a remote file and then return the filename

2005-07-07 Thread David Dorward
the user's file system over the Internet, and since that file system might be UNIX type, DOC type, or some other unknown type - it isn't a particularly useful feature to build into HTML. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL

Re: How to browse and select a remote file and then return the filename

2005-07-07 Thread David Dorward
, in particular, seems to be growing fast now. I seem to recall somebody managing to run ActiveX and IE under WINE :) -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: HTML::Templates

2005-06-28 Thread David Dorward
, then the page is getting redirected to login page asking the user to login again. I'm guessing you are passing everything as POST data? Use a session to track where the user is at any given point, and return them there if they revisit the page without submitting POST data. -- David Dorward

Re: hide source code 2 - online game

2005-06-19 Thread David Dorward
... comments? Err... Ha!? (Code is only secure as the person who writes it, I find it rather harder to write secure code in PHP, it doesn't come with such sane features as, for example, DBI bind variables.) -- David Dorward http://dorward.me.uk -- To unsubscribe, e

Re: hide source code

2005-06-18 Thread David Dorward
On Sat, Jun 18, 2005 at 02:51:51PM +0200, Glauco Magnelli wrote: I would hide source code in my CGI Perl scripts. Which source code (Perl, HTML?)? From whom (other users of the server, visitors to the website?)? -- David Dorward http://dorward.me.uk

Re: hide source code

2005-06-18 Thread David Dorward
On Sat, Jun 18, 2005 at 07:43:58PM +0200, Glauco Magnelli wrote: Excuse me, you're right. I want hide Perl code from other users of the server. http://perlmonks.org/?node_id=423870 -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL

Re: How to save the state of a CGI script

2005-05-30 Thread David Dorward
when retrieving any information from the server and POST when you are changing something. (This has implications such as GET being bookmarkable, and POST causing most browsers to warn about resubmitting data). -- David Dorward http://dorward.me.uk

Re: How to use mime types for excel?

2005-05-14 Thread David Dorward
). -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Remote Desktop

2005-04-20 Thread David Dorward
to do with Perl or CGI though. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Variables in Modules

2005-04-13 Thread David Dorward
it on the server and asking the client to pass a token about (typically in a Cookie) to identify which set of data belongs to the user (this is usually done with sessions: http://search.cpan.org/~sherzodr/CGI-Session-3.95/Session.pm ) -- David Dorward http

Re: Internal links with cgi

2005-03-26 Thread David Dorward
. It doesn't matter how the server goes about working out what content to send back, CGI, mod_perl, a static file, its all the same to the client. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: IE save, other shows image

2005-02-10 Thread David Dorward
On Thu, Feb 10, 2005 at 10:30:59AM +0100, Ing. Branislav Gerzo wrote: I have simple question, in my CGI script I have: print $query-header(-type='image/jpg'); This is wrong, the registered MIME type for JPEG images is image/jpeg -- David Dorward http

Re: Incorrect HTML Rendering?

2005-02-08 Thread David Dorward
mutterings about markup authoring questions being inappropriate for a Perl CGI list). -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org

Re: embedding dynamic images in html output

2005-01-21 Thread David Dorward
, Internet Explorer doesn't support it (for instance). -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: cascading menus in perl??

2004-12-14 Thread David Dorward
On Tue, 2004-12-14 at 11:41 +1100, Cat wrote: Been using a cascading menu written in javascript but would like to convert this to perl so that on mouseover it drops down further options to click through. If you want something on the client to change in response to an action then you either

Re: Form PARAM is wierd (to me)

2004-12-12 Thread David Dorward
. If you pay a visit to Google and search for something including spaces, you will probably see the same effect. I suspect you will find that when you get the value in your CGI script you will see them converted back to spaces. -- David Dorward http://dorward.me.uk

Re: Using a CSS file

2004-12-08 Thread David Dorward
be? Yes -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Printing from a Web Browser

2004-12-01 Thread David Dorward
On Wed, 2004-12-01 at 12:05 -0600, Bill Stephenson wrote: I just spent several hours formatting a web page template with a Style Sheet only to find that when the browser sends the page to a printer it apparently tosses the CSS info and renders it in the default HTML. Very frustrating

Re: Printing from a Web Browser

2004-12-01 Thread David Dorward
On Wed, 2004-12-01 at 18:51 +, David Dorward wrote: By default a linked style sheet applies to screen media only. Whoops, I got that backwards. Its style elements which default to screen only. -- David Dorward http://dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Address bar redirects

2004-11-04 Thread David Dorward
On Thu, 2004-11-04 at 12:49 -0500, Chasecreek Systemhouse wrote: However, before you go traipsing off to research - try using target=_new and have the NEW url open in a NEW window. or not, since: (a) New windows are a usability hazard (b) _new is not an allowed value for the target attribute

Re: Address bar redirects

2004-11-04 Thread David Dorward
the next redirect doesn't change the address bar. I'm really not clear what you are refering to by It or the one here. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: Address bar redirects

2004-11-04 Thread David Dorward
. (Relevant background lost as I'm too busy to repair other people's top posting). -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first

Re: was php Perl, now reusable page elements

2004-11-03 Thread David Dorward
On Thu, 2004-11-04 at 15:35 +1100, Cat wrote: What made me work with php was it's ability to draw reusable page elements like the header, menu, footer from another html page from a fixed html page. Now I know that this can be done in perl when the pages are generated by a script, When a

Re: cgiemail - formquestion

2004-11-01 Thread David Dorward
do not depend on any data generated from JavaScript to either exist or be accurate. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Re: Help with php perl

2004-10-22 Thread David Dorward
or the other. I suggest you pick a language and stick to it. (Perl is a good choice :D ) the newbie at perl php. If you are a PHP beginner AND a Perl beginner then its even more of a bad idea to try to use them both at the same time! -- David Dorward http

Re: cgi errow 403 if accessed with lynx browser

2004-10-20 Thread David Dorward
of the second script? Does the problem occur with user agents other then lynx (if not, then it suggests the problem is with the HTML and lynx isn't managing to compensate for your error)? -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL

Re: cgi errow 403 if accessed with lynx browser

2004-10-20 Thread David Dorward
On Wed, 2004-10-20 at 14:51 -0400, Ingo Weiss wrote: That suggests you are trying to access /cgi-bin/ instead of /cgi-bin/someScript.cgi. Have you checked the HTML output of the previous script? Is the HTML valid? I checked it and it validates as XHTML 1.1 transitional That is very

Re: Reimplement CPAN as a Torrent?

2004-10-19 Thread David Dorward
On Tue, 2004-10-19 at 13:41 -0700, Bill Jones wrote: Should CPAN be re-implemented as a Torrent? No, it shouldn't. (a) CPAN changes frequently (b) Most people don't need a complete CPAN archive P2P is really hot and raging in some circles. Maybe torrents can benefit us in legal ways? At

Re: getting files from the internet

2004-10-14 Thread David Dorward
, the second parameter should be a file, not a directory. You should probably be checking the response code that getstore returns as well. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Printing html document

2004-09-24 Thread David Dorward
to something your printer can understand (maybe postscript)). -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: newbie question about regex

2004-09-03 Thread David Dorward
or quite your text so that bash (or sh or whatever) won't try to do something special with it. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Re: DBI for FireBird

2004-08-20 Thread David Dorward
InterBase). -- David Dorward http://dorward.me.uk/ http://blog.dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: can't locate Image/Magick.pm in @INC

2004-08-16 Thread David Dorward
Magick.pm existing in an Image directory in any of those directories? If not - install Image::Magick. -- David Dorward http://dorward.me.uk/ http://blog.dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Re: How to display a Text file using web browser under CGI

2004-08-13 Thread David Dorward
On 10 Aug 2004, at 21:52, Sun, Jian wrote: Could anybody help me to figure out How to display a Text file using the web browser in a CGI program? * output suitable http headers such as the content type * open the file * read the file * output the file Where are you having difficulty? -- David

Re: how to embed c code in perl programs

2004-08-13 Thread David Dorward
. They both look like they should do the job, but I have to confess I haven't used either. -- David Dorward http://dorward.me.uk/ http://blog.dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Re: File Size Calculator

2004-08-09 Thread David Dorward
stuck? Getting user input (where from)? Working out which order of magnitude the number is? Converting between kilo and mega et al? Showing the output? Show us some code. -- David Dorward http://dorward.me.uk/ http://blog.dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Determining Odd and Even Numbers

2004-08-03 Thread David Dorward
On 3 Aug 2004, at 13:26, [EMAIL PROTECTED] wrote: Does anyone know a simple way to determine if a number is odd or even? Use the modulus operator. If $foo % 2 has remainder 1, then it is odd, if it has remainder 0, then it is even. -- David Dorward http://dorward.me.uk/ http

Re: Trouble with PERL and HTML

2004-07-25 Thread David Dorward
to index.html instead of /index.html or ../index.html or http://www.example.com/index.html;. -- David Dorward http://blog.dorward.me.uk/ http://dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Re: Help required with DBI

2004-07-24 Thread David Dorward
On Sat, 2004-07-24 at 19:14, NandKishore.Sagi wrote: $data_source = dbi:DriverName:database_name ; Can't locate DBD/DriverName.pm in Change DriveName to the name of the driver you want to use (e.g. mysql) Change database_name to the name of the database you want to use. -- David Dorward

Re: Windows Perl Environment

2004-07-17 Thread David Dorward
if ActivePerl removed it. http://www.linuxjournal.com/article.php?sid=2484 -- David Dorward http://blog.dorward.me.uk/ http://dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first

Re: how to extract digit from a line in Perl

2004-07-14 Thread David Dorward
a headache. Eugh. -- David Dorward http://dorward.me.uk/ http://blog.dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: new window on redirect

2004-07-13 Thread David Dorward
CGI.pm's redirect? print $output-redirect($u) You can't... well... there is the Window-Target not-really-http-header but, last I heard, browser support for that (thankfully) sucks. http://diveintoaccessibility.org/day_16_not_opening_new_windows.html -- David Dorward http://dorward.me.uk/ http

Re: Reading a comma delimited file into an array

2004-06-18 Thread David Dorward
-CSV_XS-0.23/CSV_XS.pm -- David Dorward http://dorward.me.uk/ http://blog.dorward.me.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Identifying words containing a specific substring in a sentence (was: a simple question)

2004-06-16 Thread David Dorward
@list_of_words_containing_xyz = grep /xyz/, @list_of_words; foreach my $word (@list_of_words_containing_xyz) { print $word, \n; } or, in less verbose form: foreach (grep(/xyz/,split(/\ /, axyzb cxyzd ))) { print $_, \n; } -- David Dorward http://dorward.me.uk/ http

  1   2   >