<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Всякие интересные штучки для WEB-разработчика &#187; Tools</title>
	<atom:link href="http://iphp.com.ua/archives/category/tools/feed" rel="self" type="application/rss+xml" />
	<link>http://iphp.com.ua</link>
	<description>блог о технологиях web-разработки // all your base are belong to us</description>
	<lastBuildDate>Thu, 24 Jun 2010 05:23:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The Art Of Scripting HTTP Requests Using Curl</title>
		<link>http://iphp.com.ua/archives/490</link>
		<comments>http://iphp.com.ua/archives/490#comments</comments>
		<pubDate>Wed, 23 Dec 2009 14:32:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://iphp.com.ua/archives/490</guid>
		<description><![CDATA[Online: http://curl.haxx.se/docs/httpscripting.html This document will assume that you&#8217;re familiar with HTML and general networking. The possibility to write scripts is essential to make a good computer system. Unix&#8217; capability to be extended by shell scripts and various tools to run various automated commands and scripts is one reason why it has succeeded so well. The [...]]]></description>
			<content:encoded><![CDATA[<p>Online:  http://curl.haxx.se/docs/httpscripting.html</p>
<p>This document will assume that you&#8217;re familiar with HTML and general<br />
networking.</p>
<p>The possibility to write scripts is essential to make a good computer<br />
system. Unix&#8217; capability to be extended by shell scripts and various tools to<br />
run various automated commands and scripts is one reason why it has succeeded<br />
so well.</p>
<p>The increasing amount of applications moving to the web has made &#8220;HTTP<br />
Scripting&#8221; more frequently requested and wanted. To be able to automatically<br />
extract information from the web, to fake users, to post or upload data to<br />
web servers are all important tasks today.</p>
<p>Curl is a command line tool for doing all sorts of URL manipulations and<br />
transfers, but this particular document will focus on how to use it when<br />
doing HTTP requests for fun and profit. I&#8217;ll assume that you know how to<br />
invoke &#8216;curl &#8211;help&#8217; or &#8216;curl &#8211;manual&#8217; to get basic information about it.</p>
<p>Curl is not written to do everything for you. It makes the requests, it gets<br />
the data, it sends data and it retrieves the information. You probably need<br />
to glue everything together using some kind of script language or repeated<br />
manual invokes.</p>
<p>1. The HTTP Protocol</p>
<p>HTTP is the protocol used to fetch data from web servers. It is a very simple<br />
protocol that is built upon TCP/IP. The protocol also allows information to<br />
get sent to the server from the client using a few different methods, as will<br />
be shown here.</p>
<p>HTTP is plain ASCII text lines being sent by the client to a server to<br />
request a particular action, and then the server replies a few text lines<br />
before the actual requested content is sent to the client.</p>
<p>Using curl&#8217;s option -v will display what kind of commands curl sends to the<br />
server, as well as a few other informational texts. -v is the single most<br />
useful option when it comes to debug or even understand the curl&lt;-&gt;server<br />
interaction.</p>
<p>2. URL</p>
<p>The Uniform Resource Locator format is how you specify the address of a<br />
particular resource on the Internet. You know these, you&#8217;ve seen URLs like<br />
http://curl.haxx.se or https://yourbank.com a million times.</p>
<p>3. GET a page</p>
<p>The simplest and most common request/operation made using HTTP is to get a<br />
URL. The URL could itself refer to a web page, an image or a file. The client<br />
issues a GET request to the server and receives the document it asked for.<br />
If you issue the command line</p>
<p>curl http://curl.haxx.se</p>
<p>you get a web page returned in your terminal window. The entire HTML document<br />
that that URL holds.</p>
<p>All HTTP replies contain a set of headers that are normally hidden, use<br />
curl&#8217;s -i option to display them as well as the rest of the document. You can<br />
also ask the remote server for ONLY the headers by using the -I option (which<br />
will make curl issue a HEAD request).<span id="more-490"></span></p>
<p>4. Forms</p>
<p>Forms are the general way a web site can present a HTML page with fields for<br />
the user to enter data in, and then press some kind of &#8216;OK&#8217; or &#8216;submit&#8217;<br />
button to get that data sent to the server. The server then typically uses<br />
the posted data to decide how to act. Like using the entered words to search<br />
in a database, or to add the info in a bug track system, display the entered<br />
address on a map or using the info as a login-prompt verifying that the user<br />
is allowed to see what it is about to see.</p>
<p>Of course there has to be some kind of program in the server end to receive<br />
the data you send. You cannot just invent something out of the air.</p>
<p>4.1 GET</p>
<p>A GET-form uses the method GET, as specified in HTML like:</p>
<pre>
<form action="junk.cgi" method="get">
<input name="birthyear" type="text" />
<input name="press" type="submit" value="OK" />
</form>
</pre>
<p>In your favorite browser, this form will appear with a text box to fill in<br />
and a press-button labeled &#8220;OK&#8221;. If you fill in &#8217;1905&#8242; and press the OK<br />
button, your browser will then create a new URL to get for you. The URL will<br />
get &#8220;junk.cgi?birthyear=1905&amp;press=OK&#8221; appended to the path part of the<br />
previous URL.</p>
<p>If the original form was seen on the page &#8220;www.hotmail.com/when/birth.html&#8221;,<br />
the second page you&#8217;ll get will become<br />
&#8220;www.hotmail.com/when/junk.cgi?birthyear=1905&amp;press=OK&#8221;.</p>
<p>Most search engines work this way.</p>
<p>To make curl do the GET form post for you, just enter the expected created<br />
URL:</p>
<p>curl &#8220;www.hotmail.com/when/junk.cgi?birthyear=1905&amp;press=OK&#8221;</p>
<p>4.2 POST</p>
<p>The GET method makes all input field names get displayed in the URL field of<br />
your browser. That&#8217;s generally a good thing when you want to be able to<br />
bookmark that page with your given data, but it is an obvious disadvantage<br />
if you entered secret information in one of the fields or if there are a<br />
large amount of fields creating a very long and unreadable URL.</p>
<p>The HTTP protocol then offers the POST method. This way the client sends the<br />
data separated from the URL and thus you won&#8217;t see any of it in the URL<br />
address field.</p>
<p>The form would look very similar to the previous one:</p>
<form action="junk.cgi" method="post">
<input name="birthyear" type="text" />
<input name="press" type="submit" value=" OK " /> </form>
<p>And to use curl to post this form with the same data filled in as before, we<br />
could do it like:</p>
<p>curl -d &#8220;birthyear=1905&amp;press=%20OK%20&#8243; www.hotmail.com/when/junk.cgi</p>
<p>This kind of POST will use the Content-Type<br />
application/x-www-form-urlencoded and is the most widely used POST kind.</p>
<p>The data you send to the server MUST already be properly encoded, curl will<br />
not do that for you. For example, if you want the data to contain a space,<br />
you need to replace that space with %20 etc. Failing to comply with this<br />
will most likely cause your data to be received wrongly and messed up.</p>
<p>Recent curl versions can in fact url-encode POST data for you, like this:</p>
<p>curl &#8211;data-urlencode &#8220;name=I am Daniel&#8221; www.example.com</p>
<p>4.3 File Upload POST</p>
<p>Back in late 1995 they defined an additional way to post data over HTTP. It<br />
is documented in the RFC 1867, why this method sometimes is referred to as<br />
RFC1867-posting.</p>
<p>This method is mainly designed to better support file uploads. A form that<br />
allows a user to upload a file could be written like this in HTML:</p>
<form action="upload.cgi" enctype="multipart/form-data" method="post">
<input name="upload" type="file" />
<input name="press" type="submit" value="OK" /> </form>
<p>This clearly shows that the Content-Type about to be sent is<br />
multipart/form-data.</p>
<p>To post to a form like this with curl, you enter a command line like:</p>
<p>curl -F upload=@localfilename -F press=OK [URL]</p>
<p>4.4 Hidden Fields</p>
<p>A very common way for HTML based application to pass state information<br />
between pages is to add hidden fields to the forms. Hidden fields are<br />
already filled in, they aren&#8217;t displayed to the user and they get passed<br />
along just as all the other fields.</p>
<p>A similar example form with one visible field, one hidden field and one<br />
submit button could look like:</p>
<form action="foobar.cgi" method="post">
<input name="birthyear" type="text" />
<input name="person" type="hidden" value="daniel" />
<input name="press" type="submit" value="OK" /> </form>
<p>To post this with curl, you won&#8217;t have to think about if the fields are<br />
hidden or not. To curl they&#8217;re all the same:</p>
<p>curl -d &#8220;birthyear=1905&amp;press=OK&amp;person=daniel&#8221; [URL]</p>
<p>4.5 Figure Out What A POST Looks Like</p>
<p>When you&#8217;re about fill in a form and send to a server by using curl instead<br />
of a browser, you&#8217;re of course very interested in sending a POST exactly the<br />
way your browser does.</p>
<p>An easy way to get to see this, is to save the HTML page with the form on<br />
your local disk, modify the &#8216;method&#8217; to a GET, and press the submit button<br />
(you could also change the action URL if you want to).</p>
<p>You will then clearly see the data get appended to the URL, separated with a<br />
&#8216;?&#8217;-letter as GET forms are supposed to.</p>
<p>5. PUT</p>
<p>The perhaps best way to upload data to a HTTP server is to use PUT. Then<br />
again, this of course requires that someone put a program or script on the<br />
server end that knows how to receive a HTTP PUT stream.</p>
<p>Put a file to a HTTP server with curl:</p>
<p>curl -T uploadfile www.uploadhttp.com/receive.cgi</p>
<p>6. HTTP Authentication</p>
<p>HTTP Authentication is the ability to tell the server your username and<br />
password so that it can verify that you&#8217;re allowed to do the request you&#8217;re<br />
doing. The Basic authentication used in HTTP (which is the type curl uses by<br />
default) is *plain* *text* based, which means it sends username and password<br />
only slightly obfuscated, but still fully readable by anyone that sniffs on<br />
the network between you and the remote server.</p>
<p>To tell curl to use a user and password for authentication:</p>
<p>curl -u name:password www.secrets.com</p>
<p>The site might require a different authentication method (check the headers<br />
returned by the server), and then &#8211;ntlm, &#8211;digest, &#8211;negotiate or even<br />
&#8211;anyauth might be options that suit you.<br />
Sometimes your HTTP access is only available through the use of a HTTP<br />
proxy. This seems to be especially common at various companies. A HTTP proxy<br />
may require its own user and password to allow the client to get through to<br />
the Internet. To specify those with curl, run something like:</p>
<p>curl -U proxyuser:proxypassword curl.haxx.se</p>
<p>If your proxy requires the authentication to be done using the NTLM method,<br />
use &#8211;proxy-ntlm, if it requires Digest use &#8211;proxy-digest.</p>
<p>If you use any one these user+password options but leave out the password<br />
part, curl will prompt for the password interactively.</p>
<p>Do note that when a program is run, its parameters might be possible to see<br />
when listing the running processes of the system. Thus, other users may be<br />
able to watch your passwords if you pass them as plain command line<br />
options. There are ways to circumvent this.</p>
<p>It is worth noting that while this is how HTTP Authentication works, very<br />
many web sites will not use this concept when they provide logins etc. See<br />
the Web Login chapter further below for more details on that.</p>
<p>7. Referer</p>
<p>A HTTP request may include a &#8216;referer&#8217; field (yes it is misspelled), which<br />
can be used to tell from which URL the client got to this particular<br />
resource. Some programs/scripts check the referer field of requests to verify<br />
that this wasn&#8217;t arriving from an external site or an unknown page. While<br />
this is a stupid way to check something so easily forged, many scripts still<br />
do it. Using curl, you can put anything you want in the referer-field and<br />
thus more easily be able to fool the server into serving your request.</p>
<p>Use curl to set the referer field with:</p>
<p>curl -e http://curl.haxx.se daniel.haxx.se</p>
<p>8. User Agent</p>
<p>Very similar to the referer field, all HTTP requests may set the User-Agent<br />
field. It names what user agent (client) that is being used. Many<br />
applications use this information to decide how to display pages. Silly web<br />
programmers try to make different pages for users of different browsers to<br />
make them look the best possible for their particular browsers. They usually<br />
also do different kinds of javascript, vbscript etc.</p>
<p>At times, you will see that getting a page with curl will not return the same<br />
page that you see when getting the page with your browser. Then you know it<br />
is time to set the User Agent field to fool the server into thinking you&#8217;re<br />
one of those browsers.</p>
<p>To make curl look like Internet Explorer on a Windows 2000 box:</p>
<p>curl -A &#8220;Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)&#8221; [URL]</p>
<p>Or why not look like you&#8217;re using Netscape 4.73 on a Linux (PIII) box:</p>
<p>curl -A &#8220;Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)&#8221; [URL]</p>
<p>9. Redirects</p>
<p>When a resource is requested from a server, the reply from the server may<br />
include a hint about where the browser should go next to find this page, or a<br />
new page keeping newly generated output. The header that tells the browser<br />
to redirect is Location:.</p>
<p>Curl does not follow Location: headers by default, but will simply display<br />
such pages in the same manner it display all HTTP replies. It does however<br />
feature an option that will make it attempt to follow the Location: pointers.</p>
<p>To tell curl to follow a Location:<br />
curl -L www.sitethatredirects.com</p>
<p>If you use curl to POST to a site that immediately redirects you to another<br />
page, you can safely use -L and -d/-F together. Curl will only use POST in<br />
the first request, and then revert to GET in the following operations.</p>
<p>10. Cookies</p>
<p>The way the web browsers do &#8220;client side state control&#8221; is by using<br />
cookies. Cookies are just names with associated contents. The cookies are<br />
sent to the client by the server. The server tells the client for what path<br />
and host name it wants the cookie sent back, and it also sends an expiration<br />
date and a few more properties.</p>
<p>When a client communicates with a server with a name and path as previously<br />
specified in a received cookie, the client sends back the cookies and their<br />
contents to the server, unless of course they are expired.</p>
<p>Many applications and servers use this method to connect a series of requests<br />
into a single logical session. To be able to use curl in such occasions, we<br />
must be able to record and send back cookies the way the web application<br />
expects them. The same way browsers deal with them.</p>
<p>The simplest way to send a few cookies to the server when getting a page with<br />
curl is to add them on the command line like:</p>
<p>curl -b &#8220;name=Daniel&#8221; www.cookiesite.com</p>
<p>Cookies are sent as common HTTP headers. This is practical as it allows curl<br />
to record cookies simply by recording headers. Record cookies with curl by<br />
using the -D option like:</p>
<p>curl -D headers_and_cookies www.cookiesite.com</p>
<p>(Take note that the -c option described below is a better way to store<br />
cookies.)</p>
<p>Curl has a full blown cookie parsing engine built-in that comes to use if you<br />
want to reconnect to a server and use cookies that were stored from a<br />
previous connection (or handicrafted manually to fool the server into<br />
believing you had a previous connection). To use previously stored cookies,<br />
you run curl like:</p>
<p>curl -b stored_cookies_in_file www.cookiesite.com</p>
<p>Curl&#8217;s &#8220;cookie engine&#8221; gets enabled when you use the -b option. If you only<br />
want curl to understand received cookies, use -b with a file that doesn&#8217;t<br />
exist. Example, if you want to let curl understand cookies from a page and<br />
follow a location (and thus possibly send back cookies it received), you can<br />
invoke it like:</p>
<p>curl -b nada -L www.cookiesite.com</p>
<p>Curl has the ability to read and write cookie files that use the same file<br />
format that Netscape and Mozilla do. It is a convenient way to share cookies<br />
between browsers and automatic scripts. The -b switch automatically detects<br />
if a given file is such a cookie file and parses it, and by using the<br />
-c/&#8211;cookie-jar option you&#8217;ll make curl write a new cookie file at the end of<br />
an operation:</p>
<p>curl -b cookies.txt -c newcookies.txt www.cookiesite.com</p>
<p>11. HTTPS</p>
<p>There are a few ways to do secure HTTP transfers. The by far most common<br />
protocol for doing this is what is generally known as HTTPS, HTTP over<br />
SSL. SSL encrypts all the data that is sent and received over the network and<br />
thus makes it harder for attackers to spy on sensitive information.</p>
<p>SSL (or TLS as the latest version of the standard is called) offers a<br />
truckload of advanced features to allow all those encryptions and key<br />
infrastructure mechanisms encrypted HTTP requires.</p>
<p>Curl supports encrypted fetches thanks to the freely available OpenSSL<br />
libraries. To get a page from a HTTPS server, simply run curl like:</p>
<p>curl https://that.secure.server.com</p>
<p>11.1 Certificates</p>
<p>In the HTTPS world, you use certificates to validate that you are the one<br />
you claim to be, as an addition to normal passwords. Curl supports client-<br />
side certificates. All certificates are locked with a pass phrase, which you<br />
need to enter before the certificate can be used by curl. The pass phrase<br />
can be specified on the command line or if not, entered interactively when<br />
curl queries for it. Use a certificate with curl on a HTTPS server like:</p>
<p>curl -E mycert.pem https://that.secure.server.com</p>
<p>curl also tries to verify that the server is who it claims to be, by<br />
verifying the server&#8217;s certificate against a locally stored CA cert<br />
bundle. Failing the verification will cause curl to deny the connection. You<br />
must then use -k in case you want to tell curl to ignore that the server<br />
can&#8217;t be verified.</p>
<p>More about server certificate verification and ca cert bundles can be read<br />
in the SSLCERTS document, available online here:</p>
<p>http://curl.haxx.se/docs/sslcerts.html</p>
<p>12. Custom Request Elements</p>
<p>Doing fancy stuff, you may need to add or change elements of a single curl<br />
request.</p>
<p>For example, you can change the POST request to a PROPFIND and send the data<br />
as &#8220;Content-Type: text/xml&#8221; (instead of the default Content-Type) like this:</p>
<p>curl -d &#8220;&#8221; -H &#8220;Content-Type: text/xml&#8221; -X PROPFIND url.com</p>
<p>You can delete a default header by providing one without content. Like you<br />
can ruin the request by chopping off the Host: header:</p>
<p>curl -H &#8220;Host:&#8221; http://mysite.com</p>
<p>You can add headers the same way. Your server may want a &#8220;Destination:&#8221;<br />
header, and you can add it:</p>
<p>curl -H &#8220;Destination: http://moo.com/nowhere&#8221; http://url.com</p>
<p>13. Web Login</p>
<p>While not strictly just HTTP related, it still cause a lot of people problems<br />
so here&#8217;s the executive run-down of how the vast majority of all login forms<br />
work and how to login to them using curl.</p>
<p>It can also be noted that to do this properly in an automated fashion, you<br />
will most certainly need to script things and do multiple curl invokes etc.</p>
<p>First, servers mostly use cookies to track the logged-in status of the<br />
client, so you will need to capture the cookies you receive in the<br />
responses. Then, many sites also set a special cookie on the login page (to<br />
make sure you got there through their login page) so you should make a habit<br />
of first getting the login-form page to capture the cookies set there.</p>
<p>Some web-based login systems features various amounts of javascript, and<br />
sometimes they use such code to set or modify cookie contents. Possibly they<br />
do that to prevent programmed logins, like this manual describes how to&#8230;<br />
Anyway, if reading the code isn&#8217;t enough to let you repeat the behavior<br />
manually, capturing the HTTP requests done by your browers and analyzing the<br />
sent cookies is usually a working method to work out how to shortcut the<br />
javascript need.</p>
<p>In the actual</p>
<form> tag for the login, lots of sites fill-in random/session<br />
or otherwise secretly generated hidden tags and you may need to first capture<br />
the HTML code for the login form and extract all the hidden fields to be able<br />
to do a proper login POST. Remember that the contents need to be URL encoded<br />
when sent in a normal POST.</p>
<p>14. Debug</p>
<p>Many times when you run curl on a site, you&#8217;ll notice that the site doesn&#8217;t<br />
seem to respond the same way to your curl requests as it does to your<br />
browser&#8217;s.</p>
<p>Then you need to start making your curl requests more similar to your<br />
browser&#8217;s requests:</p>
<p>* Use the &#8211;trace-ascii option to store fully detailed logs of the requests<br />
for easier analyzing and better understanding</p>
<p>* Make sure you check for and use cookies when needed (both reading with -b<br />
and writing with -c)</p>
<p>* Set user-agent to one like a recent popular browser does</p>
<p>* Set referer like it is set by the browser</p>
<p>* If you use POST, make sure you send all the fields and in the same order as<br />
the browser does it. (See chapter 4.5 above)</p>
<p>A very good helper to make sure you do this right, is the LiveHTTPHeader tool<br />
that lets you view all headers you send and receive with Mozilla/Firefox<br />
(even when using HTTPS).</p>
<p>A more raw approach is to capture the HTTP traffic on the network with tools<br />
such as ethereal or tcpdump and check what headers that were sent and<br />
received by the browser. (HTTPS makes this technique inefficient.)</p>
</form>
]]></content:encoded>
			<wfw:commentRss>http://iphp.com.ua/archives/490/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN how to (svn для начинающих)</title>
		<link>http://iphp.com.ua/archives/40</link>
		<comments>http://iphp.com.ua/archives/40#comments</comments>
		<pubDate>Sun, 17 Feb 2008 01:15:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Краткий справочник svn (subversion) Полную документацию на русском читайте здесь svn checkout http://repository.url/svn/name — извлекаем файлы проекта из репозитория, сокращение: svn co; svn update — получаем обновления из репозитория, сокращение: svn up; svn update -r rev_num ./file_name — извлекаем ревизию файла с номером rev_num; svn add ./file_name — добавляем файл в репозиторий (не важно текстовый [...]]]></description>
			<content:encoded><![CDATA[<p>Краткий справочник svn (subversion)<br />
Полную документацию на русском читайте <a href="http://svnbook.red-bean.com/nightly/ru/index.html">здесь</a></p>
<p><strong>svn checkout</strong> http://repository.url/svn/name — извлекаем файлы проекта из репозитория, сокращение: <strong>svn co</strong>;</p>
<p><strong>svn update</strong> — получаем обновления из репозитория, сокращение: <strong>svn up</strong>;</p>
<p><strong>svn update -r rev_num ./file_name</strong> — извлекаем ревизию файла с номером rev_num;</p>
<p><strong>svn add ./file_name</strong> — добавляем файл в репозиторий (не важно текстовый или бинарный);</p>
<p><strong>svn rename ./old_file_name ./new_file_name</strong> — переименовываем файл в репозитории;</p>
<p><strong>svn remove ./file_name</strong> — удаляем файл/директорию из репозитория;</p>
<p><strong>svn status</strong> — просматриваем локально измененные файлы, сокращение: <strong>svn st</strong>;</p>
<p><span id="more-38"></span> <span id="more-40"></span><br />
<strong>svn status -u</strong> — просматриваем локально измененные и изменившиеся в репозитории файлы, сокращение: <strong>svn st -u</strong>;</p>
<p><strong>svn diff ./file_name</strong> — показывает локальные изменения в файле построчно;</p>
<p><strong>svn diff -r rev_num1:rev_num2 ./file_name</strong> — показывает различия между ревизией rev_num1 и rev_num2 файла;</p>
<p><strong>svn revert ./file_name</strong> — откатывает локальные изменения файла (выгружает из репозитория последнюю закоммиченную ревизию);</p>
<p><strong>svn revert -R ./</strong> — откатывает все локальные изменения файлов;</p>
<p><strong>svn log ./file_name</strong> — список ревизий с комментариями;</p>
<p><strong>svn blame ./file_name</strong> — показывает авторов изменений файла построчно, синоним: <strong>svn annotate</strong>;</p>
<p><strong>svn propset svn:ignore ./file_name .</strong> — добавляем файл в список игнорируемых файлов;</p>
<p><strong>svn propset svn:keywords &#8220;Id Author Date&#8221; ./file_name</strong> — установка атрибутов файла;</p>
<p><strong>svn cleanup</strong> — снимает блокировки с файлов;</p>
<p><strong>svnadmin setlog –bypass-hooks /path/to/repository -r rev_num ./commit_text_file</strong> — заменяет текстовое описание коммита, где</p>
<p><strong>rev_num</strong> — номер ревизии, commit_text_file — путь к файлу, содержащему новый комментарий к коммиту;</p>
<p><strong>svn help command_name</strong> — выводит помощь по команде command_name, например, <strong>«svn help update»</strong>;</p>
<p><strong>svn copy http://repository.url/svn/name/trunk/ http://repository.url/svn/name/branches/new_branch_name/</strong> — создаем ветку с названием new_branch_name из главной линии разработки;</p>
<p><strong>svn merge –dry-run -r rev_num1:rev_num2 http://repository.url/svn/name/trunk/</strong> — проверяем, что будет изменено при объединении веток, где rev_num1 — номер ревизии, когда ваша ветка была «открыта», или это м.б. номер предыдущего объединения (слияния), rev_num2 — версия главной линии разработки, с которой производим объединение. Необходимо отметить, что все изменения будут применены для директории, в которой выполнялась эта команда;</p>
<p><strong>svn merge -r rev_num1:rev_num2 http://repository.url/svn/name/trunk/</strong> — синхронизирует вашу ветку с главной линией разработки с учетом ревизий: rev_num1 — номер ревизии, когда ваша ветка была «открыта», или это м.б. номер предыдущего объединения (слияния), rev_num2 — версия главной линии разработки, с которой производим объединение. Необходимо отметить, что все изменения будут применены для директории, в которой выполнялась эта команда;</p>
<h2 class="main-title">Более детальная информация об игноре файлов (svn:ignore)</h2>
<h3>Игнорирование файлов и директорий</h3>
<p><!-- begin content -->               <!-- google_ad_section_start --></p>
<p><strong>svn:ignore</strong> опция может быть применена к файлу паттернам и директориям.</p>
<p class="codeblock"><strong><code>svn propset svn:ignore PATTERN directory PATH<br />
svn propset svn:ignore directory PATH</code></strong></p>
<h3>Редактирование установок</h3>
<p>Ранее установленные опции можно редактировать с помощью svn функции <strong><code>propedit</code></strong>.</p>
<p class="codeblock"><strong><code>svn propedit svn:ignore PATH<br />
svn propget svn:ignore PATH</code></strong></p>
<p>PATH если не указан подразумевает текущую директорию. Если PATTERN не указан, будет открыт редактор для ввода выражения (паттерна).</p>
]]></content:encoded>
			<wfw:commentRss>http://iphp.com.ua/archives/40/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Консоль Windows</title>
		<link>http://iphp.com.ua/archives/6</link>
		<comments>http://iphp.com.ua/archives/6#comments</comments>
		<pubDate>Thu, 01 Nov 2007 00:59:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Всё еще открываете консоль через run-&#62;cmd.exe ?  Забудьте про это, встечаем Console 2 ! Console is a Windows console window enhancement. Console features include: multiple tabs, text editor-like text selection, different background types, alpha and color-key transparency, configurable font, different window styles.]]></description>
			<content:encoded><![CDATA[<p><img border="0" align="left" src="http://ilovethat.info/wp-content/uploads/2007/11/console2.jpg" alt="console2.jpg" />Всё еще открываете консоль через run-&gt;cmd.exe ?  Забудьте про это, встечаем <a target="_blank" href="http://sourceforge.net/projects/console/" title="Console 2">Console 2</a> !</p>
<p>Console is a Windows console window enhancement. Console features include: multiple tabs, text editor-like text selection, different background types, alpha and color-key transparency, configurable font, different window styles.</p>
]]></content:encoded>
			<wfw:commentRss>http://iphp.com.ua/archives/6/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Инструментальные средства разработчика для Internet Explorer</title>
		<link>http://iphp.com.ua/archives/5</link>
		<comments>http://iphp.com.ua/archives/5#comments</comments>
		<pubDate>Thu, 01 Nov 2007 00:44:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[DebugBar Fiddler HttpWatch Instant Source IE Developer Toolbar IE HTTPAnalyzer IE WebDeveloper]]></description>
			<content:encoded><![CDATA[<ol>
<li>DebugBar</li>
<li>Fiddler</li>
<li>HttpWatch</li>
<li>Instant Source</li>
<li>IE Developer Toolbar</li>
<li>IE HTTPAnalyzer</li>
<li>IE WebDeveloper</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://iphp.com.ua/archives/5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
