HTTP Authentication с PHP как FastCGI/SuExec
10/06/11 в 22:06 | просто прочесть =)Однако, есть обходной путь доступны, которые могут сделать HTTP-авторизации для PHP работать даже в режиме CGI.
У меня случилась интересная ситуация, мой скрипт постоянно выдавал форму ввода лоина и пароля при HTTP авторизации. Я никак не мог понять в чем дело. Оказалось все просто. Плохая новость в том, что этот тип авторизации не работает, если ваш PHP установлен и работает как FastCGI. Он отлично работает, когда PHP установлен как модуль.
Хотя… Решение довольно не тривиальное.
Читать полностью >>> HTTP Authentication с PHP как FastCGI/SuExec…
Настройка кодировки в .htaccess
09/06/11 в 20:06 | просто прочесть =)Как я устраняю почти все проблемы с кодировкой на своих сайтах, использующих Apache server?
Все можно сделать просто в пару строк в файле .htaccess
Можно сделать с использованием FilesMatch или Files in htaccess
Я предпочитаю так:
1 | AddDefaultCharset UTF-8 |
Можно сделать так:
Читать полностью >>> Настройка кодировки в .htaccess…
Путеводитель по регулярным выражениям: инструменты и инструкции
03/07/09 в 13:07 | просто прочесть =)Источник: smashingmagazine.com
Регулярные выражения часть любого программерского набора. Они могут пригодиться, если Вам необходимо найти, заменить части текстовых шаблонов или символов. Регулярные выражения, как швейцарский нож для модификации строк. Хотите чтобы url сайта выглядел приятно? Используйте regex. Нужно удалить всю пунктуацию или убрать все теги? Тем более используйте регулярные выражения. Использование регулярных выражений безгранично.
Регулярные выражения это то, с чем Вам нужно столкнуться как минимум единожды, хотябы для того, чтобы поправить .htaccess файл для создания Человеко-понятных ссылок, или что-то покруче, например для фильтрации RSS фидов или другой информации. Ниже представленно несколько ресурсов, которые помогут Вам на пути изучения и использования regex.
Читать полностью >>> Путеводитель по регулярным выражениям: инструменты и инструкции…
Как открыть сайт
20/02/09 в 12:02 | просто прочесть =)Какие действия должны быть выполнены до официального открытия сайта. Ден Замбонини — технический директор Box UK разрабатывающий Amaxus Content Management System предлагает следующий список последовательных действий разделенных по категориям.
| Pre-Launch | |
| Content and Style | |
| Typography and layout | |
| Check for incorrect punctuation marks, particularly apostrophes, quotation marks and hyphens/dashes | |
| Check headings for where you could potentially use ligatures | |
| Check for widow/orphan terms in important paragraphs | |
| Spelling and grammar | |
| Consistency | |
| Capitalisation (especially of main headings) | |
| Tense/Style of writing | |
| Recurring/common phrases (e.g. ‘More about X’ links) | |
| Variations in words (e.g. Websites vs Web Sites, or UK vs US spelling) | |
| Treatment of bulleted lists (e.g. periods or commas at end of each item) | |
| Check for hard-coded links to staging domain (i.e. ensure all links will change to ‘live’ URL/domain when site is launched) | |
| Ensure no test content on site | |
| Check how important pages (e.g. content items) print | |
| For re-designs, ensure important old/existing URLs are redirected to relevant new URLs, if the URL scheme is changing | |
| Check all ‘Hidden Copy’ (e.g. alt text, transcriptions, text in JavaScript functions) | |
| Standards and Validation | |
| Accessibility | |
| HTML validation | |
| JavaScript validation | |
| CSS validation | |
| Search Engine Visibility, SEO and Metrics | |
| Page Titles are important; ensure they make sense and have relevant keywords in them. | |
| Create metadata descriptions for important pages. | |
| Check for canonical domain issues (e.g. variations in links to http://site.com http://www.site.com http://www.site.com/index.html should be reduced to a single consistent style) | |
| Ensure content is marked-up semantically/correctly (<h1>, etc.) | |
| Check for target keyword usage in general content | |
| Check format (user/search engine friendliness) of URLs | |
| Set up Analytics, FeedBurner, and any other packages for measuring ongoing success | |
| Create an XML Sitemap | |
| Configure Google Webmaster Console and Yahoo! Site Explorer | |
| Functional Testing | |
| Check all bespoke/complex functionality | |
| Check search functionality (including relevance of results) | |
| Check on common variations of browser (Internet Explorer, Firefox, Safari, Chrome etc.), version (6, 7, 2.2, 3.1 etc.) and platform (Windows, OSX, Linux) | |
| Check on common variations of Screen Resolution | |
| Test all forms (e.g. contact us, blog comments), including anti-spam features, response emails/text, etc. | |
| Test without JavaScript, Flash, and other plug-ins | |
| Check all external links are valid | |
| Security/Risk | |
| Configure backup schedule, and test recovery from backup. | |
| Protect any sensitive pages (e.g. administration area) | |
| Use robots.txt where necessary | |
| Security/Penetration test | |
| Turn-off verbose error reporting | |
| Check disk space/capacity | |
| Set-up email/SMS monitoring/alerts (e.g. for errors, server warnings); consider internal and external monitoring services | |
| Performance | |
| Load test | |
| Check image optimisation | |
| Check and implement caching where necessary | |
| Check total page size/download time | |
| Minify/compress static (JavaScript/HTML/CSS) files | |
| Optimise your CSS: use short image paths; make full-use ‘cascading’ nature of CSS, etc. | |
| Check correct database indexing | |
| Check configuration at every level (Web server, Database, any other software e.g. Content Management System) | |
| Configure server-based logging/measurement tools (e.g. database/web server logging) | |
| Finishing Touches | |
| Create custom 404/error pages | |
| Create a favicon | |
| Post-Launch | |
| Marketing | |
| Social Marketing: Twitter, LinkedIn, Digg, Facebook, Stumbleupon, etc. | |
| Submit to search engines | |
| Set-up PPC/Google Adwords where necessary | |
| Check formatting of site results in SERPs | |
| Ongoing | |
| Monitor and respond to feedback (direct feedback, on Social Media sites, check for chatter through Google, etc.) | |
| Check analytics for problems, popular pages etc. and adjust as necessary | |
| Update content | |
Оригинал тут: boxuk.com