<?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>Ask me Questions and get Answers !</title>
	<atom:link href="http://askmetoo.com/feed" rel="self" type="application/rss+xml" />
	<link>http://askmetoo.com</link>
	<description>Ask Questions and get Answers About everything for free!</description>
	<lastBuildDate>Wed, 07 Jul 2010 15:41:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CURL Big files download</title>
		<link>http://askmetoo.com/curl-big-files-download.htm</link>
		<comments>http://askmetoo.com/curl-big-files-download.htm#comments</comments>
		<pubDate>Wed, 07 Jul 2010 15:39:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Unix-Linux]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=161</guid>
		<description><![CDATA[It is not so trivial task but i do not know till now how to make this!


1
2
3
4
5
6
7
8
9
10
11
12
 while ! curl -C - -O 'http://download.parallels.com/GA/Parallels%20Desktop%203186%20Mac%20en.dmg'; do sleep 10; done
&#160;
Also
&#160;
WGET
wget -c http://example.org/file.iso
&#160;
Or MANUAL with CURL
&#160;
$ curl -r 0-350000000 http://mirror.sov.uk.goscomb.net/linuxmint.com/stable/7/LinuxMint-7.iso -o LinuxMint-7 &#38;
$ curl -r 350000001- hhttp://mirror.sov.uk.goscomb.net/linuxmint.com/stable/7/LinuxMint-7.iso -o LinuxMint-7_2 &#38;
$ cat LinuxMint-7* &#62; LinuxMint-7.iso.

]]></description>
			<content:encoded><![CDATA[<p>It is not so trivial task but i do not know till now how to make this!<br />
<span id="more-161"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #000000; font-weight: bold;">!</span> curl <span style="color: #660033;">-C</span> - <span style="color: #660033;">-O</span> <span style="color: #ff0000;">'http://download.parallels.com/GA/Parallels%20Desktop%203186%20Mac%20en.dmg'</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">10</span>; <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
Also
&nbsp;
WGET
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-c</span> http:<span style="color: #000000; font-weight: bold;">//</span>example.org<span style="color: #000000; font-weight: bold;">/</span>file.iso
&nbsp;
Or MANUAL with CURL
&nbsp;
$ curl <span style="color: #660033;">-r</span> <span style="color: #000000;">0</span>-<span style="color: #000000;">350000000</span> http:<span style="color: #000000; font-weight: bold;">//</span>mirror.sov.uk.goscomb.net<span style="color: #000000; font-weight: bold;">/</span>linuxmint.com<span style="color: #000000; font-weight: bold;">/</span>stable<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">7</span><span style="color: #000000; font-weight: bold;">/</span>LinuxMint-7.iso <span style="color: #660033;">-o</span> LinuxMint-<span style="color: #000000;">7</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
$ curl <span style="color: #660033;">-r</span> <span style="color: #000000;">350000001</span>- hhttp:<span style="color: #000000; font-weight: bold;">//</span>mirror.sov.uk.goscomb.net<span style="color: #000000; font-weight: bold;">/</span>linuxmint.com<span style="color: #000000; font-weight: bold;">/</span>stable<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">7</span><span style="color: #000000; font-weight: bold;">/</span>LinuxMint-7.iso <span style="color: #660033;">-o</span> LinuxMint-<span style="color: #000000;">7</span>_2 <span style="color: #000000; font-weight: bold;">&amp;</span>
$ <span style="color: #c20cb9; font-weight: bold;">cat</span> LinuxMint-<span style="color: #000000;">7</span><span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">&gt;</span> LinuxMint-7.iso.</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/curl-big-files-download.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Clear Debian cache on webserver ?</title>
		<link>http://askmetoo.com/how-to-clear-debian-cache-on-webserver.htm</link>
		<comments>http://askmetoo.com/how-to-clear-debian-cache-on-webserver.htm#comments</comments>
		<pubDate>Thu, 10 Jun 2010 07:17:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=156</guid>
		<description><![CDATA[rm -r  /var/log/apache2
rm -r /var/cache/eaccelerator
rm -r /root/Maildir
rm -r /home/internetfastnews/Maildir
rm -r /home/zxnews/Maildir
rm -r /home/seoch/Maildir
rm -r /home/otvetish/Maildir
rm -r /home/teaseo/Maildir
rm -r /home/school/Maildir
]]></description>
			<content:encoded><![CDATA[<p>rm -r  /var/log/apache2<br />
rm -r /var/cache/eaccelerator<br />
rm -r /root/Maildir<br />
rm -r /home/internetfastnews/Maildir<br />
rm -r /home/zxnews/Maildir<br />
rm -r /home/seoch/Maildir<br />
rm -r /home/otvetish/Maildir<br />
rm -r /home/teaseo/Maildir<br />
rm -r /home/school/Maildir</p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/how-to-clear-debian-cache-on-webserver.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vBulletin Chmod &#8211; fast install</title>
		<link>http://askmetoo.com/vbulletin-chmod.htm</link>
		<comments>http://askmetoo.com/vbulletin-chmod.htm#comments</comments>
		<pubDate>Sun, 21 Mar 2010 21:29:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Chmod]]></category>
		<category><![CDATA[vBulletin]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=154</guid>
		<description><![CDATA[vBulletin Chmod &#8211; fast install forum

1
2
3
find ./ -type f -exec chmod 777 {} \;
THEN After install 
find ./ -type f -exec chmod 644 {} \;

]]></description>
			<content:encoded><![CDATA[<p>vBulletin Chmod &#8211; fast install forum</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bach" style="font-family:monospace;">find ./ -type f -exec chmod 777 {} \;
THEN After install 
find ./ -type f -exec chmod 644 {} \;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/vbulletin-chmod.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPB 3.x.x text replace in all posts</title>
		<link>http://askmetoo.com/ipb-3-text-replace-in-all-posts.htm</link>
		<comments>http://askmetoo.com/ipb-3-text-replace-in-all-posts.htm#comments</comments>
		<pubDate>Tue, 26 Jan 2010 13:39:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IPB]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=146</guid>
		<description><![CDATA[
Run this queries in phpmyadmin to replace text1 to text2

1
UPDATE `ibf_posts` SET post = REPLACE&#40;post, 'text1', 'text2'&#41;;

Then do not forget to clear cache in admin side.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://fhq.forumer.com/images/iconz/ipb.gif" alt="" /><br />
Run this queries in phpmyadmin to replace text1 to text2<span id="more-146"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`ibf_posts`</span> <span style="color: #993333; font-weight: bold;">SET</span> post <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">&#40;</span>post<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'text1'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'text2'</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>Then do not forget to clear cache in admin side.</p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/ipb-3-text-replace-in-all-posts.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure server backup (ftp + openssh+encode) !</title>
		<link>http://askmetoo.com/encoded-backup.htm</link>
		<comments>http://askmetoo.com/encoded-backup.htm#comments</comments>
		<pubDate>Tue, 12 Jan 2010 16:13:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=139</guid>
		<description><![CDATA[Secure server backup logic
1) find all buckup files  *.gz
2) encode them to *.gz.out
3) remove  gz file
4) upload to ftp
5) remove encoded file
Secure server backup script

1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
BACKUPDATE=`date +%Y-%m-%d`;
find . -type f -name &#34;*.gz&#34; -print&#124;while read myfile
do
    openssl enc -aes-256-cbc -salt -in &#34;$myfile&#34; -out &#34;$myfile&#34;.out -pass pass:PaSSwordThere;
    rm &#34;$myfile&#34; ;
 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Secure server backup logic</strong><br />
1) find all buckup files  *.gz<br />
2) encode them to *.gz.out<br />
3) remove  gz file<br />
4) upload to ftp<br />
5) remove encoded file</p>
<p><strong>Secure server backup script</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="bach" style="font-family:monospace;">#!/bin/sh
BACKUPDATE=`date +%Y-%m-%d`;
find . -type f -name &quot;*.gz&quot; -print|while read myfile
do
    openssl enc -aes-256-cbc -salt -in &quot;$myfile&quot; -out &quot;$myfile&quot;.out -pass pass:PaSSwordThere;
    rm &quot;$myfile&quot; ;
    curl -v -T &quot;$myfile&quot;.out ftp://login:&quot;FTppassThere&quot;@ftpserveraddres.com/${BACKUPDATE}/&quot;$myfile&quot; -Q &quot;MKD ${BACKUPDATE}&quot;;
   curl -v -T &quot;$myfile&quot;.out ftp://login:&quot;FTppassThere&quot;@ftpserveraddres.com/${BACKUPDATE}/&quot;$myfile&quot; ;
    rm &quot;$myfile&quot;.out ;
    echo &quot;$myfile&quot; &quot;\n&quot; ;
