Webhosting that supports mod_perl

2002-10-11 Thread Ramon Hildreth

Hi, Does anyone know of a good web host that
Supports mod_perl?

thanks



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Printing in while loops

2002-10-11 Thread Tracey Bedford

Hi Everyone,

I am new to this list and have a strange question for you.

I am calling a subroutine in a while loop. However in the output only
one line is printed.  If I print to screen all information prints out.

Here is the code

The line print $tmp[0]\n; prints all out put to screen.



opendir DIR, $dir;
while ($file = readdir DIR) {
next if $file !~ /$date\-\d{6}\.general/;
open LOGFILE, $dir/$file or die Can't open $dir/$file :$!\n;

while (LOGFILE) {

$tmp = LOGFILE;

next if $tmp !~ /were not handled on loop/;


@tmp = split (/Items\:/,$_);
$tmp[0] =~ s/\:/\ /g;
$tmp[0] =~ s/jobId\[/\ /g;
$tmp[0] =~ s/\]/\ /g;
$tmp[0] =~ s/\[/\ /g;
print $tmp[0]\n;

if ($errorlist) {
ProcessEmail;
else {exit;}

}

}
close LOGFILE;



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




[Re:Webhosting that supports mod_perl]

2002-10-11 Thread Todor Todorov

I think www.host.sk offers whatever you need. But it`s in Slovakian :)



Óíèêàëíî ïðåäëîæåíèå! Àëáóì íà Åëâèñ '30 # 1 HITS' - 30 çëàòíè õèòà íà
Êðàëÿ íà ðîêà.
Äîñòàâêà äî äîìà èëè îôèñà CD - 11 ëâ. MC - 7 ëâ. îò BMG/AveNew Productions
http://www.kefche.com/adv/click.php?id=elvis



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: css in cgi generated page

2002-10-11 Thread fliptop

On Thu, 10 Oct 2002 at 22:01, Ian Watt opined:

IW:is there some special trick to linking a style sheet to your page when 
IW:the page is generated by a cgi script?
IW:I have this sub routine that prints the header of a html page:
IW:  sub write_html_header
IW:  {
IW:print Content-type: text/html\n\nhtml\n head\n;
IW:print   link rel='stylesheet' href='mystyle.css' /\n;
IW:print   title$_[0]/title\n;
IW:print /head\nbody\n;
IW:  }
IW:When I run this in a browser it displays the page normally except the 
IW:style sheet isn't applied to the page at all.  It just shows the 
IW:default colors.  I also tried it with the attributes type='text/css' 
IW:and media='screen' but nothing seems to work.  I've tried it in 
[snip]

assuming your mystyle.css file is in your document root, try this:

print   link rel='stylesheet' type='text/css' href='/mystyle.css'\n;

because if you're trying to print this from a file in your cgi-bin, then 
listing the href='mystyle.css' means 'look for the file 
cgi-bin/mystyle.css', and you probably have it in your document root.  
including the leading slash will tell the webserver to look there instead.

also, i'm not sure why you have the extra '/' in there, but perhaps that 
is causing problems also.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Printing in while loops

2002-10-11 Thread Kipp, James

I am not quite sure what you want to do here, but here is what i see:

the scalar your assining to the fh is being overwritten at each iteration
$tmp = LOGFILE; 
all  you need to do is open each file, and operate on the $_ var, you don't
need to assign the FH to a variable (unless you want to slurp it into an
array)


 -Original Message-
 From: Tracey Bedford [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 8:22 PM
 To: [EMAIL PROTECTED]
 Subject: Printing in while loops
 
 
 Hi Everyone,
 
 I am new to this list and have a strange question for you.
 
 I am calling a subroutine in a while loop. However in the output only
 one line is printed.  If I print to screen all information prints out.
 
 Here is the code
 
 The line print $tmp[0]\n; prints all out put to screen.
 
 
 
 opendir DIR, $dir;
 while ($file = readdir DIR) {
 next if $file !~ /$date\-\d{6}\.general/;
 open LOGFILE, $dir/$file or die Can't open 
 $dir/$file :$!\n;
 
 while (LOGFILE) {
 
 $tmp = LOGFILE;
 
 next if $tmp !~ /were not handled on loop/;
 
 
 @tmp = split (/Items\:/,$_);
 $tmp[0] =~ s/\:/\ /g;
 $tmp[0] =~ s/jobId\[/\ /g;
 $tmp[0] =~ s/\]/\ /g;
 $tmp[0] =~ s/\[/\ /g;
 print $tmp[0]\n;
 
 if ($errorlist) {
 ProcessEmail;
 else {exit;}
 
 }
 
 }
 close LOGFILE;
 
 
 
 -- 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Webhosting that supports mod_perl

2002-10-11 Thread William McKee

On 11 Oct 2002 at 1:09, Ramon Hildreth wrote:
 Hi, Does anyone know of a good web host that
 Supports mod_perl?

Ramon, 
From my experience, you're going to have a hard time finding a host that 
offers shared hosting with mod_perl due to the was mod_perl shares scripts 
globally. Hopefully this situation will change with Apache2 and perchild 
MPM. 

Until then, what I've had to do is use a host that offers virtual server 
accounts. I use http://www.shire.net which offers a FreeBSD environment 
with a jail account. You'll have to learn more than you ever wanted to 
know about server administration, but it's valuable knowledge.

Good luck,
William

-- 
 Lead Developer
 Knowmad Services Inc. || Internet Applications  Database Integration
 http://www.knowmad.com
 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]