hi peter
running linux radhat 9.2 and apache. tried moving the css to various
locations - all readable by apache to no avial.

<quote who="Petr Vileta">
> ----- Original Message -----
> From: "Mario R. Sanchez, Ph.D." <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[email protected]>
> Sent: Monday, April 03, 2006 7:36 PM
> Subject: CSS via CGI dynamically called
>
>
>> the linked style sheet in an html object that is read and "displayed"
>> dynamically via a perl script is not being considered. its as if its not
>> there.
>>
>> THE SCRIPT
>> #!/usr/bin/perl
>> use CGI;
>> open (THENEWS, "news.htm");
>> print "Content-type: text/html\n\n";
>>   while ($record = <THENEWS>) {
>>      print $record;
>>   }
>>   close(THENEWS);
>> exit;
>>
>>
>>
>> THE HTML = news.htm
>> <head>
>> <meta http-equiv="Content-Type" content="text/html;
>> charset=windows-1252">
>> <title>Welcome to the News page:</title>
>> <link rel="stylesheet" type="text/css" href="program.css">
>> </head>
>> <body>
>> <h1>HI</h1>
>> </body>
>> </html>
>>
>
> Maybe this is because the cgi script is on server at different location
> then
> css style. If this is the case you must rewrite URL in link during reading
> html source. Example"
>
> putout.cgi have URL http://www.mydomain.com/cgi-bin/putout.cgi
> news.html have URL http://www.mydomain.com/news.html
> In this case you must change
>     <link rel="stylesheet" type="text/css" href="program.css">
> to
>     <link rel="stylesheet" type="text/css" href="../program.css">
>
> Another case may be if the physical directory on the server have not right
> to read, only to executed. Example:
> putout.cgi have URL http://www.mydomain.com/putout.cgi and path
> /var/html/mydomain
> news.html have URL http://www.mydomain.com/news.html and path
> /var/html/mydomain
> In this case you don't must change anything but directory
> /var/html/mydomain must have right to read and execute too for Apache (or
> other) webserver daemon or service.
>
> What OS you arre using on server, Linux or Windows ? And what webserver
> program?
>
> Petr Vileta, Czech republic
> (My server reject all messages from Yahoo and Hotmail. Send me your mail
> from another non-spammer site please.)
>
>
>
> _______________________________________________
> ActivePerl mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>




_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to