Archive

Archive for the ‘PHP’ Category

ЧПУ для кирилической ссылки на страницу

February 2nd, 2011 No comments

Проблема описана в багтрекере: http://core.trac.wordpress.org/ticket/10249

wp-includes/classes.php

174 $req_uri = str_replace($pathinfo, ”, rawurldecode($req_uri));

Заменить на

174 $req_uri = str_replace($pathinfo, ”, $req_uri);

Categories: PHP, Wordpress Tags:

Удалить вложенные папки .SVN

January 26th, 2011 No comments

Создайте новый .bat файл в корневом каталоге. Назовите remove_svn_sub_folders.bat,
вставьте следующий текст.

for /f “tokens=* delims=” %%i in (‘dir /s /b /a:d *svn’) do (
rd /s /q “%%i”
)

Затем выполните. Это удалит все вложенные папки с .SVN.

Categories: PHP, SVN, Windows Tags: ,

XML Sitemap Creator

June 26th, 2010 No comments

XML Sitemap Creator, sitemap xml

Free script for creating xml sitemap:
http://enarion.net/google/phpsitemapng/

Categories: PHP, Tools Tags: ,

PHP mail под Windows. Отправка почты из PHP скриптов

February 3rd, 2010 No comments

В этой статье я хочу рассказать об отправке почты из php скриптов под Windows.

С точки зрения php программиста отправка почты выполняется с помощью стандартной функции mail().

И вот тут у многих начинающих разработчиков возникает проблема. Скрипт, прекрасно работающий на сервере хостера, выдает ошибки на локальном компьютере.

Read more…

Categories: PHP, Windows Tags: , , , ,

Fix Session Save Path

January 22nd, 2010 No comments

Define session.save_path directive in PHP.INI

If you have root access or control to the web host (for example, in VPS or dedicated server), edit the PHP.INI PHP configuration file in the web server to add in the environment variable. Normally the session.save_path directive is already included in the default PHP.INI, but been commented out. Add or edit the line so that it looks like below:

session.save_path = /tmp

Modify /tmp to the path to a folder that is writable by Apache web server process. If you don’t have shell access to the web host, such as in shared hosting, try asking hosting service provider to include the session save path parameter, or make the path writable. Read more…