CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
STDOUT and Win2000Server



Dec 18, 2000, 6:30 AM

Post #1 of 1 (1642 views)
STDOUT and Win2000Server Can't Post

I am trying to compleate a site on a Win2000 Adv Server Box with Active Perl installed and working. I have tested the site
on a Unix Server and on a Win2000Pro box and PWS and the script works flawlessly. The problem is that when I try to grab a file using a simple STDOUT routine and relative addressing
the Win2000Adv Server Box cannot find the file but will display a blank page. All permissions are set to allow compleate access to the file. Below is a copy of the routine that I
have used for years without a problem.
$relative = "../";
$file = "apps/info/index.htm"; #example link

sub fetch_htm {

$webfile = "$relative$file";
print "HTTP/1.0 200\n";
print "Content-Type: text/html; charset=us-ascii\n\n";
open(FILE, $webfile);
@data = <FILE>;
close (FILE);
foreach $line (@data) {
print $line;

I developed this routine 5 years ago and ran it on a WinNT3.51
Server Box with no problems. Has Bill decided to further the gulf between Unix and Windows and change things again? If anyone can help I would greatly appreciate it.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives