<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Open PHP-MyProfiler</title>
	<atom:link href="http://www.php-trivandrum.org/open-php-myprofiler/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-trivandrum.org</link>
	<description>Get addicted to PHP</description>
	<lastBuildDate>Fri, 27 Jan 2012 02:59:59 +0530</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jijutm</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-15828</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Sat, 07 May 2011 16:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-15828</guid>
		<description>&lt;a href=&quot;#comment-15739&quot; rel=&quot;nofollow&quot;&gt;@zan&lt;/a&gt; 
Anyway no need to put the log() at the footer, though the logfile path should be passed to the constructor, as

$profiler = new phpMyProfiler(”localhost”,”pmng_db”,”NhUSfGsUtRuG2uFr”, &quot;/path/to/logfile.log&quot;); 

Logging will be taken care of by the destructor

And the file or path should be writable by the webserver process. But none of this is your error case, I think the mysql does not provide profiling support or may be it is started with profiler disabled.</description>
		<content:encoded><![CDATA[<p><a href="#comment-15739" rel="nofollow">@zan</a><br />
Anyway no need to put the log() at the footer, though the logfile path should be passed to the constructor, as</p>
<p>$profiler = new phpMyProfiler(”localhost”,”pmng_db”,”NhUSfGsUtRuG2uFr”, &#8220;/path/to/logfile.log&#8221;); </p>
<p>Logging will be taken care of by the destructor</p>
<p>And the file or path should be writable by the webserver process. But none of this is your error case, I think the mysql does not provide profiling support or may be it is started with profiler disabled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zan</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-15739</link>
		<dc:creator>zan</dc:creator>
		<pubDate>Tue, 03 May 2011 10:57:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-15739</guid>
		<description>I can&#039;t get the code to log. 
I declare it in the top section of my page:

require_once SiteDIR.&#039;class/profiler/class.profiler.php&#039;;
$profiler = new phpMyProfiler(&quot;localhost&quot;,&quot;pmng_db&quot;,&quot;NhUSfGsUtRuG2uFr&quot;);

Then in the footer:
log(&quot;/class/profiler/&quot;) ?&gt;

No errors until this point, but the code seems not to go further than the first if statements. If I delete these if/return lines, the code gives me this error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /usr/local/hosting/isgpmng/incoming/class/profiler/class.profiler.php on line 35

What to do?</description>
		<content:encoded><![CDATA[<p>I can&#8217;t get the code to log.<br />
I declare it in the top section of my page:</p>
<p>require_once SiteDIR.&#8217;class/profiler/class.profiler.php&#8217;;<br />
$profiler = new phpMyProfiler(&#8221;localhost&#8221;,&#8221;pmng_db&#8221;,&#8221;NhUSfGsUtRuG2uFr&#8221;);</p>
<p>Then in the footer:<br />
log(&#8221;/class/profiler/&#8221;) ?&gt;</p>
<p>No errors until this point, but the code seems not to go further than the first if statements. If I delete these if/return lines, the code gives me this error:<br />
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /usr/local/hosting/isgpmng/incoming/class/profiler/class.profiler.php on line 35</p>
<p>What to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jijutm</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-14992</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Fri, 31 Dec 2010 07:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-14992</guid>
		<description>It seems that your mysql is not supporting the profiler, and may by I did not verify that in my script. Will check this up when I get the time.</description>
		<content:encoded><![CDATA[<p>It seems that your mysql is not supporting the profiler, and may by I did not verify that in my script. Will check this up when I get the time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-14829</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Thu, 28 Oct 2010 16:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-14829</guid>
		<description>Hi there,

I had a go with this class but I can&#039;t get any info at all from &#039;show profiles&#039; query... if I do a var_dump($data) in function log() I would get this:
array(2) { [&quot;instance&quot;]=&gt;  array(2) { [&quot;timestamp&quot;]=&gt;  int(1288283475) [&quot;request&quot;]=&gt;  string(18) &quot;/profiler/test.php&quot; } [&quot;profiles&quot;]=&gt;  NULL } 

at the end of __contructor I added:
mysqli_query($this-&gt;link,&quot;SELECT 1+1&quot;);
just to make sure there is an executed query

and my test.php is


I have mysql 5.1.37 / php 5.3.0

Are there any other settings I must look after to enable profiling??

Thank you</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I had a go with this class but I can&#8217;t get any info at all from &#8217;show profiles&#8217; query&#8230; if I do a var_dump($data) in function log() I would get this:<br />
array(2) { ["instance"]=&gt;  array(2) { ["timestamp"]=&gt;  int(1288283475) ["request"]=&gt;  string(18) &#8220;/profiler/test.php&#8221; } ["profiles"]=&gt;  NULL } </p>
<p>at the end of __contructor I added:<br />
mysqli_query($this-&gt;link,&#8221;SELECT 1+1&#8243;);<br />
just to make sure there is an executed query</p>
<p>and my test.php is</p>
<p>I have mysql 5.1.37 / php 5.3.0</p>
<p>Are there any other settings I must look after to enable profiling??</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jijutm</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-13924</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Wed, 10 Mar 2010 18:08:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-13924</guid>
		<description>&lt;a href=&quot;#comment-13921&quot; rel=&quot;nofollow&quot;&gt;@soussou97&lt;/a&gt; 
The answer is written in my post, anyway to repeat the stuff.. &quot;Integration into an application should be quite simple, as including into the header or config, or just any where after the database configuration is defined, and then immediately creating a global $profiler&quot; with the same parameters that your scripts use to connect to the database. Should make sure that the connection your existing code makes is not forcing a new connection on each invokation.</description>
		<content:encoded><![CDATA[<p><a href="#comment-13921" rel="nofollow">@soussou97</a><br />
The answer is written in my post, anyway to repeat the stuff.. &#8220;Integration into an application should be quite simple, as including into the header or config, or just any where after the database configuration is defined, and then immediately creating a global $profiler&#8221; with the same parameters that your scripts use to connect to the database. Should make sure that the connection your existing code makes is not forcing a new connection on each invokation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soussou97</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-13921</link>
		<dc:creator>soussou97</dc:creator>
		<pubDate>Wed, 10 Mar 2010 15:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-13921</guid>
		<description>Hi;

I realize of the load tests and would like to know how I can used this profiler  ?

regards</description>
		<content:encoded><![CDATA[<p>Hi;</p>
<p>I realize of the load tests and would like to know how I can used this profiler  ?</p>
<p>regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Trivandrum &#187; Speeding up Wordpress home page</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-13538</link>
		<dc:creator>PHP Trivandrum &#187; Speeding up Wordpress home page</dc:creator>
		<pubDate>Sun, 01 Nov 2009 18:34:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-13538</guid>
		<description>[...] Open PHP-MyProfiler [...]</description>
		<content:encoded><![CDATA[<p>[...] Open PHP-MyProfiler [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Trivandrum &#187; Threading PHP scripts using OS facilities</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-13367</link>
		<dc:creator>PHP Trivandrum &#187; Threading PHP scripts using OS facilities</dc:creator>
		<pubDate>Wed, 30 Sep 2009 17:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-13367</guid>
		<description>[...] Open PHP-MyProfiler [...]</description>
		<content:encoded><![CDATA[<p>[...] Open PHP-MyProfiler [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EricT</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-13084</link>
		<dc:creator>EricT</dc:creator>
		<pubDate>Sun, 31 May 2009 05:31:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-13084</guid>
		<description>http://www.php-trivandrum.org/profile-sampler/?localfile=www.articleclick.com-20090525.log

The system helped me to identify one bottleneck in slow generating pages, though with the help of the system author &lt;a href=&quot;http://www.rentacoder.com/RentACoder/SoftwareBuyers/InviteCoderToBid.asp?lngCoderPersonId=1242159&amp;txtFromURL=AId_1242159&quot; rel=&quot;nofollow&quot;&gt;Jiju&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p><a href="http://www.php-trivandrum.org/profile-sampler/?localfile=www.articleclick.com-20090525.log" rel="nofollow">http://www.php-trivandrum.org/profile-sampler/?localfile=www.articleclick.com-20090525.log</a></p>
<p>The system helped me to identify one bottleneck in slow generating pages, though with the help of the system author <a href="http://www.rentacoder.com/RentACoder/SoftwareBuyers/InviteCoderToBid.asp?lngCoderPersonId=1242159&amp;txtFromURL=AId_1242159" rel="nofollow">Jiju</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fernando Ipar</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-12898</link>
		<dc:creator>Fernando Ipar</dc:creator>
		<pubDate>Tue, 14 Apr 2009 14:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-12898</guid>
		<description>Hey there, 

Very interesting project. I&#039;m working on a lua script for mysql-proxy that has some overlapping functionality but requires the installation of (obviously) mysql-proxy. 

Your alternative is excellent for people working on the LAMP stack in shared hosting environments, where installation of non-standard software is usually impossible. 

Keep up the good work and let&#039;s keep an eye on each other!</description>
		<content:encoded><![CDATA[<p>Hey there, </p>
<p>Very interesting project. I&#8217;m working on a lua script for mysql-proxy that has some overlapping functionality but requires the installation of (obviously) mysql-proxy. </p>
<p>Your alternative is excellent for people working on the LAMP stack in shared hosting environments, where installation of non-standard software is usually impossible. </p>
<p>Keep up the good work and let&#8217;s keep an eye on each other!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

