Comments for Cesar D. Rodas http://cesarodas.com Cesar D. Rodas, web development. Technology news. PHP, MySQL, Apache, C, Bash, ASM Tue, 07 Oct 2008 13:49:53 +0000 http://wordpress.org/?v=2.1.1 Comment on PHP: optimizing the use of Arrays by Robert http://cesarodas.com/2007/09/php-optimizing-the-use-of-arrays.html#comment-749 Robert Thu, 31 Jan 2008 18:29:18 +0000 http://cesarodas.com/2007/09/php-optimizing-the-use-of-arrays.html#comment-749 Hey cesar, well...like Marcus, im going to beg you for something.... have you used Zend Framework ? pls! im getting crazy with this thing... ALl time i had been against this type of aplications, but now, i must learn it, because of work...but most tutorials out there are for phpseniors or something... im just an intermediate php programmer, so, thats why im asking you this,...pls if u have the time, check it out, its zend framework.... maybe a good step by step y en español estaria perfecto, pues no hay absolutamente nada bueno en español que te enseñe el camino. thanks and sorry for writting spanish, hehe hope you have the time for this Hey cesar, well…like Marcus, im going to beg you for something….

have you used Zend Framework ? pls! im getting crazy with this thing…

ALl time i had been against this type of aplications, but now, i must learn it, because of work…but most tutorials out there are for phpseniors or something…

im just an intermediate php programmer, so, thats why im asking you this,…pls if u have the time, check it out, its zend framework….

maybe a good step by step y en español estaria perfecto, pues no hay absolutamente nada bueno en español que te enseñe el camino.

thanks and sorry for writting spanish, hehe

hope you have the time for this

]]>
Comment on Database abstraction layer on PHP with cache by Risorse per programmatori http://cesarodas.com/2007/11/database-abstraction-layer-on-php-with-cache.html#comment-747 Risorse per programmatori Tue, 22 Jan 2008 21:50:46 +0000 http://cesarodas.com/2007/11/database-abstraction-layer-on-php-with-cache.html#comment-747 Very useful, thanks! Why don't you speak more about it? Very useful, thanks!
Why don’t you speak more about it?

]]>
Comment on PHP: implementing a heavy use of AJAX by felipe http://cesarodas.com/2007/07/php-implementing-a-heavy-use-of-ajax.html#comment-703 felipe Thu, 27 Dec 2007 20:35:33 +0000 http://cesarodas.com/2007/07/php-implementing-a-heavy-use-of-ajax.html#comment-703 Si César habla español, sería mejor que escribiera en español, antes que inglés, pues hay mucha documentación en inglés, mas los hispanos merecen acceder a la información más fácil para aprender mejor y superar el subdesarrollo en comunidad. Si César habla español, sería mejor que escribiera en español, antes que inglés, pues hay mucha documentación en inglés, mas los hispanos merecen acceder a la información más fácil para aprender mejor y superar el subdesarrollo en comunidad.

]]>
Comment on PHP: optimizing the use of Arrays by admin http://cesarodas.com/2007/09/php-optimizing-the-use-of-arrays.html#comment-692 admin Thu, 13 Dec 2007 16:11:59 +0000 http://cesarodas.com/2007/09/php-optimizing-the-use-of-arrays.html#comment-692 Hello Marcus Thank you for posting in my blog, I want to tell you that this blog will not be exclusive about PHP, I'll write here about networks and others things too, my php-blog is www.thyphp.com you in your feeds too. Also you see http://code.cesarodas.com/ which is my public repository of php-codes. And about your question, I don't user a plug, if you find one please let me know ;). Actually I copy all the output of "highlight_string" function in PHP (http://www.php.net/highlight_string). Regards! Hello Marcus

Thank you for posting in my blog, I want to tell you that this blog will not be exclusive about PHP, I’ll write here about networks and others things too, my php-blog is www.thyphp.com you in your feeds too.

Also you see http://code.cesarodas.com/ which is my public repository of php-codes.

And about your question, I don’t user a plug, if you find one please let me know ;). Actually I copy all the output of “highlight_string” function in PHP (http://www.php.net/highlight_string).

Regards!

]]>
Comment on PHP: optimizing the use of Arrays by Marcus Vinicius Bastos Leandro http://cesarodas.com/2007/09/php-optimizing-the-use-of-arrays.html#comment-691 Marcus Vinicius Bastos Leandro Thu, 13 Dec 2007 12:25:04 +0000 http://cesarodas.com/2007/09/php-optimizing-the-use-of-arrays.html#comment-691 Hello, I have subscribed your feeds! I very like your blog. Congratulations! I have one question. What plugin you are using to highlight the php codes? May you reply my question, please? Thank you! Hello,

I have subscribed your feeds! I very like your blog. Congratulations!

I have one question. What plugin you are using to highlight the php codes?

May you reply my question, please?