done</pre></td></tr></table></div>

<p><strong>This is my first backup script!</strong></p>
<p>Also decode example<br />
<strong>openssl  enc -d -aes-256-cbc -in zzzz.gz.out -out zzzz.gz -pass pass:PaSSwordThere;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/encoded-backup.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RewriteRule &#8211; host redirect</title>
		<link>http://askmetoo.com/rewriterule-host-redirect.htm</link>
		<comments>http://askmetoo.com/rewriterule-host-redirect.htm#comments</comments>
		<pubDate>Thu, 03 Dec 2009 18:53:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=135</guid>
		<description><![CDATA[Will redirect all request from _ld/ folder to another website
 (.htaccess!!)

1
2
RewriteRule ^_ld/(.*)$ http://fantasy-worlds.ru/_ld/$1 [L]
RewriteRule ^_nw/(.*)$ http://fantasy-worlds.ru/_nw/$1 [L]

]]></description>
			<content:encoded><![CDATA[<p>Will redirect all request from _ld/ folder to another website<br />
 (.htaccess!!)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bach" style="font-family:monospace;">RewriteRule ^_ld/(.*)$ http://fantasy-worlds.ru/_ld/$1 [L]
RewriteRule ^_nw/(.*)$ http://fantasy-worlds.ru/_nw/$1 [L]</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/rewriterule-host-redirect.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql:  How to repair all mysql tables in MySQL?</title>
		<link>http://askmetoo.com/mysql-how-to-repair-all-mysql-tables-in-mysql.htm</link>
		<comments>http://askmetoo.com/mysql-how-to-repair-all-mysql-tables-in-mysql.htm#comments</comments>
		<pubDate>Fri, 06 Nov 2009 08:04:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[repair]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=133</guid>
		<description><![CDATA[ How to repair in MYSQL all tables ?
Just run in console

1
mysqlcheck -u root -p --auto-repair --check --optimize --all-databases -p[password]

Where password &#8211; this is admin password!
]]></description>
			<content:encoded><![CDATA[<p> How to repair in MYSQL all tables ?</p>
<p>Just run in console</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bach" style="font-family:monospace;">mysqlcheck -u root -p --auto-repair --check --optimize --all-databases -p[password]</pre></td></tr></table></div>

<p>Where <strong>password</strong> &#8211; this is admin password!</p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/mysql-how-to-repair-all-mysql-tables-in-mysql.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leave first image in text and cat length(howto)</title>
		<link>http://askmetoo.com/leave-first-image-in-text-and-cat-length.htm</link>
		<comments>http://askmetoo.com/leave-first-image-in-text-and-cat-length.htm#comments</comments>
		<pubDate>Wed, 28 Oct 2009 16:34:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Div]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[Place]]></category>
		<category><![CDATA[Text]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=130</guid>
		<description><![CDATA[This simple script makes good things!
1) leave first img tag
2) remove all another img tags
3) cut text by length
So you get simple text short text with one image on it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
function cut_text&#40;$x&#41; &#123;
    $alli = catch_that_image&#40;$x&#41;;
    if &#40;$alli&#41; &#123;
        $x= substr&#40;$x, 0, $alli&#91;2&#93;+$alli&#91;3&#93;&#41;.
 [...]]]></description>
			<content:encoded><![CDATA[<p>This simple script makes good things!<br />
1) leave first <strong>img</strong> tag<br />
2) remove all another <strong>img</strong> tags<br />
3) cut text by length<br />
So you get simple text short text with one image on it.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> cut_text<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$alli</span> <span style="color: #339933;">=</span> catch_that_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$alli</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$x</span><span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$alli</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #000088;">$alli</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
        <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span>strip_only<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;img&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$alli</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">700</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">700</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$y</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strrpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$y</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span> <span style="color: #0000ff;">'&gt;...'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$x</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> catch_that_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$first_img</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_match_all</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/&lt;img.+src=[\'&quot;]([^\'&quot;]+)[\'&quot;].*&gt;/i'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #339933;">@</span><span style="color: #000088;">$first_img</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$matches</span> <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$imglen</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$matches</span> <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$matches</span> <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> AND <span style="color: #000088;">$imglen</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$imgpos</span> <span style="color: #339933;">=</span> <span style="color: #990000;">stripos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #000088;">$matches</span> <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$tx</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$imgpos</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #000088;">$imgpos</span><span style="color: #339933;">+</span><span style="color: #000088;">$imglen</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Vsio krome&lt;img&gt;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$tx</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tx</span><span style="color: #339933;">,</span><span style="color: #000088;">$matches</span> <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$imgpos</span><span style="color: #339933;">,</span> <span style="color: #000088;">$imglen</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> strip_only<span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">is_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$tags</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&gt;'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">false</span> ? <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&gt;'</span><span style="color: #339933;">,</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">end</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #990000;">array_pop</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$tag</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$str</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'#&lt;/?'</span><span style="color: #339933;">.</span><span style="color: #000088;">$tag</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'[^&gt;]*&gt;#is'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$str</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #b1b100;">echo</span> cut_text<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;div class=&quot;content&quot; style=&quot;min-height: 202px;&quot;&gt;
&lt;img width=&quot;200&quot; height=&quot;200&quot; alt=&quot;Post Pic&quot; src=&quot;http://www.wprecipes.com/wp-content/uploads/2009/02/php2.jpg&quot;/&gt;
&lt;div class=&quot;pic fl&quot;&gt;
&lt;img width=&quot;200&quot; height=&quot;200&quot; alt=&quot;Post Pic&quot; src=&quot;http://www.wprecipes.com/wp-content/uploads/2009/02/php2.jpg&quot;/&gt;
&lt;/div&gt;
&lt;div class=&quot;post-title&quot;&gt;
&lt;/div&gt;
&lt;img width=&quot;200&quot; height=&quot;200&quot; alt=&quot;Post Pic&quot; src=&quot;http://www.wprecipes.com/wp-content/uploads/2009/02/php2.jpg&quot;/&gt;
&lt;div class=&quot;post-excerpt&quot;&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/leave-first-image-in-text-and-cat-length.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to block backup in admin side of IPB?</title>
		<link>http://askmetoo.com/block-backup-ipb-admin.htm</link>
		<comments>http://askmetoo.com/block-backup-ipb-admin.htm#comments</comments>
		<pubDate>Tue, 27 Oct 2009 08:04:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IPB]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=128</guid>
		<description><![CDATA[To block backups for admin in IPB,
You need to open FTP 
then
edit file public_html/admin/index.php
2-line add
if (@$_GET['code']==&#8217;backup&#8217;) {EXIT;};
save
]]></description>
			<content:encoded><![CDATA[<p>To <strong>block backups for admin in IPB</strong>,<br />
You need to open FTP <span id="more-128"></span><br />
then<br />
edit file public_html/admin/index.php<br />
2-line add<br />
if (@$_GET['code']==&#8217;backup&#8217;) {EXIT;};<br />
<strong>save</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/block-backup-ipb-admin.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get all spam comets from Wordpress blog ?</title>
		<link>http://askmetoo.com/how-to-get-all-spam-comets-from-wordpress-blog.htm</link>
		<comments>http://askmetoo.com/how-to-get-all-spam-comets-from-wordpress-blog.htm#comments</comments>
		<pubDate>Fri, 25 Sep 2009 12:13:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=126</guid>
		<description><![CDATA[Run this code from phpmyadmin

1
2
3
 SELECT *
FROM `wp_comments`
WHERE `comment_approved` LIKE 'spam'

]]></description>
			<content:encoded><![CDATA[<p>Run this code from phpmyadmin</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span>
<span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`wp<span style="color: #008080; font-weight: bold;">_</span>comments`</span>
<span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #008000;">`comment<span style="color: #008080; font-weight: bold;">_</span>approved`</span> <span style="color: #CC0099; font-weight: bold;">LIKE</span> <span style="color: #008000;">'spam'</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/how-to-get-all-spam-comets-from-wordpress-blog.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
