Berkeley CSUA MOTD:Entry 41436
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/05 [General] UID:1000 Activity:popular
7/5     

2006/1/19-21 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:41436 Activity:moderate
1/19    How do I configure apache so that all the files in certain
        directories are executed as PHP without the ugly .php extension?
        \_ Turn on MultiViews; you can leave the files with the .php
           extension, but just access them without using the extension.  -tom
           \_ Oh goodie, someone talking about MultiViews.  Are there any
              potential problems with turning them on I should be aware of?
              - !op
              \_ I suppose it makes it marginally easier for someone to
                 guess one of your URLs.  There is some potential confusion
                 if you have two files with the same base name in the
                 same directory.  But I don't think there are significant
                 issues.  Our site has been that way for several months:
                 http://ls.berkeley.edu/lscr.  -tom
              \_ MultiViews are not the rigut solution for that. They use content
                 negotiation, IIRC and that causes problems with validation and
                 old browsers. I'd recommend using URL rewriting. in your
                 .htaccess put something like:
                 Options -MultiViews
                 RewriteEngine on
                 RewriteCond   %{DOCUMENT_ROOT}%{REQUEST_URI}.php -f
                 RewriteRule   .* %{REQUEST_URI}.php
                 \_ How does MultiViews cause problems with validation or
                    old browsers?  It's transparent to the client unless
                    the client asks for something specific in content
                    negotiation.  -tom
                    \_ I thought it used to. Apparently I was wrong.
                       By the way http://ls.berkeley.edu/lscr does not
                       pass validation at http://validator.w3.org
                       \_ It validates in HTML Tidy.  I'll look at the
                          issues http://w3.org brings up.  -tom
                          \_ Update for those who care: It looks like HTML
                             Tidy only validates against HTML 1.0 Transitional,
                             even if the DOCTYPE is HTML 1.1 Strict.
                             The 1.1 Strict warnings include stuff for
                             backwards compatibility with not-very-old
                             browsers (IE 5.5), so we may look at falling
                             back to 1.0 Transitional.  -tom
                             \_ Do you mean XHTML rather than HTML?
                                also there is no "XHTML 1.1 Strict."
                                just XHTML 1.1   fwiw.
                                \_ Yes, I mean XTHML.  -tom
        \_ Do your files have an extension now?  If it's, e.g. ".html", you
           could just toss this into your .htaccess:
           AddType application/x-httpd-php .html
           --dbushong
2025/07/05 [General] UID:1000 Activity:popular
7/5     

You may also be interested in these entries...
2013/4/9-5/18 [Computer/SW/Mail, Academia/Berkeley/CSUA] UID:54647 Activity:nil
4/8     What's a good free e-mail provider? I don't want to use Gmail,
        Yahoo, Outlook, or any of those sites with features I never use that
        track my personal info and keep changing their interface. I want just
        simple e-mail without privacy issues or all the baggage these large,
        for-profit companies are adding. I might even be willing to pay.
        Recommendations?
	...
Cache (357 bytes)
ls.berkeley.edu/lscr -> ls.berkeley.edu/lscr/
Welcome to the Letters & Science Computer Resources (LSCR) home page. Whatever your computing needs, our experienced staff can provide personalized support. From desktop support, to web and database design, to complex Unix networks, we have expertise in all areas of academic departmental computing. You will find our consultants knowledgeable and friendly;
Cache (574 bytes)
validator.w3.org
If you want to upload a file from your computer and have it validated, you can use this form: Local File: Validate File There is also an 31 Extended Interface available if you want to set any advanced options, and a 32 Extended File Upload Interface if you want to validate uploaded files with advanced options. Recent Updates These are the most recent major changes to this service. W3C 43 liability, 44 trademark, 45 document use and 46 software licensing rules apply. Your interactions with this site are in accordance with our 47 public and 48 Member privacy statements.
Cache (1465 bytes)
w3.org -> www.w3.org/
Join W3C The World Wide Web Consortium (W3C) develops interoperable technologies (specifications, guidelines, software, and tools) to lead the Web to its full potential. W3C is a forum for information, commerce, communication, and collective understanding. Web Services Internationalization Usage Scenarios with additional guidance for implementers of Web service technologies. The document examines how language, culture and related issues interact with Web services architecture and technology. CSS3 Basic User Interface Module to Candidate Recommendation. The Cascading Style Sheets (CSS) language is used to render structured documents like HTML and XML on screen, on paper, and in speech. This module addresses user interface states and features, element fragments, forms, stylistic attributes in HTML, focus navigation, and styling elements as icons for accessibility. News archive) Working Drafts: Authoring Techniques for XHTML and HTML Internationalization 2004-05-10: The GEO (Guidelines, Education and Outreach) Task Force of the Internationalization Working Group has published three First Public Working Drafts. Written for W3C Working Group Chairs and Team Contacts, the document replaces and incorporates the best features of the former QA Framework's Introduction and Operational Guidelines. It provides techniques, tools, and templates for test suites and specifications, and is designed to facilitate and accelerate the work of W3C Working Groups.