On Aug 21, 8:37 pm, [EMAIL PROTECTED] (Tony Heal) wrote:
> I want to run a cgi script from another server inside a local cgi page
You could use LWP or (better yet) WWW::Mechanize within your local CGI
to fetch the content of the remote page and then display it from your
local CGI script.
--
The
Tony Heal wrote:
I want to run a cgi script from another server inside a local cgi page
A quick and dirty example:
#!/usr/bin/perl -T
use strict;
use warnings;
use LWP::Simple;
my ($content, $style) = getpage();
print <
$style
$content
HTML
sub getpage {
my $domain = 'http://pace202
-Original Message-
>From: Tony Heal <[EMAIL PROTECTED]>
>Sent: Aug 22, 2007 11:37 AM
>To: beginners@perl.org
>Subject: CGI Help
>
>I want to run a cgi script from another server inside a local cgi page
>
>SSI will only do local files, not remote URLs.
>
>
>
>How can I do this?
>
>
>
Ho
> Hi,
Howdy
> I am writing a form that will allow the user to find a record
> by first and last name and display the record in an HTML
I'd highly recommend using DBI and mysql instead of flat file.
Much easier to search/store/etc..
> page. #!/usr/bin/perl use strict; use CGI qw(:standard); my
[EMAIL PROTECTED] wrote:
>
> open (FH,"hl_of_users.txt") || &CgiDie("Can't open user file!");
>
Try:
open (FH,"hl_of_users.txt") or &CgiDie("Can't open user file!");
HTH,,
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
il (to the numbers or address above) immediately.
-Original Message-
From: Stefan Lidman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 10:24
Cc: [EMAIL PROTECTED]
Subject: Re: CGI help
> in the browser, but as soon as i add a file handle to obtian the userid
from
> the
> in the browser, but as soon as i add a file handle to obtian the userid from
> the username it stops working, nothing is displayed.
>
> open (FH,"hl_of_users.txt") || &CgiDie("Can't open user file!");
>
> I will be pereforming various actions on this file handle but at the moment
> i can't do a