[PHP] Re: [PHP-DB] sessions in PHP

2001-09-24 Thread Andrey Hristov
Look @ http://www.phpbuilder.com There is/are article(s) about sessions.   Andrey Hristov - Original Message - From: "nirat" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 8:46 AM Subject: [PHP-DB] sessions in PHP > can

[PHP] Feature?

2001-09-25 Thread Andrey Hristov
'); function foo($par1=1,$par2=2,$par3=3,$par4='foo_bar',...){ ... } In the case when I've few parameters I've to remember their order, so why not $bar=foo('par2'=>10); I want to pass value to only one or more but not to all params. Also this will make the cod

Re: [PHP] class name in static functions

2001-09-25 Thread Andrey Hristov
Set internal member variable $class_name='CSomeClass'; The call is for example print CSomeClass::class_name; I'm not sure whether this works 100% but I think it works. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From:

Re: [PHP] Feature?

2001-09-25 Thread Andrey Hristov
what I have to do? Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 1:14 PM Subject: Re: [PHP] Feature? > On Tue, 2

Re: [PHP] Image location question.

2001-09-25 Thread Andrey Hristov
You have to have one script for the page and one which serves the image. Also it's possible to use just one script by using GET but this is a mess some_script.php: ... get_image.php: Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLU

Re: [PHP] Can I rely on session.gc_maxlifetime?

2001-09-25 Thread Andrey Hristov
New SESSID will be generated because the old expired and because all rely on the SESSID which is the "hash key" to the data no previous data will be available. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Arpad

Re: [PHP] Accessing lots of variables

2001-09-25 Thread Andrey Hristov
for ($i=1;$i<36;$i++){ if (${"link".$i}){ //it's real }else{ // none } } Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Jordan Elver" <[EMAIL PROTECTED]> To: "PHP General

Re: [PHP] Getting my head around nulls.

2001-09-25 Thread Andrey Hristov
SELECT * from some_table WHERE some_field IS NULL; Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 4:09 PM

Re: [PHP] public and private parts in classes ?

2001-09-25 Thread Andrey Hristov
PHP Classes are not so powerful as C++. No there is no division ot private and public or protected. All is public but good technique is to name methods you prefer to be private with a underbar at the start. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS

Re: [PHP] public and private parts in classes ?

2001-09-25 Thread Andrey Hristov
Hmmm, Original: $_this->foo = "bar"; I think that it must be: $this->_foo = "bar"; Have fun. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Nick Winfield" <[EMAIL PROTECTED]> To: &l

Re: [PHP] public and private parts in classes ?

2001-09-25 Thread Andrey Hristov
class Test { function Test() { $_this->foo = "bar"; } } $n = new Test; echo "foo: " . $n->foo."\n"; var_dump($n); returns : foo: object(test)(0) { } So there is no member variable which you meant to be private in the instance $n of class Te

Re: [PHP] Linking data from a different site and server

2001-09-25 Thread Andrey Hristov
the content to the another page on the other server, also you can parse it to make modifications. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Sheni R. Meledath" <[EMAIL PROTECTED]> To: "PHP Masters" <

Fw: [PHP] Feature?

2001-09-26 Thread Andrey Hristov
Let this be last message in the thread. Thanks for the examples! I'll wait for PHP5. There is a possibility that this feature will be in. Have fun Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS > - Original Message - > From: <[EMAIL PR

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Andrey Hristov
On Friday 05 October 2001 18:10, you wrote: > Use crypt()/decrypt() couple. > > Andrey Hristov > IcyGEN Corporation > BUILDING SOLUTIONS > http://www.icygen.com > > On Friday 05 October 2001 17:53, you wrote: > > Here are some simple xor encoding functions that I

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Andrey Hristov
ooops , sorry On Friday 05 October 2001 18:48, you wrote: > > On Friday 05 October 2001 18:10, you wrote: > > > Use crypt()/decrypt() couple. > > > > > > Andrey Hristov > > From the PHP doumentation on crypt: > > There is no decrypt function, since

Re: [PHP] Paging through MySQL results

2001-10-05 Thread Andrey Hristov
select * from some_table Limit 10,30; syntaxis limit , Andrey Hristov IcyGEN Corporation Building Solutions On Friday 05 October 2001 18:52, you wrote: > I am a bit new to PHP -- normally use ASP (no booing, please) -- and trying > to find an elegant solution to paging x number of record

[PHP] Re: [PHP-DB] Auto_increment field size (was: Howto make a double LEFT JOIN)

2001-10-05 Thread Andrey Hristov
select first.*,second.*,third.* from first left join second using(for_key_first_second) left join third using(for_key_2_3); On Friday 05 October 2001 18:50, you wrote: > Hello, > > > you can always reset the auto_increment value (I think that is as simlple > > as > > > "set insert_id=1;" but you

[PHP] Fancy thing.

2001-10-05 Thread Andrey Hristov
After getting the PHP source from the CVS and compiling I tested with phpinfo(). The result was amazing : ===cutted= http://www.php.net/";>PHP Version 4.0.8-dev ===cutted= -- Andrey Hristov IcyGEN Corporation BALANCED SOLUTIONS http://www.ic

Re: [PHP] Ip Blocking

2001-10-05 Thread Andrey Hristov
are equivalent. from_ip and to_ip gives you range. Andrey Hristov IcyGEN Corporation BALANCED SOLUTIONS http://www.icygen.com ; On Friday 05 October 2001 21:12, you wrote: > What would be the most effective way to create blocking of users by ip > using mysql. In such as way that the "blocking

Re: [PHP] preg_replace

2001-10-05 Thread Andrey Hristov
Escape the [] with \. $pattern='\[find\]'; echo preg_replace("/$pattern/","[find]"); Andrey Hristov IcyGEN Corporation BALANCED SOLUTIONS http://www.icygen.com On Friday 05 October 2001 21:17, you wrote: > Hello! > > I just want to replace a string with

Re: [PHP] Php encoder or compile

2001-10-05 Thread Andrey Hristov
Yes there is php encoder available but it is not free -> go to http://www.zend.com whers Open Software meets eBussiness. Also there si phpcompiler. I didn't tested it. Go to google.com and try to find "phpcompiler.zip" sooner you will find it but be patient. Andrey Hristov

<    1   2   3   4