Hello,
Telewest server crashed, it would seem, for good. Have spent days and days migrating 5 & 6 database driven sites per day to Dreamhost. Between the servers there are some quirks and changes one of which caused me to write this tiny script to zip up some files so client can collect at will. But I am getting premature end of script headers from it from browser. It compiles and runs fine from command line, makes the zip and all. Have I lost it?
Host is running linux, perl, v5.8.4.
#!/usr/local/bin/perl -w
use strict;
my $rm = `rm /home/sumsite/public_html/foo/admin/cd.zip`;
my $cmd = `zip -q -r ./cd cd`;
print "Location: http://www.sumsite.com/foo/admin/cdZip.php\n\n";
I'm going to dream about this tonight!
Sat Jan 05 19:58:04 2008 error client 11.111.111.111 Premature end of script headers: cdZip.pl
Any help greatly appreciated!
jg
_____________________________________________________
"Transport of the mails, transport of the human voice, transport of flickering pictures - in this century, as in others, our highest accomplishments still have the single aim of bringing people together."
Wind, Sand, and Stars
Antoine-Marie-Roger de Saint-Exupery
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.