Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> DefaultType application/x-httpd-php
acztery
post
Post #1





Grupa: Zarejestrowani
Postów: 945
Pomógł: 7
Dołączył: 15.03.2005
Skąd: katowice

Ostrzeżenie: (0%)
-----


jak zrobić coś takiego ze wszystkie pliki bez rozszerzenia będa traktowanie tak jak by mialy końcóke php i były uruchumione..

chce ukryc rozszerzenie plikow na stronie www ...


w ustawieniach serwera httpd bylo by DefaultType application/x-httpd-php

a w htaccess questionmark.gif? strone mam w katalogu np page

<Files page>
ForceType application/x-httpd-php
</Files>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
Fipaj
post
Post #2





Grupa: Zarejestrowani
Postów: 691
Pomógł: 0
Dołączył: 19.01.2005
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Cytat("Dokumentacja Apache")
DefaultType directive
Syntax: DefaultType MIME-type
Default: DefaultType text/plain
Context: server config, virtual host, directory, .htaccess (! - dop. Fipaj ;])
Override: FileInfo
Status: core

There will be times when the server is asked to provide a document whose type cannot be determined by its MIME types mappings.

The server must inform the client of the content-type of the document, so in the event of an unknown type it uses the DefaultType. For example:

    DefaultType image/gif

would be appropriate for a directory which contained many gif images with filenames missing the .gif extension.

See also: AddType and TypesConfig.


Można tak samo w .htacces.

Ten post edytował Fipaj 9.04.2006, 18:32:08


--------------------
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 18:13