<?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>PHP Help Coding Programming</title>
	<atom:link href="http://phpmagister.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpmagister.com</link>
	<description>Code PHP Ajax Wordpress Scripts Snnipets</description>
	<lastBuildDate>Sun, 20 May 2012 22:44:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How can I get a torrent file to download from a info hash in PHP?</title>
		<link>http://phpmagister.com/how-can-i-get-a-torrent-file-to-download-from-a-info-hash-in-php-22399/</link>
		<comments>http://phpmagister.com/how-can-i-get-a-torrent-file-to-download-from-a-info-hash-in-php-22399/#comments</comments>
		<pubDate>Sun, 20 May 2012 22:44:23 +0000</pubDate>
		<dc:creator>Stacked</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://phpmagister.com/how-can-i-get-a-torrent-file-to-download-from-a-info-hash-in-php-22399/</guid>
		<description><![CDATA[<p>I have alot of info hashes for torrents but cannot relate them to any such torrent file and am trying to write a PHP program that will do this for me and download the torrent file.</p>
<p>In a browser it &#8230;</p> <a href="http://phpmagister.com/how-can-i-get-a-torrent-file-to-download-from-a-info-hash-in-php-22399/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have alot of info hashes for torrents but cannot relate them to any such torrent file and am trying to write a PHP program that will do this for me and download the torrent file.</p>
<p>In a browser it is done like so with the last 40 digits being the info hash,</p>
<pre><code>href="magnet:?xt=urn:btih:7ea1b59cce1737437a66e29a2843b5ce3a0c8cd9"
</code></pre>
<p>I have tried to download the file in php like so, </p>
<pre><code>$file = 'magnet:?xt=urn:btih:7ea1b59cce1737437a66e29a2843b5ce3a0c8cd9';
fopen($file, 'r');
</code></pre>
<p>But it doesn&#8217;t work?? What am I doing wrong?</p>
]]></content:encoded>
			<wfw:commentRss>http://phpmagister.com/how-can-i-get-a-torrent-file-to-download-from-a-info-hash-in-php-22399/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read all fields in a form [closed]</title>
		<link>http://phpmagister.com/read-all-fields-in-a-form-closed-22398/</link>
		<comments>http://phpmagister.com/read-all-fields-in-a-form-closed-22398/#comments</comments>
		<pubDate>Sun, 20 May 2012 22:44:20 +0000</pubDate>
		<dc:creator>Stacked</dc:creator>
				<category><![CDATA[email]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://phpmagister.com/read-all-fields-in-a-form-closed-22398/</guid>
		<description><![CDATA[<p>This &#8220;formmail.asp&#8221; ASP script receive an: </p>
<pre><code>&#60;form action="formmail.asp" method="POST"&#62;
</code></pre>
<p>Read ALL Fields in form, build a msg with all fields and send to my email this fields and yours values.</p>
<pre><code>msg = empty

for each field in Request.Form() // read </code>&#8230;</pre> <a href="http://phpmagister.com/read-all-fields-in-a-form-closed-22398/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This &#8220;formmail.asp&#8221; ASP script receive an: </p>
<pre><code>&lt;form action="formmail.asp" method="POST"&gt;
</code></pre>
<p>Read ALL Fields in form, build a msg with all fields and send to my email this fields and yours values.</p>
<pre><code>msg = empty

for each field in Request.Form() // read ALL fields in form
    select case lcase(field) // small cap field_name
    case "subject","cco","cc","to","lines","redirect","importance","split","submit","b1","hidden" // ignore some fields
    case else
        msg = msg &amp; (field &amp; " = " &amp; Request.Form(field) &amp; chr(13) &amp; chr(10)) // append a line: field_name = field_value
    end select
next
</code></pre>
<p>Please, how can I convert this part from ASP to PHP?</p>
]]></content:encoded>
			<wfw:commentRss>http://phpmagister.com/read-all-fields-in-a-form-closed-22398/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embed a YouTube video that pulls videos from a playlist and plays them randomly?</title>
		<link>http://phpmagister.com/embed-a-youtube-video-that-pulls-videos-from-a-playlist-and-plays-them-randomly-22397/</link>
		<comments>http://phpmagister.com/embed-a-youtube-video-that-pulls-videos-from-a-playlist-and-plays-them-randomly-22397/#comments</comments>
		<pubDate>Sun, 20 May 2012 22:44:09 +0000</pubDate>
		<dc:creator>Stacked</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://phpmagister.com/embed-a-youtube-video-that-pulls-videos-from-a-playlist-and-plays-them-randomly-22397/</guid>
		<description><![CDATA[<p>Is it possible to embed a YouTube video on a website and have it pull videos from a certain playlist and have a random video from that playlist load on each reload of the page?&#8230;</p> <a href="http://phpmagister.com/embed-a-youtube-video-that-pulls-videos-from-a-playlist-and-plays-them-randomly-22397/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Is it possible to embed a YouTube video on a website and have it pull videos from a certain playlist and have a random video from that playlist load on each reload of the page?</p>
]]></content:encoded>
			<wfw:commentRss>http://phpmagister.com/embed-a-youtube-video-that-pulls-videos-from-a-playlist-and-plays-them-randomly-22397/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>interspire shopping cart edit login form</title>
		<link>http://phpmagister.com/interspire-shopping-cart-edit-login-form-22395/</link>
		<comments>http://phpmagister.com/interspire-shopping-cart-edit-login-form-22395/#comments</comments>
		<pubDate>Sun, 20 May 2012 22:42:38 +0000</pubDate>
		<dc:creator>Stacked</dc:creator>
				<category><![CDATA[facebook-graph-api]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://phpmagister.com/interspire-shopping-cart-edit-login-form-22395/</guid>
		<description><![CDATA[<p>I am trying to populate some predefined values from class.cutomer.php in Interspire Shopping Cart. But I am a little confused with the %% variables. This is how login form look likes:</p>
<pre><code>&#60;div class="Block Moveable Panel LoginForm" id="LoginForm"&#62;
    &#60;div class="BlockContent"&#62;
        &#60;div </code>&#8230;</pre> <a href="http://phpmagister.com/interspire-shopping-cart-edit-login-form-22395/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am trying to populate some predefined values from class.cutomer.php in Interspire Shopping Cart. But I am a little confused with the %% variables. This is how login form look likes:</p>
<pre><code>&lt;div class="Block Moveable Panel LoginForm" id="LoginForm"&gt;
    &lt;div class="BlockContent"&gt;
        &lt;div class="CreateAccount"&gt;
            &lt;h2&gt;%%GLOBAL_NewAccountHeading%%&lt;/h2&gt;
            &lt;div style="display:%%GLOBAL_HideNewCustomerButton%%"&gt;
                &lt;p&gt;%%LNG_NewCustomerIntro1%% %%GLOBAL_StoreName%% %%LNG_NewCustomerIntro2%%&lt;/p&gt;
                &lt;form action="%%GLOBAL_ShopPath%%/login.php" method="get"&gt;
                    &lt;input type="hidden" name="action" value="create_account" /&gt;
                    &lt;input type="hidden" name="checking_out" value="yes" /&gt;
                    &lt;input type="submit" value="%%LNG_ContinueRaquo%%" style="padding:2px 10px 2px 10px" /&gt;
                &lt;/form&gt;
            &lt;/div&gt;
            &lt;div style="display: %%GLOBAL_HideLoginNewAccountIntro%%"&gt;
                %%LNG_CreateAccountLoginIntro%% &lt;a href="%%GLOBAL_ShopPath%%/login.php?action=create_account"&gt;%%LNG_ClickToCreateAnAccount%%&lt;/a&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div class="AccountLogin"&gt;
            &lt;h2&gt;%%GLOBAL_ExistingUserHeading%%&lt;/h2&gt;

            &lt;form action="%%GLOBAL_ShopPath%%/login.php?action=check_login" method="post" onsubmit="return check_login_form()"&gt;
                &lt;div class="FormContainer HorizontalFormContainer NarrowFormContainer"&gt;
                    &lt;p style="display: %%GLOBAL_HideLoginMessage%%" class="%%GLOBAL_MessageClass%%"&gt;
                        %%GLOBAL_LoginMessage%%
                    &lt;/p&gt;

                    &lt;dl&gt;
                        &lt;dt&gt;%%LNG_EmailAddress%%:&lt;/dt&gt;
                        &lt;dd&gt;&lt;input type="text" class="Textbox Field150 InitialFocus" name="login_email" id="login_email" /&gt;&lt;/dd&gt;

                        &lt;dt&gt;%%LNG_Password%%:&lt;/dt&gt;
                        &lt;dd&gt;&lt;input type="password" class="Textbox Field150" name="login_pass" id="login_pass" /&gt;&lt;/dd&gt;
                    &lt;/dl&gt;
                    &lt;!--Facebook Login--&gt;
                    &lt;p style="margin:3px;"&gt;&lt;img src="http://www.challengeyoursoul.com/images/facebooklogin.png" /&gt;&lt;/p&gt;
                    &lt;!--Facebook Login Ends--&gt;
                    &lt;p class="Submit"&gt;
                        &lt;input id="LoginButton" type="submit" value="%%LNG_LoginWord%%" style="padding:2px 10px 2px 10px" /&gt;
                        &lt;br /&gt;
                        &lt;a href="%%GLOBAL_ShopPath%%/login.php?action=reset_password"&gt;%%LNG_ForgotYourPassword%%&lt;/a&gt;
                    &lt;/p&gt;
                &lt;/div&gt;
            &lt;/form&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
%%Panel.LoginJavaScript%%
</code></pre>
<p>I need to add some php variable values to input value tag like</p>
<pre><code> &lt;input type="text" value="%%MY_VALUE%%" /&gt;
</code></pre>
<p>But I am not sure that where should I need to define this $MY_VALUE<br />
Also no that the login form provided is in .html format<br />
Any help?</p>
<p>Actually I am trying to use Facebook Connect to populate fields.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpmagister.com/interspire-shopping-cart-edit-login-form-22395/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to search through subarrays efficiently in PHP?</title>
		<link>http://phpmagister.com/how-to-search-through-subarrays-efficiently-in-php-22394/</link>
		<comments>http://phpmagister.com/how-to-search-through-subarrays-efficiently-in-php-22394/#comments</comments>
		<pubDate>Sun, 20 May 2012 22:42:20 +0000</pubDate>
		<dc:creator>Stacked</dc:creator>
				<category><![CDATA[arrays]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://phpmagister.com/how-to-search-through-subarrays-efficiently-in-php-22394/</guid>
		<description><![CDATA[<pre><code>$arr = array($arr1,$arr2,..);
</code></pre>
<p>How to search through <code>$arr</code> to find the one with <code>key1 =&#62; 'something'</code>,<code>key2 =&#62; 'something else'</code>&#8230;</p> <a href="http://phpmagister.com/how-to-search-through-subarrays-efficiently-in-php-22394/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre><code>$arr = array($arr1,$arr2,..);
</code></pre>
<p>How to search through <code>$arr</code> to find the one with <code>key1 =&gt; 'something'</code>,<code>key2 =&gt; 'something else'</code></p>
]]></content:encoded>
			<wfw:commentRss>http://phpmagister.com/how-to-search-through-subarrays-efficiently-in-php-22394/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#039;t access value in array using variable to specify index</title>
		<link>http://phpmagister.com/cant-access-value-in-array-using-variable-to-specify-index-22393/</link>
		<comments>http://phpmagister.com/cant-access-value-in-array-using-variable-to-specify-index-22393/#comments</comments>
		<pubDate>Sun, 20 May 2012 22:41:55 +0000</pubDate>
		<dc:creator>Stacked</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://phpmagister.com/cant-access-value-in-array-using-variable-to-specify-index-22393/</guid>
		<description><![CDATA[<p>I have the following code:</p>
<pre><code>$id = $_GET['id'];

echo '&#60;br&#62;' . 'id: ' . $id . '&#60;br&#62;&#60;br&#62;';

echo '&#60;pre&#62;';
            print_r($itemQtys);
echo '&#60;/pre&#62;';

echo '&#60;br&#62;' . 'itemqtys[id]: ' . $itemQtys[$id] . '&#60;br&#62;';

echo '&#60;br&#62;' . 'id: ' . $id . '&#60;br&#62;';
</code>&#8230;</pre> <a href="http://phpmagister.com/cant-access-value-in-array-using-variable-to-specify-index-22393/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have the following code:</p>
<pre><code>$id = $_GET['id'];

echo '&lt;br&gt;' . 'id: ' . $id . '&lt;br&gt;&lt;br&gt;';

echo '&lt;pre&gt;';
            print_r($itemQtys);
echo '&lt;/pre&gt;';

echo '&lt;br&gt;' . 'itemqtys[id]: ' . $itemQtys[$id] . '&lt;br&gt;';

echo '&lt;br&gt;' . 'id: ' . $id . '&lt;br&gt;';
</code></pre>
<p>The output is:</p>
<p>id: 5</p>
<p>Array<br />
   (<br />
              [5] =&gt; 12<br />
    )</p>
<p>itemqtys[id]:</p>
<p>id: 5</p>
<p>As you can see, when I try to access the value in the array using the $id variable as the key, no value is returned. However, when I do this:</p>
<pre><code>echo '&lt;br&gt;' . 'itemqtys[5]: ' . $itemQtys[5] . '&lt;br&gt;';
</code></pre>
<p>The result is:</p>
<p>itemqtys[5]: 12</p>
<p>Why can&#8217;t I use a variable to specify the index in the array?</p>
]]></content:encoded>
			<wfw:commentRss>http://phpmagister.com/cant-access-value-in-array-using-variable-to-specify-index-22393/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assert that a function gets called</title>
		<link>http://phpmagister.com/assert-that-a-function-gets-called-22392/</link>
		<comments>http://phpmagister.com/assert-that-a-function-gets-called-22392/#comments</comments>
		<pubDate>Sun, 20 May 2012 22:41:45 +0000</pubDate>
		<dc:creator>Stacked</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[phpunit]]></category>

		<guid isPermaLink="false">http://phpmagister.com/assert-that-a-function-gets-called-22392/</guid>
		<description><![CDATA[<p>When testing with phpunit, I want to assert a function call:</p>
<p>Given a Class:</p>
<pre><code>Class TimeWrapper {
  public function time() {
    return time();
  }
}
</code></pre>
<p>And Its unittest:</p>
<pre><code>Class TimeWrapperTest extends PHPUnit_FrameworkTestCase {
  public function testTime() {
    //Pseudocode as example </code>&#8230;</pre> <a href="http://phpmagister.com/assert-that-a-function-gets-called-22392/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When testing with phpunit, I want to assert a function call:</p>
<p>Given a Class:</p>
<pre><code>Class TimeWrapper {
  public function time() {
    return time();
  }
}
</code></pre>
<p>And Its unittest:</p>
<pre><code>Class TimeWrapperTest extends PHPUnit_FrameworkTestCase {
  public function testTime() {
    //Pseudocode as example of a possible solution:
    $this-&gt;assertCallsFunction("time");
  }
}
</code></pre>
<p>I am specifically looking for a way to test calling of global functions. </p>
<p>FWIW: with rspec, I use <a href="http://rubydoc.info/gems/rspec-mocks/frames" rel="nofollow">Message Expectations</a>. I am looking to achieve something similar, or exactly similar in PHPUnit.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpmagister.com/assert-that-a-function-gets-called-22392/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extract variable part of a string [closed]</title>
		<link>http://phpmagister.com/extract-variable-part-of-a-string-closed-22391/</link>
		<comments>http://phpmagister.com/extract-variable-part-of-a-string-closed-22391/#comments</comments>
		<pubDate>Sun, 20 May 2012 22:41:26 +0000</pubDate>
		<dc:creator>Stacked</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://phpmagister.com/extract-variable-part-of-a-string-closed-22391/</guid>
		<description><![CDATA[<p>I would like to extract the <code>name</code> from the following: </p>
<pre><code>&#60;div style="display:block; font-family:Arial, Helvetica, sans-serif; color:#FFF; font-size:18px; text-align:center;"&#62;&#60;?php
            $facebookid = $_GET['fbid'];
    $facebooklink = 'http://graph.facebook.com/'.$facebookid.'?fields=name';

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $facebooklink);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $string = curl_exec($ch);
    curl_close($ch);
    $array = json_decode </code>&#8230;</pre> <a href="http://phpmagister.com/extract-variable-part-of-a-string-closed-22391/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I would like to extract the <code>name</code> from the following: </p>
<pre><code>&lt;div style="display:block; font-family:Arial, Helvetica, sans-serif; color:#FFF; font-size:18px; text-align:center;"&gt;&lt;?php
            $facebookid = $_GET['fbid'];
    $facebooklink = 'http://graph.facebook.com/'.$facebookid.'?fields=name';

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $facebooklink);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $string = curl_exec($ch);
    curl_close($ch);
    $array = json_decode ($string);
    echo $array-&gt;name;
    ?&gt;

    &lt;/div&gt;
</code></pre>
<p>everything works apart from extracting, then displaying only the <code>name</code>.</p>
<p>the variable <code>$string</code> would output this:</p>
<pre><code>{
   "name": "Mark Zuckerberg",
   "id": "4"
}
</code></pre>
<p>With the variables &#8216;name&#8217; and &#8216;id&#8217; changed.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpmagister.com/extract-variable-part-of-a-string-closed-22391/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP convert an image made in the file into base64</title>
		<link>http://phpmagister.com/php-convert-an-image-made-in-the-file-into-base64-22390/</link>
		<comments>http://phpmagister.com/php-convert-an-image-made-in-the-file-into-base64-22390/#comments</comments>
		<pubDate>Sun, 20 May 2012 22:40:59 +0000</pubDate>
		<dc:creator>Stacked</dc:creator>
				<category><![CDATA[base64]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://phpmagister.com/php-convert-an-image-made-in-the-file-into-base64-22390/</guid>
		<description><![CDATA[<p>I have an image that I  have created by combining images based on database data, and was wondering hw to convert that to base 64. I tried this but the characters returned can not be decoded into an image:</p>
<pre><code>$encode </code>&#8230;</pre> <a href="http://phpmagister.com/php-convert-an-image-made-in-the-file-into-base64-22390/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have an image that I  have created by combining images based on database data, and was wondering hw to convert that to base 64. I tried this but the characters returned can not be decoded into an image:</p>
<pre><code>$encode ="data:image/png";
imagepng($image);
echo (base64_encode($encode));
</code></pre>
<p>I saw <a href="http://stackoverflow.com/questions/3967515/convert-image-to-base64-encoding-in-php">this</a> among others but that requires a path that I don&#8217;t have. Thanks for any help.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpmagister.com/php-convert-an-image-made-in-the-file-into-base64-22390/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resize GtkMessageDialog in php</title>
		<link>http://phpmagister.com/resize-gtkmessagedialog-in-php-22389/</link>
		<comments>http://phpmagister.com/resize-gtkmessagedialog-in-php-22389/#comments</comments>
		<pubDate>Sun, 20 May 2012 22:40:56 +0000</pubDate>
		<dc:creator>Stacked</dc:creator>
				<category><![CDATA[gui]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php-gtk]]></category>

		<guid isPermaLink="false">http://phpmagister.com/resize-gtkmessagedialog-in-php-22389/</guid>
		<description><![CDATA[<p>I need to resize a GtkMessageDialog in php to have enough space for long string (dont want a new line)!</p>
<p>Create it:</p>
<pre><code>$dialog = new GtkMessageDialog($this-&#62;window, Gtk::DIALOG_MODAL, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_YES_NO, "");
</code></pre>
<p>Set the message output:</p>
<pre><code>$message = "I NEED A LONG </code>&#8230;</pre> <a href="http://phpmagister.com/resize-gtkmessagedialog-in-php-22389/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I need to resize a GtkMessageDialog in php to have enough space for long string (dont want a new line)!</p>
<p>Create it:</p>
<pre><code>$dialog = new GtkMessageDialog($this-&gt;window, Gtk::DIALOG_MODAL, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_YES_NO, "");
</code></pre>
<p>Set the message output:</p>
<pre><code>$message = "I NEED A LONG STRING TO DISPLAY IN THE DIALOGn"
$dialog-&gt;set_markup($message);
</code></pre>
<p>How its possible to adjust the dialog size? (the string should fit in one line)</p>
<p>Thanks and greets</p>
<p>leon22</p>
]]></content:encoded>
			<wfw:commentRss>http://phpmagister.com/resize-gtkmessagedialog-in-php-22389/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