Thank you!

]]>
Comment on PHP: Amazon S3 Stream Wrapper by jim sloan http://cesarodas.com/2007/09/php-amazon-s3-stream-wrapper.html#comment-690 jim sloan Wed, 12 Dec 2007 23:05:39 +0000 http://cesarodas.com/2007/09/php-amazon-s3-stream-wrapper.html#comment-690 Thanks for a very practical demonstration of PHP streams. It was very easy to setup; within 10 minutes I was able to use it to do some mass deletes in an S3 bucket that I was cleaning up. I did run into an issue with special characters in the S3 filenames(Keys). The xml_set_character_data_handler() will fire off multiple times if the data contains certain characters. There is some discussion of it in the PHP manual. see: http://us3.php.net/xml_set_character_data_handler I followed the suggestion to append data until "_dirEnd" is called then add it to the array and unset the data. So now the callback functions look like this: /** * Use this to collect the data when parsing XML * @access private * @var string */ var $dataXML; /** * Handle end of XML tags * */ function _dirEnd(&$parser,&$name){ if ($this->actualTag=="KEY") $this->dirList[] = this->dataXML; unset($this->dataXML); unset($this->actualTag); } /** * Handle data of XML tags * * Save in an array when TAG == "KEY" */ function _dirData(&$parser,&$data){ if ($this->actualTag=="KEY") $this->dataXML .= $data; } Thanks for a very practical demonstration of PHP streams. It was very easy to setup; within 10 minutes I was able to use it to do some mass deletes in an S3 bucket that I was cleaning up.

I did run into an issue with special characters in the S3 filenames(Keys). The xml_set_character_data_handler() will fire off multiple times if the data contains certain characters. There is some discussion of it in the PHP manual. see: http://us3.php.net/xml_set_character_data_handler

I followed the suggestion to append data until “_dirEnd” is called then add it to the array and unset the data. So now the callback functions look like this:

/**
* Use this to collect the data when parsing XML
* @access private
* @var string
*/
var $dataXML;

/**
* Handle end of XML tags
*
*/
function _dirEnd(&$parser,&$name){
if ($this->actualTag==”KEY”) $this->dirList[] = this->dataXML;
unset($this->dataXML);
unset($this->actualTag);
}
/**
* Handle data of XML tags
*
* Save in an array when TAG == “KEY”
*/
function _dirData(&$parser,&$data){
if ($this->actualTag==”KEY”) $this->dataXML .= $data;
}

]]>
Comment on Database abstraction layer on PHP with cache by Robert http://cesarodas.com/2007/11/database-abstraction-layer-on-php-with-cache.html#comment-684 Robert Wed, 05 Dec 2007 16:25:12 +0000 http://cesarodas.com/2007/11/database-abstraction-layer-on-php-with-cache.html#comment-684 I've been looking over your abstraction layer because I'm interested in developing a similar cache system for a web site I run. I run PHP 5.2, MySQL 5.0 and wondered how something similar to your abstraction layer can be done taking advantage of MySQLi and MySQL 5.0 specifically. For example, MySQL > 5.0 allows prepared queries using two parameters in LIMIT. Any chance of us speaking about it? Email me if interested. Thanks!! I’ve been looking over your abstraction layer because I’m interested in developing a similar cache system for a web site I run.
I run PHP 5.2, MySQL 5.0 and wondered how something similar to your abstraction layer can be done taking advantage of MySQLi and MySQL 5.0 specifically. For example, MySQL > 5.0 allows prepared queries using two parameters in LIMIT.

Any chance of us speaking about it? Email me if interested.
Thanks!!

]]>
Comment on Getting recognition for write Free Software by search preference on yahoo http://cesarodas.com/2007/08/getting-recognition-for-write-free-software.html#comment-679 search preference on yahoo Sat, 01 Dec 2007 13:50:14 +0000 http://cesarodas.com/2007/08/getting-recognition-for-write-free-software.html#comment-679 <strong>'The good news is that...</strong> It's the classic David versus Goliath battle being played out in the 21st century. And it's no surprise that this... ‘The good news is that…

It’s the classic David versus Goliath battle being played out in the 21st century. And it’s no surprise that this…

]]>
Comment on PHP: optimizing the use of Arrays by Robin Speekenbrink http://cesarodas.com/2007/09/php-optimizing-the-use-of-arrays.html#comment-672 Robin Speekenbrink Thu, 29 Nov 2007 00:38:00 +0000 http://cesarodas.com/2007/09/php-optimizing-the-use-of-arrays.html#comment-672 for good coding purposes set the error_reporting to E_ALL and you probably would have catched the third example. (it would have given a warning about use a an assumed constant etc...) another (good) benchmark done: http://www.php.lt/benchmark/phpbench.php (quite usefull) and one last funny tip: $i++ is slower than ++$i Good luck! for good coding purposes set the error_reporting to E_ALL and you probably would have catched the third example. (it would have given a warning about use a an assumed constant etc…)

another (good) benchmark done: http://www.php.lt/benchmark/phpbench.php (quite usefull)

and one last funny tip: $i++ is slower than ++$i

Good luck!

]]>
Comment on PHP: Amazon S3 Stream Wrapper by Alan http://cesarodas.com/2007/09/php-amazon-s3-stream-wrapper.html#comment-671 Alan Sun, 25 Nov 2007 05:39:35 +0000 http://cesarodas.com/2007/09/php-amazon-s3-stream-wrapper.html#comment-671 This is great Caesar. I would like to use your code in my project, however, I am only able to use GNU licensed code. I am fully willing to give you full credit for it and will provide you with a link to the project. Would you be willing to dual license it under BSD & GNU? Alan This is great Caesar. I would like to use your code in my project, however, I am only able to use GNU licensed code. I am fully willing to give you full credit for it and will provide you with a link to the project.

Would you be willing to dual license it under BSD & GNU?

Alan

]]>