Looking for a small open-source PHP-DB app that utilize OOP.

Looking for a small open-source PHP-DB app that utilize OOP.

am 28.09.2007 03:44:31 von T K

------=_Part_4812_2540349.1190943871651
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,
For a study purpose, I'm looking for a small open source program that works
in PHP-MySQL. In particular, I would like to see some examples with PHP 5
and Object-Oriented Programming (such as class, objects, and so on).

I'm looking for a small program, possibly like blog, wiki, forum and so on.
I've downloaded several programs, but most of them don't use
classes/objects.

I'm using PHP without OOP, but recently set out to learn OOP.

Any suggestions would be appreciated.

Tek

------=_Part_4812_2540349.1190943871651--

RE: Looking for a small open-source PHP-DB app thatutilize OOP.

am 28.09.2007 04:14:32 von Bastien Koert

--_3dc57e58-3c9c-497f-8690-a9a0b5f14d9e_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


what about wordpress? you may also want to look at some of the code generat=
ors
=20
bastien> Date: Fri, 28 Sep 2007 10:44:31 +0900> From: tek.katu@gmail.com> T=
o: php-db@lists.php.net> Subject: [PHP-DB] Looking for a small open-source =
PHP-DB app that utilize OOP.> > Hi,> For a study purpose, I'm looking for a=
small open source program that works> in PHP-MySQL. In particular, I would=
like to see some examples with PHP 5> and Object-Oriented Programming (suc=
h as class, objects, and so on).> > I'm looking for a small program, possib=
ly like blog, wiki, forum and so on.> I've downloaded several programs, but=
most of them don't use> classes/objects.> > I'm using PHP without OOP, but=
recently set out to learn OOP.> > Any suggestions would be appreciated.> >=
Tek
____________________________________________________________ _____
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx=

--_3dc57e58-3c9c-497f-8690-a9a0b5f14d9e_--

Re: Looking for a small open-source PHP-DB app that utilize OOP.

am 28.09.2007 20:21:03 von Jason Gerfen

Well some resources for learning it first as these are usually the best
source of information:

Tutorials:
http://www.phpfreaks.com/tutorials.php
http://www.php-editors.com/articles/simple_php_classes.php

Examples:
http://www.phpclasses.org

I really recomend reading and following these as it will undoubtably
help with learning OOP with PHP/MySQL.

As a simple example here is a class, functions and how to use:

// class.inc.php
class TestOOP
{
function ChkPHPFuncs( $function_name )
{
if( empty( $function_name ) ) {
return 1;
} else {
if( !function_exists( $function_name ) ) {
return 1;
} else {
return 0;
}
}
}
}
?>

To use within a script:
//include our class file so lib is available
include 'class.inc.php';

// check for mcrypt functions compiled with php
$list = array( 'mcrypt_cbc', 'mcrypt_cfb', 'mcrypt_create_iv',
'mcrypt_decrypt', 'mcrypt_ecb', 'mcrypt_encrypt' );

// initialize class file so we may use functions from that class
$x = new TestOOP();

//now use $x as our handle for any function from within class file
for( $i = 0; $i < count( $list ); $i++ ) {
echo $x->chkPHPFuncs( $list[$i] );
}
?>

Also here are some resources from PHP.net for reference:
http://us3.php.net/zend-engine-2.php
http://www.php.net/oop

HTH
Jas


T K wrote:
> Hi,
> For a study purpose, I'm looking for a small open source program that works
> in PHP-MySQL. In particular, I would like to see some examples with PHP 5
> and Object-Oriented Programming (such as class, objects, and so on).
>
> I'm looking for a small program, possibly like blog, wiki, forum and so on.
> I've downloaded several programs, but most of them don't use
> classes/objects.
>
> I'm using PHP without OOP, but recently set out to learn OOP.
>
> Any suggestions would be appreciated.
>
> Tek
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Looking for a small open-source PHP-DB app that utilizeOOP.

am 29.09.2007 04:10:04 von leo.divinagraciaiii

check out UCCASS. not only oop, but smarty as well...

http://www.bigredspark.com/survey.html

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Looking for a small open-source PHP-DB app that utilize OOP.

am 29.09.2007 09:07:21 von T K

------=_Part_6763_807209.1191049641214
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanks all. Looks like some tutorials and the survey system look a very good
start to me.
Especially the code of UCCASS looks very readable.

Thanks a bunch.

>

------=_Part_6763_807209.1191049641214--