<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; PHP + AHK = ?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5867&amp;type=atom" />
	<updated>2011-06-02T09:08:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5867</id>
		<entry>
			<title type="html"><![CDATA[Re: PHP + AHK = ?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48898#p48898" />
			<content type="html"><![CDATA[<p>мой логин говорит за меня <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> <br />сейчас попробуем. спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Lamer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26993</uri>
			</author>
			<updated>2011-06-02T09:08:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48898#p48898</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PHP + AHK = ?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48895#p48895" />
			<content type="html"><![CDATA[<p>А ты не пробовал использовать </p><div class="codebox"><pre><code>php devel studio</code></pre></div><p>для написания оболочки или же GUI для ПХП? Ведь это будет проще <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /><br />З.ы. Интересен тоже вопрос, т.к. хочу тоже кое какие скрипты совместить <img src="//forum.script-coding.com/img/smilies/tongue.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[DaVinchi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26386</uri>
			</author>
			<updated>2011-06-02T08:41:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48895#p48895</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[PHP + AHK = ?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48893#p48893" />
			<content type="html"><![CDATA[<p>Здравствуйте. У меня возникла такая проблема: надо как-то совместить скрипт на PHP и оболочку на AHK. Да так, чтобы данные, введённые в оболочку заменяли переменные в крипте.<br /> Каким образом мне это сделать? И возможно ли это вообще? </p><p>Вот тот самый php-скрипт:<br /></p><div class="codebox"><pre><code>&lt;?php
 
$mail = &quot;qweqwe@mail.ru&quot;; 
$pass = &quot;zxczxc&quot;; 
$title = &quot;RE1&quot;; 
$text = &quot;text&quot;; 
$sleep = &quot;2&quot;;
 
$res=file_get_contents(&#039;http://login.vk.com/?act=login&amp;email=&#039;.urlencode($mail).&#039;&amp;pass=&#039;.urlencode($pass));
preg_match(&quot;/value=\&#039;(.*?)\&#039;/&quot;,$res,$sid);
 
$ch=curl_init(&quot;http://vkontakte.ru/market.php?act=view&amp;id=34216894&quot;);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_COOKIE,&quot;remixsid=$sid[1]&quot;);
 
$res=curl_exec($ch); 
curl_close($ch);
 
preg_match(&quot;/chas\&quot; value=\&quot;(.*?)\&quot;/&quot;,$res,$hash);
$hash=substr($hash[1],-5).substr($hash[1],4,-8);
$hash=strrev($hash);
 
$title=iconv(&#039;cp1251&#039;,&#039;utf-8&#039;,&quot;$title&quot;);
$text=iconv(&#039;cp1251&#039;,&#039;utf-8&#039;,&quot;$text&quot;);
 
while(1) {
 
$ch=curl_init(&quot;http://vkontakte.ru/mail.php&quot;);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,&quot;item_id=5084178&amp;chas=$hash&amp;to_id=2943&amp;act=sent&amp;title=$title&amp;message=$text&quot;);
curl_setopt($ch, CURLOPT_COOKIE,&quot;remixsid=$sid[1]&quot;);
 
$res=curl_exec($ch); 
curl_close($ch);
 
print iconv(&#039;cp1251&#039;,&#039;866&#039;,&quot;$res\n&quot;);
 
sleep($sleep);
 
}
 
?&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Lamer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26993</uri>
			</author>
			<updated>2011-06-02T08:22:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48893#p48893</id>
		</entry>
</feed>
