me looking so small in this world

19 2008f June, 2008

DHH on PHP

Filed under: php, rails — rudyegenias @ 8:30 am

src: http://www.loudthinking.com/posts/23-the-immediacy-of-php

Even David Heinemeier Hansson himself talks about using PHP.

30 2007f October, 2007

40 ways to optimize php code

Filed under: php — rudyegenias @ 1:23 pm

28 2007f September, 2007

how to change phpmyadmin theme

Filed under: php, phpmyadmin, xampp — rudyegenias @ 4:33 am

I just don’t want the default theme that came in with PHPMyAdmin they are huge and my eyes hurt when I look at them. If you are like me that doesn’t want to take extra step to develop themes and just want to have it appear smaller then this procedure is for you.

Enjoy!

20 2007f May, 2007

resetting the auto_increment field in mysql

Filed under: mysql, php — rudyegenias @ 1:38 pm

Oftentimes one needs to test web application to see if it works. But during those times one doesn’t have to retain all of the test data and after you delete the test data the auto_increment field(mostly id’s) don’t reset itself.

Here is a way to reset the auto_increment column in your mysql database:

alter table account auto_increment=4;

Guessing that I have 3 accounts I wanted to retain.

find the next auto_increment number in mysql

Filed under: mysql, php, phpmyadmin — rudyegenias @ 1:34 pm

Finding the next auto_increment is easy on phpmyadmin. Just select your database from the left side dropdown box. Then select the table on the lower part of it. Then click structure.

But what if it’s in mysql? or in PHP?
In PHP:

<?
$tablename         = “tablename”;
$next_increment     = 0;
$qShowStatus         = “SHOW TABLE STATUS LIKE ‘$tablename’”;
$qShowStatusResult     = mysql_query($qShowStatus) or die ( “Query failed: ” . mysql_error() . “<br/>” . $qShowStatus );

$row = mysql_fetch_assoc($qShowStatusResult);
$next_increment = $row['Auto_increment'];

echo “next increment number: [$next_increment]“;
?>

source: http://blog.jamiedoris.com/geek/560/

In MySQL prompt:

SHOW TABLE STATUS LIKE ‘tablename’;

30 2007f March, 2007

php mysql interview questions and answers

Filed under: php — rudyegenias @ 2:55 pm

See:

PHP-MySQL Interview Question « Boolean Dreams

nailed around 95% of the questions without looking for answers. Helpful so go and read.

Powered by ScribeFire.

28 2007f March, 2007

my first dip onto cake

Filed under: CakePHP, php — rudyegenias @ 3:30 pm

21 things I learned about CakePHP – Avatar Financial Group

Few days ago I have been experimenting about PHP frameworks that would be the best candidate for my projects. After CodeIgniter CakePHP comes in second for the test. Have read this blog and will soon be posting all my notes on this.

Powered by ScribeFire.

7 2007f February, 2007

PHP 6

Filed under: php — rudyegenias @ 2:32 pm

Minutes PHP Developers Meeting

Got this link from my friend who befriends google always. It talks about the next PHP release.

powered by performancing firefox

8 2006f November, 2006

notable security blogs in php and mysql

Filed under: php — rudyegenias @ 4:10 pm

Been an avid fan of Chris’ blog at shiflett.org here is one of my favorite.

http://shiflett.org/archive/255

11 2006f September, 2006

top two php security practises

Filed under: php — rudyegenias @ 3:51 am

filter input
escape output

These two security patches has been devised by Chris Shiflett  and can be found here. Generally these are the basic security measures one can take to provide the most common attack a stop on php applications.

Next Page »

Blog at WordPress.com.