I am new to asp, but i dont think i need to know alot to do this. i have made a perl script which just reads the output of a page (selected according to the parameters) and prints it. Here is the entire script:
[blue]
#!/usr/bin/perl
### ### ###
use LWP::Simple;
$the_uri = $ENV{'HTTP_HOST'};
use CGI qw standard);
use CGI::Carp qw(fatalsToBrowser);
$q = new CGI;
$openfile = $q->param(openfile);
$id_it = $q->param(id);
$a_area = $q->param(a_area);
$b_area = $q->param(b_area);
@keys = $q->param(key);
$key_matches = @keys;
## find index pages and choose according to the uri ##
unless ($openfile) { $openfile = "services"; }
$URL = "my $content = get($URL);
$content = "\n$content";
($key,@content2) = split(/\n/, $content);
print "Content-type: text/html\n\n";
foreach $content2 (@content2) {
print "$content2\n";
}
[/blue]
As you can see this is very simple. If i could do just this script in asp then i could offer my entire program in asp without actually converting it. I would like to do the same with PHP.
I have no idea where to start, so any help would be appreciated.
Much thanks,
B
[blue]
#!/usr/bin/perl
### ### ###
use LWP::Simple;
$the_uri = $ENV{'HTTP_HOST'};
use CGI qw standard);
use CGI::Carp qw(fatalsToBrowser);
$q = new CGI;
$openfile = $q->param(openfile);
$id_it = $q->param(id);
$a_area = $q->param(a_area);
$b_area = $q->param(b_area);
@keys = $q->param(key);
$key_matches = @keys;
## find index pages and choose according to the uri ##
unless ($openfile) { $openfile = "services"; }
$URL = "my $content = get($URL);
$content = "\n$content";
($key,@content2) = split(/\n/, $content);
print "Content-type: text/html\n\n";
foreach $content2 (@content2) {
print "$content2\n";
}
[/blue]
As you can see this is very simple. If i could do just this script in asp then i could offer my entire program in asp without actually converting it. I would like to do the same with PHP.
I have no idea where to start, so any help would be appreciated.
Much thanks,
B