[PHP] domain.org/?page=pageName method

2004-03-06 Thread Barýþ
A general thing to do while coding a site is to include header.php at the top of the file (and footer.php at the end of file). Another method is to put these header and footer files together in index.php and including the desired page between them. We get the desired page from the query string: dom

Re: [PHP] algorythm question

2002-09-23 Thread Barýþ
ok, now it's clear why i must use '|' instead of '+'. i still couldn't get what happens with bits but you don't have to explain more. i know that it's about bitwise operators, and how they handle numbers. no! ok! i just got it! thank you again. --- bob parker <[EMAIL PROTECTED]> wrote: > Coupl

Re: [PHP] algorythm question

2002-09-22 Thread Barýþ
oh my god. here is an example. $userLevels = array( 1 => 'Member', 2 => 'Admin', 4 => 'Writer', 8 => 'Expert'); $cat = 15; for ($mask=1; $mask <= 64; $mask *= 2) { if ( $mask & $cat ) { print "Yes $mas

[PHP] algorythm question

2002-09-21 Thread Barýþ
consider there are categories and these have IDs like below: 1, 2, 4, 8, 16, 32, 64... if some data belongs to more than 1 category for exemple 4 and 32, its category ID will be 36, the sum of cat. IDs. i guess this is used widely in programming. so, how can i resolve the original IDs. i mean wh

Re: [PHP] PHP and OOP

2002-06-28 Thread Barýþ
"Jesper Brunholm" <[EMAIL PROTECTED]> wrote: "Do you have any documentation on this? - I'm getting quite used to read and hear the very opposite." i downloaded several docs on the net about slow execution when classes are used, but sorry, i'm on a public-shared computer now and can't reach t

[PHP] PHP and OOP

2002-06-27 Thread Barýþ
i want to build a site in fully OO style but that will significantly slow down execution time and i'm about to make a u turn to procedural PHP programming on my project. that article is responsible of changing my decision: http://zend.com/zend/art/mistake1.php#Heading13 besides it will be mor

Re: [PHP] include through HTTP

2002-04-13 Thread Barýþ
file.php does more than one jobs depending on HTTP_GET_VARS. for example if "..?mod=show" or it is empty it shows things, elseif "..?mod=update" it updates... so i must send a variable to the included file but i can't do it in the file that includes it. The file that includes file.php is a templa

RE: [PHP] include through HTTP

2002-04-12 Thread Barýþ
nd > require() statements on > Windows." > > Robert W. Collins II > Webmaster > New Orleans Regional Transit Authority > Phone : (504) 248-3826 > Email : [EMAIL PROTECTED] > > > > -Original Message- > From: Barýþ" Mert [mailto:[EMAIL PRO

[PHP] include through HTTP

2002-04-12 Thread Barýþ
What i want to do is : include("http://localhost/folder/file.php?foo=bar";); but it doesn't work. As you may guess it looks for a file called "file.php?foo=bar". "url_fopen" is set to "on" in my php.ini file as told in the PHP manual. I work on win98+apache+php4.1.1(or something like that but at l