corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Redhat/Perl users


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Redhat/Perl users
MikeLamb
Member

Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
17th Oct 04 at 11:52   View User's Profile U2U Member Reply With Quote

hi.. i need more help.. i have a redhat linux server running apache and i need to setup perl/apache to support non parsed headers! Anyone got any idea how? i have renamed the script nph- and it still wont work
Tim
Site Administrator

Avatar

Registered: 21st Apr 00
User status: Offline
17th Oct 04 at 12:47   View Garage View User's Profile U2U Member Reply With Quote

So you tried called the script nph-test.cgi or whatever? Strange...

If Apache does not recognise the nph- part in the filename then you can try hard coding the nph stuff...

Example from a book....

#!/usr/bin/perl -w

use strict;
use CGI qw(ush -nph);

$|=1;

print multipart_init;

while (1) {
print multipart_start;
print "The time is <H1>", scalar(localtime), "</H1>\n";
print multipart_end;
sleep 5;
}
Tim
Site Administrator

Avatar

Registered: 21st Apr 00
User status: Offline
17th Oct 04 at 12:48   View Garage View User's Profile U2U Member Reply With Quote

By the way, what are you trying to achieve using nph scripts -- since apache 1.3 you can have normal perl scripts accomplish non-buffering.

[Edited on 17-10-2004 by Tim]
MikeLamb
Member

Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
17th Oct 04 at 12:53   View User's Profile U2U Member Reply With Quote

i am trying to install a proxy server

this is the script i am trying to use:
http://www.jmarshall.com/tools/cgiproxy/
and i have installed it here:
http://www.sniffhost.net/cgiproxy/nph-proxy.pl

and this is what i get when i run your script:
http://www.sniffhost.net/test.pl

i am running Apache/2.0.40 on redhat

Thanks for your help Tim
MikeLamb
Member

Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
17th Oct 04 at 12:58   View User's Profile U2U Member Reply With Quote

i added:
#!/usr/bin/perl -w

use strict;
use CGI qw(ush -nph);

to the top of nph-proxy.pl and i got this:

http://www.sniffhost.net/cgiproxy/nph-proxy1.pl

 
New Topic

New Poll

Corsa Sport » Message Board » Off Day » Redhat/Perl users 23 database queries in 0.0108609 seconds