Matrix programming
am 23.09.2008 19:28:29 von joefazee
------=_Part_10277_7747647.1222190909166
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I need to do some stuff on MLM system so i will be using matrix caculation,
i need a tutorial on it.
On 9/23/08, Micah Gersten wrote:
>
> Only is register_globals is on can that reset a variable. You are
> correct though, defining directory paths is safer.
>
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com
>
>
>
> Joseph Crawford wrote:
> > read up on register_globals. It is a security risk because if i do
> > http://domain.com/file.php?plugins_directory=/directory/
> >
> > it can reset your variable.
> >
> > the best way to do that is to make PLUGINS_DIR a constant
> >
> > define('PLUGINS_DIR', '/directory/');
> >
> > Joseph Crawford
> >
> > On Sep 23, 2008, at 12:58 PM, michael wrote:
> >
> >> I get an error stating that this line in my code is a security risk
> >> when I code it.
> >>
> >> require_once($PLUGINS_DIRECTORY."forum/forum.php");
> >>
> >> here is what the explanation is:
> >>
> >> include() or analogous is used with variable argument this can be
> >> dangerous since variables are in many cases controlled by remote users.
> >>
> >> the recommended soloution is to write it this way
> >>
> >> define('SCRIPT_PATH',"/htdocs");
> >> include ('sSCRIPT_PATH."/Foo.inc");
> >>
> >> my question is why is the other way safer? im kinda confused..
> >>
> >>
> >>
> >> --
> >> PHP Database Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >
> >
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
I develop dynamic website with PHP & MySql, Let me know about your site
------=_Part_10277_7747647.1222190909166--
Re: Matrix programming
am 23.09.2008 22:31:12 von Yves Sucaet
Do you mean multi level marketing? What kind of matrix calculations? What=
sort
of data do the matrices include?
And what does this have to do with databases? Do you need to store matrix=
data
in your db?
------ Original Message ------
Received: Tue, 23 Sep 2008 12:29:40 PM CDT
From: "A. Joseph"
To: "Micah Gersten" Cc: "php list"
et>
Subject: [PHP-DB] Matrix programming
I need to do some stuff on MLM system so i will be using matrix caculatio=
n,
i need a tutorial on it.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Matrix programming
am 23.09.2008 23:17:17 von Yves Sucaet
You don't need a matrix for parent-child relations, you need a tree. Try
getting a copy of Joe Celko's book. It's pretty much the bible on recursi=
ve
SQL as I understand it:
http://www.amazon.com/Hierarchies-Smarties-Kaufmann-Manageme nt-Systems/dp=
/1558609202/
hth,
Yves
------ Original Message ------
Received: Tue, 23 Sep 2008 04:09:30 PM CDT
From: "A. Joseph"
To: "YVES SUCAET"
Subject: Re: [PHP-DB] Matrix programming
LIKE..
remember every child is also parent
parent on level 0 earn 5% of each fee paid by left leg downline
earn 3% of each fee paid by right leg downline
parent on level 1 earn $5
parent on level2 earn $4
after this first deal
another deal started from level 1
Now what take the parent to those levels?
parent bring 3 Ps, each 3 Ps bring 3 Es. parent move to level 0
3 Es bring 3 Fs and 3 Fs bring 3 Gs each. parent move to level 1
remember 3 Ps will now move to level 0, when parent move to level 1
something like that, i want to learn how to code it myself.
if matrix caculation is a wrong terms for this, then i`m sorry.
On 9/23/08, YVES SUCAET wrote:
>
> I don't quite see where the matrix-calculations come in.
>
> ------ Original Message ------
> Received: Tue, 23 Sep 2008 03:41:51 PM CDT
> From: "A. Joseph"
> To: "YVES SUCAET"
> Subject: Re: [PHP-DB] Matrix programming
>
> Multi level marketing, data will be arranged in hierarchical structure,=
the
> system will need to auto pay when user get to some level or have specif=
ic
> amount if people under him/she, I think u understand how MLM works?
>
>
>
> Thank u
>
>
> On 9/23/08, YVES SUCAET wrote:
> >
> > Do you mean multi level marketing? What kind of matrix calculations? =
What
> > sort
> > of data do the matrices include?
> >
> > And what does this have to do with databases? Do you need to store ma=
trix
> > data
> > in your db?
> >
> > ------ Original Message ------
> > Received: Tue, 23 Sep 2008 12:29:40 PM CDT
> > From: "A. Joseph"
> > To: "Micah Gersten" Cc: "php list" <
> > php-db@lists.php.net>
> > Subject: [PHP-DB] Matrix programming
> >
> > I need to do some stuff on MLM system so i will be using matrix
> caculation,
> > i need a tutorial on it.
> >
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> I develop dynamic website with PHP & MySql, Let me know about your site=
>
>
>
>
>
-- =
I develop dynamic website with PHP & MySql, Let me know about your site
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php