[OT] document encoding

2002-08-25 Thread Hytham Shehab

hi guys,
i insert both lines:
META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=windows-1256
META HTTP-EQUIV=Content-Language CONTENT=ar
into my cgi script, so that document language is predefined, and the
browser - IE 5.5 - will stick with it, but:
it gives me any type of characters/language except what i want, i even
deselect the Auto-Select option in the IE 5.5, but no good, i have always
select Arabic inorder to view it correctly, but when the cgi script
generate the result, it returns - again - to be not Arabic.
i hope that i made my problem some how clear.

thanks guys.

--
Hytham Shehab



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




Re: sgi question

2002-08-25 Thread Craig Dean

Check to see who is running apache ie nobody or root or apache
Check the cgi directory for permissions. rwx or 700 or 777 or whatever
Check the script ownership and permissions
Whichever user is running the Apache server is the one that needs the access 
to the cgi directory

On Thursday 22 August 2002 01:20 pm, [EMAIL PROTECTED] wrote:
 David,
 Are you sure that apache has the cgi-bin where you think it is?  In the
 httpd.conf there is usually a line like
 Alias /cgi-bin/ /new/location/for/cgi-bin/
 If this is the case, its not even pointing to the folder you think it
 is.  I guess this is the place to start.

 Regards,
 David - [EMAIL PROTECTED]



 - Original Message -
 From: Nazary, David [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 22, 2002 11:51 AM
 Subject: sgi question


 Hi,

 I am trying to run a simple cgi script and I keep getting the followin
 error:

 Forbidden
 You don't have permission to access /cgi-bin/ on this server.

 Apache/1.3.22 Server at scmset.sc.intel.com Port 80

 I have given 777 to cgi-bin directory and the hello.pl file under it which
 is :


 #!/usr/intel/bin/perl
 print Content-type: text/html\n\n;

 print Hello guys\n;
 print `date`;


 Any help will be greatly appreciated.

 Thanks
 David

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




RE: No cache

2002-08-25 Thread Bob Showalter

 -Original Message-
 From: Octavian Rasnita [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, August 24, 2002 1:36 PM
 To: [EMAIL PROTECTED]
 Subject: No cache
 
 
 Hi all,
 
 I thought that the browser doesn't caches the pages created 
 on the fly by a
 CGI script but it does.
 
 Do you know what I should do to make it not to cache?

I recommend the following to prevent caching:

print $q-header({Expires='now', 'Cache-control'='no-cache'});

 
 Should I use an html meta tag? What is it?

META HTTP-EQUIV is kind of pointless for CGI, since you can generate HTTP
headers directly.

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




Re: sgi question

2002-08-25 Thread Alex B.

Craig  other ppl,

maybe you have set the order of permissions wrong (@IfModule mod_alias.c),
like this:

Order deny,allow
Deny from all


where it should be allow from all... and the other way around (Order allow,deny)


mine looks like this:

   ScriptAlias /cgi-bin/ /SERVER/httpd/cgi-bin/
Directory /usr/local/apache/cgi-bin
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
/Directory

I gave my http and email and other crap a seperate partition, because
of massive data loads.
-END-

 Check to see who is running apache ie nobody or root or apache
 Check the cgi directory for permissions. rwx or 700 or 777 or whatever
 Check the script ownership and permissions
 Whichever user is running the Apache server is the one that needs the access 
 to the cgi directory

 On Thursday 22 August 2002 01:20 pm, [EMAIL PROTECTED] wrote:
 David,
 Are you sure that apache has the cgi-bin where you think it is?  In the
 httpd.conf there is usually a line like
 Alias /cgi-bin/ /new/location/for/cgi-bin/
 If this is the case, its not even pointing to the folder you think it
 is.  I guess this is the place to start.

 Regards,
 David - [EMAIL PROTECTED]



 - Original Message -
 From: Nazary, David [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 22, 2002 11:51 AM
 Subject: sgi question


 Hi,

 I am trying to run a simple cgi script and I keep getting the followin
 error:

 Forbidden
 You don't have permission to access /cgi-bin/ on this server.

 Apache/1.3.22 Server at scmset.sc.intel.com Port 80

 I have given 777 to cgi-bin directory and the hello.pl file under it which
 is :


 #!/usr/intel/bin/perl
 print Content-type: text/html\n\n;

 print Hello guys\n;
 print `date`;


 Any help will be greatly appreciated.

 Thanks
 David




-- 
 Alexmailto:[EMAIL PROTECTED]


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