<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>Server-side</title>
		<link>https://www.cotonti.com</link>
		<description>PHP, MySQL, Apache and other server-side questions</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Tue, 14 Apr 2026 08:17:40 -0000</pubDate>

		<item>
			<title>hasseb123 - php 4.1</title>
			<description><![CDATA[<p><span style="color:rgb(68,68,68);font-family:sans-serif;line-height:16.0029983520508px;background-color:rgb(238,238,238);">I am using Cotonti for a Guildwebpage for a game.</span><br style="color:rgb(68,68,68);font-family:sans-serif;line-height:16.0029983520508px;background-color:rgb(238,238,238);" /><span style="color:rgb(68,68,68);font-family:sans-serif;line-height:16.0029983520508px;background-color:rgb(238,238,238);">Now I added some bbcodes.</span><br style="color:rgb(68,68,68);font-family:sans-serif;line-height:16.0029983520508px;background-color:rgb(238,238,238);" /><br style="color:rgb(68,68,68);font-family:sans-serif;line-height:16.0029983520508px;background-color:rgb(238,238,238);" /><span style="color:rgb(68,68,68);font-family:sans-serif;line-height:16.0029983520508px;background-color:rgb(238,238,238);">How can I add these codes to the TEXTBOXER?</span><br style="color:rgb(68,68,68);font-family:sans-serif;line-height:16.0029983520508px;background-color:rgb(238,238,238);" /><span style="color:rgb(68,68,68);font-family:sans-serif;line-height:16.0029983520508px;background-color:rgb(238,238,238);">It's probably very simple. But I'm overlooking it.</span><br style="color:rgb(68,68,68);font-family:sans-serif;line-height:16.0029983520508px;background-color:rgb(238,238,238);" /><br style="color:rgb(68,68,68);font-family:sans-serif;line-height:16.0029983520508px;background-color:rgb(238,238,238);" /><span style="color:rgb(68,68,68);font-family:sans-serif;line-height:16.0029983520508px;background-color:rgb(238,238,238);">Thnx in advance, XoneFobic</span></p>
]]></description>
			<pubDate>вт, 21 окт 2014 04:57:44 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=40103#40103]]></link>
		</item>
		<item>
			<title>Macik - [Helpfull stuff]: Flysystem</title>
			<description><![CDATA[<p>[Not Cotonti related itseft but may be interesting and helpfull for developers]</p>

<p><span style="font-family:Helvetica, arial, freesans, clean, sans-serif;font-size:15px;line-height:25.5px;">Flysystem is a filesystem abstraction which allows you to easiliy swap out a local filesystem for a remote one.</span></p>

<h2 style="margin:1em 0px 15px;line-height:1.7;font-size:2em;padding:0px;font-weight:bold;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);font-family:Helvetica, arial, freesans, clean, sans-serif;">Adapters</h2>

<ul style="padding-right:0px;padding-left:30px;margin:15px 0px;font-family:Helvetica, arial, freesans, clean, sans-serif;font-size:15px;line-height:25.5px;"><li>Local</li>
	<li>Amazon Web Services - S3</li>
	<li>Dropbox</li>
	<li>Ftp</li>
	<li>Sftp (through phpseclib)</li>
</ul><p><a href="https://github.com/FrenkyNet/Flysystem" rel="nofollow">https://github.com/FrenkyNet/Flysystem</a></p>
]]></description>
			<pubDate>пн, 11 ноя 2013 07:05:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=38429#38429]]></link>
		</item>
		<item>
			<title>Twiebie - Error handling with Ajax and PHP</title>
			<description><![CDATA[<p>OK, got it.</p>

<p>Thanks!</p>
]]></description>
			<pubDate>вс, 18 авг 2013 10:05:44 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37800#37800]]></link>
		</item>
		<item>
			<title>Trustmaster - Error handling with Ajax and PHP</title>
			<description><![CDATA[<p>Yes, I check the status and error messages in success function.</p>
]]></description>
			<pubDate>вс, 18 авг 2013 06:25:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37799#37799]]></link>
		</item>
		<item>
			<title>Twiebie - Error handling with Ajax and PHP</title>
			<description><![CDATA[<p>Thanks, Trustmaster! Looks like I sort of was on the right track with my JSON response effort.</p>

<p>I'm guessing you are using this with success: function() {}, as you return 200 regardless?</p>
]]></description>
			<pubDate>вс, 18 авг 2013 00:33:07 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37797#37797]]></link>
		</item>
		<item>
			<title>Trustmaster - Error handling with Ajax and PHP</title>
			<description><![CDATA[<p>Here is an example trick that I use:</p>

<pre class="brush:php;">
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
	$rpost = post_import();
	if (post_validate($rpost, $_POST['name']))
	{
		post_send($rpost);
		$response = array(
			'status'  =&gt; true,
			'message' =&gt; $L['post_message_sent']
		);
	}
	else
	{
		// Return error messages
		$error_fields = array();
		$error_messages = array();
		foreach ($_SESSION['cot_messages'][$sys['site_id']] as $src =&gt; $grp)
		{
			$error_fields[] = $src;
			foreach ($grp as $msg)
			{
				$error_messages[] = isset($L[$msg['text']]) ? $L[$msg['text']] : $msg['text'];
			}
		}
		$response = array(
			'status'         =&gt; false,
			'error_fields'   =&gt; $error_fields,
			'error_messages' =&gt; $error_messages
		);
		cot_clear_messages();
	}

	cot_sendheaders('application/json', '200 OK');

	echo json_encode($response);
}</pre>

<p> </p>
]]></description>
			<pubDate>сб, 17 авг 2013 18:00:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37795#37795]]></link>
		</item>
		<item>
			<title>Twiebie - Error handling with Ajax and PHP</title>
			<description><![CDATA[<p>I'm wondering what in Cotonti the best way is to handle errors with an Ajax submitted form to a PHP file.</p>

<p>Normally with a simple form the errors can be handled with Cotonti's cot_error(); function like this:</p>

<pre class="brush:php;">
cot_error('someErrorMessage', '');
cot_redirect(cot_url('myPlug', 'm=form', '', true));</pre>

<p>How would you guys handle something like this if the form is submitted with Ajax?</p>
]]></description>
			<pubDate>сб, 17 авг 2013 14:51:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37793#37793]]></link>
		</item>
		<item>
			<title>elfrenazo - Recommended host?</title>
			<description><![CDATA[<p>
	<span class="hps">I use</span> <span class="hps"><strong>1and1</strong> of 2008, <span class="hps">quality and price</span> <span class="hps">not bad</span>.</span></p>
]]></description>
			<pubDate>вс, 03 мар 2013 05:41:21 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37146#37146]]></link>
		</item>
		<item>
			<title>tensh - Recommended host?</title>
			<description><![CDATA[<p>
	:(</p>
]]></description>
			<pubDate>ср, 27 фев 2013 14:19:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37117#37117]]></link>
		</item>
		<item>
			<title>milleja46 - Recommended host?</title>
			<description><![CDATA[<p>
	Ehh I think I may go with ASO(a small orange). They seem pretty cheap and so far in my reasearch now that I've looked them up more, they don't have as much mixed reviews as others I've seen and heard of, still gotta figure out what the domain is going to be for my main project site or worry about that one later and just do the personal one for now...</p>
<p><strong>Added 50 minutes later:</strong></p><p>
	The only thing is I still can't come up with a name that will work without me having to pay a arm and a leg to buy off of someone else. I've tried zatri(the .net is hosted by godaddy and I don't know where to go on that one). Even tried limedev and all variations and TLDs I've looked up for that one and someone is using that currently...so much harder to come up with something original and interesting very easily...</p>
]]></description>
			<pubDate>пн, 11 фев 2013 00:31:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37005#37005]]></link>
		</item>
		<item>
			<title>Kingsley - Recommended host?</title>
			<description><![CDATA[<p>
	been customer of <a href="http://www.flexwebhosting.nl/" rel="nofollow">Flexweb hosting</a> (Dutch) for over 10 years now, and in all that time my website  was down once. And that was because of a digging accident that killed of some important cables, and lasted no longer that 9 hrs. So imho I still have a 100% uptime. (cant really blame Flexweb for an external error).<br /><br />
	Prizes may be a bit higher than usual, but for me that's no argument; simply because I also want service when I need it, so I gladly pay a bit more.</p>
]]></description>
			<pubDate>вс, 10 фев 2013 16:22:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37004#37004]]></link>
		</item>
		<item>
			<title>milleja46 - Recommended host?</title>
			<description><![CDATA[<p>
	Well as long as I can run at least 2 websites easily which I don't know how bad each will do at that...hrmm...I sure hope someone else has a better suggestion. Definitely not going with mediatemple or rackspace even if those are good. Those two are expensive...</p>
]]></description>
			<pubDate>вс, 10 фев 2013 16:21:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37003#37003]]></link>
		</item>
		<item>
			<title>lukgoh - Recommended host?</title>
			<description><![CDATA[<p>
	Well, I can't comment on them as I don't know but just keep in mind what you need and which one(s) provide exactly that. Just remember you get what you pay for ;)</p>
]]></description>
			<pubDate>вс, 10 фев 2013 16:19:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37002#37002]]></link>
		</item>
		<item>
			<title>milleja46 - Recommended host?</title>
			<description><![CDATA[<p>
	Well all of those are pretty cheap(being below $10 here). But I don't know what to think of any of them since it seems that in the past through all the reviews I have thumbed through it is very mixed. It's like half say they are the best while others say they are the worst, that's the reason I asked if anyone had a suggestion on any one host to choose...</p>
]]></description>
			<pubDate>вс, 10 фев 2013 16:12:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37001#37001]]></link>
		</item>
		<item>
			<title>lukgoh - Recommended host?</title>
			<description><![CDATA[<p>
	Are they free hosts? If not I offer hosting at £5 per month and I can give you everything you need. Let me know.</p>
]]></description>
			<pubDate>вс, 10 фев 2013 15:51:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=37000#37000]]></link>
		</item>
		<item>
			<title>milleja46 - Recommended host?</title>
			<description><![CDATA[<p>
	I know this question has probably been asked before, and probably many times, but what is the best host ot use for cotonti? I've so far been wrestling over using either dreamhost, bluehost, or webhostinghub. Is there any one who can give me any suggestions on which host to use?</p>
]]></description>
			<pubDate>вс, 10 фев 2013 14:31:36 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=36999#36999]]></link>
		</item>
		<item>
			<title>Twiebie - PHP array question</title>
			<description><![CDATA[<p>
	Awesome, that is exactly what I need!</p>
<p>
	Thanks a lot for the quick reply, Trustmaster!</p>
]]></description>
			<pubDate>пн, 24 дек 2012 20:50:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=36625#36625]]></link>
		</item>
		<item>
			<title>Trustmaster - PHP array question</title>
			<description><![CDATA[<p>
	The <em>stdClass Object</em> thingie tells you that the array is not an array of arrays but is rather an array of <a href="http://php.net/manual/en/language.types.object.php" rel="nofollow">Objects</a>.</p>
<p>
	Another thing is that you might want to access items from both arrays by index, so you can use <a href="http://php.net/manual/en/control-structures.for.php" rel="nofollow">for</a> loop instead of <a href="http://php.net/manual/en/control-structures.foreach.php" rel="nofollow">foreach</a>.</p>
<p>
	Putting it all together, here is how you can add user_id property to each object in the array using values from another array:</p>
<pre class="brush:php;">
for ($i = 0; $i &lt; count($userid); $i++)
{
	$videos[$i]-&gt;user_id = $userid[$i];
}</pre>
<p>
	 </p>
]]></description>
			<pubDate>пн, 24 дек 2012 20:41:07 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=36622#36622]]></link>
		</item>
		<item>
			<title>Twiebie - PHP array question</title>
			<description><![CDATA[<p>
	I've got a quick PHP question, which I'm sure some of the developers here can easily answer.</p>
<p>
	I've got the following array:</p>
<pre class="brush:php;">
Array
(
    [0] =&gt; stdClass Object
        (
            [embed_count] =&gt; 3526
            [stream_count] =&gt; 10216
            [category] =&gt; gaming
            [channel_count] =&gt; 20331
            [format] =&gt; live
            [featured] =&gt; 1
            [site_count] =&gt; 6690
            [abuse_reported] =&gt; 
            [channel] =&gt; stdClass Object
                (
                    [timezone] =&gt; America/New_York
                    [subcategory] =&gt; 
                    [category] =&gt; gaming
                    [embed_enabled] =&gt; 1
                )

            [video_height] =&gt; 720
            [language] =&gt; en
            [video_bitrate] =&gt; 2107.9375
            [id] =&gt; 4426520352
            [broadcaster] =&gt; delay
            [broadcast_part] =&gt; 3
            [audio_codec] =&gt; uncompressed
            [up_time] =&gt; Mon Dec 24 09:46:39 2012
            [video_width] =&gt; 1280
            [geo] =&gt; US
            [channel_view_count] =&gt; 18592346
            [channel_subscription] =&gt; 1
            [embed_enabled] =&gt; 1
            [stream_type] =&gt; live
            [video_codec] =&gt; AVC
        )

    [1] =&gt; stdClass Object
        (
            [embed_count] =&gt; 14
            [stream_count] =&gt; 195
            [category] =&gt; gaming
            [channel_count] =&gt; 312
            [format] =&gt; live
            [featured] =&gt; 1
            [site_count] =&gt; 181
            [abuse_reported] =&gt; 
            [channel] =&gt; stdClass Object
                (
                    [timezone] =&gt; US/Pacific
                    [subcategory] =&gt; 
                    [category] =&gt; gaming
                    [embed_enabled] =&gt; 1
                )

            [video_height] =&gt; 1080
            [language] =&gt; en
            [video_bitrate] =&gt; 4398.9375
            [id] =&gt; 4426659824
            [broadcaster] =&gt; fme
            [broadcast_part] =&gt; 2
            [audio_codec] =&gt; uncompressed
            [up_time] =&gt; Mon Dec 24 10:16:06 2012
            [video_width] =&gt; 1920
            [geo] =&gt; US
            [channel_view_count] =&gt; 5738728
            [channel_subscription] =&gt; 1
            [embed_enabled] =&gt; 1
            [stream_type] =&gt; live
            [video_codec] =&gt; AVC
        )
)</pre>
<p>
	Now I want to add user_id to it and foreach loop through the array afterwards.</p>
<p>
	How can I add a new value to the existing array?<br />
	So I end up keeping the same array but with the added value, something like this:</p>
<pre class="brush:php;">
Array
(
    [0] =&gt; stdClass Object
        (
            [user_id] =&gt; Twiebie
            [embed_count] =&gt; 3526
            [stream_count] =&gt; 10216
            etc...
            etc...
        )

    [1] =&gt; stdClass Object
        (
            [user_id] =&gt; AnotherUser
            [embed_count] =&gt; 14
            [stream_count] =&gt; 195
            etc...
            etc...
        )
)</pre>
<p>
	If I do something like:</p>
<pre class="brush:php;">
// $result is the array as seen above here
foreach ($userid as $value)
{
    $result[] = $value;
}</pre>
<p>
	It adds it to the bottom of the array instead of to the <span style="background-color:rgb(245,245,245);color:rgb(51,51,51);font-family:Menlo, Monaco, Consolas, 'Courier New', monospace;font-size:12px;line-height:18px;">stdClass Object</span>.<br />
	This is fine too, but how would I loop through it then? With a foreach inside a foreach? Can someone provide a code example?</p>
<p>
	Thanks in advance.</p>
]]></description>
			<pubDate>пн, 24 дек 2012 19:25:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=36620#36620]]></link>
		</item>
		<item>
			<title>GHengeveld - how can i limit a plugin work for just 1 domain</title>
			<description><![CDATA[<p>
	With an interpreted (not compiled) language like PHP it's difficult to prevent source code from spreading once it's been released. The encoding solutions provided by Macik attempt to obfuscate the source code so it becomes difficult to modify it. Then you can use some sort of serial code system to limit use.</p>
<p>
	My suggestion is to use a legal license which indicates the limited amount of domains your package may be used on. Some won't abide it, but I doubt it's worth the effort to use an encoder.</p>
]]></description>
			<pubDate>пт, 26 окт 2012 07:13:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=35930#35930]]></link>
		</item>
		<item>
			<title>Macik - how can i limit a plugin work for just 1 domain</title>
			<description><![CDATA[<p>
	You need some code encoder. </p>
<p>
	Stealed from somewere in net (pretty old info, but it gives the direction for search): </p>
<p>
	<span style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">- </span><a class="externalLink" href="http://www.sourcedefender.com/" rel="nofollow" style="color:rgb(23,96,147);text-decoration:none;padding:0px 3px;margin:0px -3px;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">Source Defender</a><br style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);" /><span style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">- </span><a class="externalLink" href="http://sourceforge.net/projects/php-screw" rel="nofollow" style="color:rgb(23,96,147);text-decoration:none;padding:0px 3px;margin:0px -3px;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">PHP Screw</a><br style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);" /><span style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">- </span><a class="externalLink" href="http://www.zend.com/store/products/zend-encoder.php" rel="nofollow" style="color:rgb(23,96,147);text-decoration:none;padding:0px 3px;margin:0px -3px;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">Zend Encoder</a><br style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);" /><span style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">- </span><a class="externalLink" href="http://pbc.sourceforge.net/" rel="nofollow" style="color:rgb(23,96,147);text-decoration:none;padding:0px 3px;margin:0px -3px;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">PBC</a><br style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);" /><span style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">- </span><a class="externalLink" href="http://www.rssoftlab.com/phpenc.php4" rel="nofollow" style="color:rgb(23,96,147);text-decoration:none;padding:0px 3px;margin:0px -3px;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">PHTML Encoder</a><br style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);" /><span style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">- </span><a class="externalLink" href="http://sourceforge.net/projects/niaencoder" rel="nofollow" style="color:rgb(23,96,147);text-decoration:none;padding:0px 3px;margin:0px -3px;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">NIA Encoder</a><br style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);" /><span style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">- </span><a class="externalLink" href="http://sourceforge.net/projects/microcode" rel="nofollow" style="color:rgb(23,96,147);text-decoration:none;padding:0px 3px;margin:0px -3px;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">microCode</a><br style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);" /><span style="color:rgb(20,20,20);font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">- </span><a class="externalLink" href="http://pobs.mywalhalla.net/" rel="nofollow" style="color:rgb(23,96,147);text-decoration:none;padding:0px 3px;margin:0px -3px;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;background-color:rgb(252,252,255);">POBS</a></p>
<p>
	But it's not a all time solutions. All files can be decompiled with more or less time and knowledge.</p>
]]></description>
			<pubDate>пт, 26 окт 2012 00:55:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=35929#35929]]></link>
		</item>
		<item>
			<title>diablo - how can i limit a plugin work for just 1 domain</title>
			<description><![CDATA[<p>
	i need to limit the amount of domains using my plugin or lets just say the package.. i dont want someone to take it and use it for another site.</p>
<p>
	 </p>
<p>
	i prefer free solutions but willing to pay some fee if i must</p>
]]></description>
			<pubDate>чт, 25 окт 2012 22:12:04 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=35928#35928]]></link>
		</item>
		<item>
			<title>fade2k - preg_replace questions</title>
			<description><![CDATA[<p>
	Thank you &amp; Thanks for the link!</p>
<p>
	Your probably right about the @ sign -- Got use to a pesky !bot =0D</p>
<p>
	I'm slowly getting ahang of this stuff =0)</p>
]]></description>
			<pubDate>вт, 19 июн 2012 21:56:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=34728#34728]]></link>
		</item>
		<item>
			<title>GHengeveld - preg_replace questions</title>
			<description><![CDATA[<p>
	I think what you're looking for is something like this:</p>
<pre class="brush:php;">
$var = preg_replace('/!([^\s])/', '&lt;a href="https://www.cotonti.com/index.php?e=users&amp;m=details&amp;u=$1"&gt;$1&lt;/a&gt;', $var);</pre>
<p>
	A helpful tool to check your regular expressions is here: <a href="http://gskinner.com/RegExr/" rel="nofollow">http://gskinner.com/RegExr/</a></p>
<p>
	By the way, don't you think the @ sign is more appropriate (considering Twitter's usage of this).</p>
]]></description>
			<pubDate>пн, 18 июн 2012 20:59:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=34723#34723]]></link>
		</item>
		<item>
			<title>fade2k - preg_replace questions</title>
			<description><![CDATA[<p>
	I'm my oddball quest to learn PHP, I've been working on simple applications (what better way to learn right?). So I find myself using preg_replace to convert usernames into links in posts using preg_replace. My hangup so far has been the whole regex .. I get it .. sort-of.</p>
<pre class="brush:php;">
$var = preg_replace('/[!]+('.$value.')/',$shoutLink,$var); // $var = a post</pre>
<p>
	The shoutlink is just a link to the members profile. Anyway, it works if the !username is on the first line of the input but when there are new lines without a space afterwords and another !username -- both fail to be replaced with the link. What gives? Does preg_replace see new lines as part of the input (\n!username) or does it ignore it?</p>
<p>
	LoL thanks ahead of time.</p>
]]></description>
			<pubDate>пн, 18 июн 2012 15:56:40 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=34722#34722]]></link>
		</item>
		<item>
			<title>Dave - merge the data base...</title>
			<description><![CDATA[<p>
	thanks, i did it the hard way sicnce couldt get right command for sql ;/ need to learn more</p>
]]></description>
			<pubDate>ср, 29 фев 2012 08:46:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=33353#33353]]></link>
		</item>
		<item>
			<title>Trustmaster - merge the data base...</title>
			<description><![CDATA[<p>
	What you need to do is this:</p>
<pre class="brush:sql;">
INSERT IGNORE INTO `sed_groups_users` (`gru_userid`, `gru_groupid`)
    SELECT `user_id`, `user_maingrp` FROM `sed_users`;</pre>
<p>
	This will add the main groups into sed_groups_users. After that you'll have to add secondary groups manually for each user.</p>
]]></description>
			<pubDate>вт, 28 фев 2012 07:51:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=33341#33341]]></link>
		</item>
		<item>
			<title>Dave - merge the data base...</title>
			<description><![CDATA[<p>
	thaks for help T. another question before ill make some mistake, will it be ok if ill build sed_group_users from sed_users ?</p>
<p>
	i think i can answer my self... yes i can (not 100% sure tho...) im simply rebuilding sed_users to get sed_group_users</p>
<p>
	<a href="http://forgotten-garage.pl/datas/users/sedgroupsusers_1.jpg" rel="nofollow">http://forgotten-garage.pl/datas/users/sedgroupsusers_1.jpg</a></p>
<p>
	and after all of it cot will keep building that table i gues?</p>
]]></description>
			<pubDate>пн, 27 фев 2012 23:39:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=33339#33339]]></link>
		</item>
		<item>
			<title>Trustmaster - merge the data base...</title>
			<description><![CDATA[<p>
	Yes, it is required to fix that table, otherwise your site is inconsistent and some modules may crash.</p>
]]></description>
			<pubDate>пн, 27 фев 2012 16:51:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=33320#33320]]></link>
		</item>
		<item>
			<title>Dave - merge the data base...</title>
			<description><![CDATA[<p>
	ok, so do i have to fix that cuz the table has like 700 rows? or i simply can leave it like that</p>
]]></description>
			<pubDate>пн, 27 фев 2012 00:32:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=33309#33309]]></link>
		</item>
		<item>
			<title>Trustmaster - merge the data base...</title>
			<description><![CDATA[<p>
	sed_groups_users records for membership in the groups is required, even if they have only main group</p>
]]></description>
			<pubDate>вс, 26 фев 2012 20:17:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=33302#33302]]></link>
		</item>
		<item>
			<title>Dave - merge the data base...</title>
			<description><![CDATA[<p>
	nope, only sed_users, _topics, _sections, as i was writing before i simply moved every user to gm=4 before merge</p>
]]></description>
			<pubDate>вс, 26 фев 2012 18:11:29 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=33300#33300]]></link>
		</item>
		<item>
			<title>Trustmaster - merge the data base...</title>
			<description><![CDATA[<p>
	If the main group is selected with radio, it doesn't need a tick in the checkbox, so that's normal.</p>
<p>
	Did you merge sed_groups_users table?</p>
]]></description>
			<pubDate>вс, 26 фев 2012 17:09:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=33298#33298]]></link>
		</item>
		<item>
			<title>fade2k - Back to PHP MySQL: A question!</title>
			<description><![CDATA[<p>
	Thanks! Thats exactly what I wanted to know and is what I expected.</p>
<p>
	ATM I'm just doing random tests with php/sql to see how things are working -- Haven't really tried ANY (outside of very very slight mods) of it in Siena *yet*.</p>
]]></description>
			<pubDate>пт, 24 фев 2012 18:15:07 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=33262#33262]]></link>
		</item>
		<item>
			<title>GHengeveld - Back to PHP MySQL: A question!</title>
			<description><![CDATA[<p>
	If you put an SQL query (like $db-&gt;query() in Siena or sed_sql_query() in Genoa) within a foreach/for/while loop, the query will be executed for every iteration of the loop. This is considered bad practice because its very inefficient. However in some cases it's the only option you have. If you're going to do a SELECT query it's better to include it in the first query, outside of the loop if possible.</p>
]]></description>
			<pubDate>пт, 24 фев 2012 18:07:52 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=33261#33261]]></link>
		</item>
		<item>
			<title>fade2k - Back to PHP MySQL: A question!</title>
			<description><![CDATA[<p>
	I've gone back to trying to re-learn and learn php/sql .... I have a question about how the mySQL db is being called in a situation like say:</p>
<pre class="brush:php;">
sql query;
assign array var {
assigning results to var from sql array
      sql query;
      assign array var {
      assigning results to var from sql array
      }
}</pre>
<p>
	My question is, is the second sql query being looped.. like for each result... is it a new query for every row from the query? Or is it being queried once after the first query and only grabbing relevent rows?</p>
<p>
	I know this question is really basic/general but I assumed it was like a foreach loop (on the second query) and if so, it can't be good right?</p>
<p>
	Thanks!</p>
]]></description>
			<pubDate>пт, 24 фев 2012 17:48:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=33260#33260]]></link>
		</item>
		<item>
			<title>Dave - merge the data base...</title>
			<description><![CDATA[<p>
	i dunno how to thank u... i can say only thank you.</p>
<p>
	the merging went fine and smooth, i had some troubles with doubled users / e-mails in the d.b. but its fixed now :0</p>
<p>
	<strong>Added 1 month later:</strong></p>
<p>
	hey guys, after merging ive noticed a "thing" idk if i can call it a bug cuz everything is wokring OK, </p>
<p>
	so, my site have like 6500 users, gm=4 however when i go to: admin.php?m=users (the members gm=4) count only 773 or something, i went to myadmin to see the rows in the data base but it looks ok, can it be some kind of a bug? </p>
<p>
	i dig a bit and found the reason:</p>
<p>
	<a href="https://www.cotonti.com/%20Open%20Source%20PHP%20Content%20Management%20FrameworkContent%20Management%20Framework%20Home%20News%20&amp;%20backgrounds%20Downloads%20Update%20&amp;%20extend%20Documentation%20In-depth%20information%20Community%20Get%20involved%20Codebase%20Bleeding%20edge%20%20%20%20RSS%20Forums%20/%20Craftwork%20/%20Server-side%20/%20merge%20the%20data%20base...%20%20i'd%20like%20to%20know%20your%20opinion%20about%20this...%20%20Dave%20QuoteEditDelete#1%202012-01-16%2018:25%20%20Members%20Thanked:%202%20times%20%20Hello,%20im%20runing%20a%20site%20with%200.6.20%20for%20some%20time,%20there%20is%20alos%20other%20site%20with%20same%20content,%20users%20would%20like%20to%20see%20merge%20both%20sites...%20Both%20are%20genoa%20%20now%20my%20question...%20what%20u%20guys%20thinking%20about%20merging%20data%20bases...%20i%20already%20did%20something%20like%20this%20but%20there%20is%20much%20users%20/%20topics%20i%20manage%20to%20learn%20struture%20of%20the%20cot%20d.b.%20and%20can%20do%20it%20">http://forgotten-garage.pl/datas/users/asd_1.jpg</a></p>
<p>
	is it something i have to worry about ? the red circle shows the reason</p>
]]></description>
			<pubDate>ср, 25 янв 2012 16:07:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=32934#32934]]></link>
		</item>
		<item>
			<title>Trustmaster - merge the data base...</title>
			<description><![CDATA[<pre class="brush:sql;">
UPDATE sed_users SET user_postcount = (SELECT COUNT(*) FROM sed_forum_posts WHERE fp_postrid = sed_users.user_id);</pre>
]]></description>
			<pubDate>пн, 23 янв 2012 09:46:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=32909#32909]]></link>
		</item>
		<item>
			<title>Dave - merge the data base...</title>
			<description><![CDATA[<p>
	thx man :)</p>
<p>
	im almoust done, any tip how to recount i.e. user_postcount FROM sed_users ?</p>
]]></description>
			<pubDate>пн, 23 янв 2012 09:26:24 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=32907#32907]]></link>
		</item>
		<item>
			<title>Trustmaster - merge the data base...</title>
			<description><![CDATA[<p>
	It's in table's AUTO_INCREMENT property: You can also get it this way:</p>
<pre class="brush:sql;">
SELECT MAX(user_id) + 1 FROM sed_users;</pre>
]]></description>
			<pubDate>пн, 23 янв 2012 08:05:03 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&p=32902#32902]]></link>
		</item>
	</channel>
</rss>