[PHP] parsing question ('010.000.080.001' == `10.0.80.1`) how to be 'true'?

2004-04-08 Thread Galkov Vladimir
Two tables have diferent standarts to hold IP adresses: first: 045.012.001.002 003.000.123.231 123.230.101.080 second: 45.12.1.2 3.0.123.231 123.230.101.80 I have to compare the data and stack there .. my fantasy can't help me write regular expresion to parse first format into second or second

[PHP] Re: server side games question

2001-11-13 Thread Galkov Vladimir
Good day! Some time ago I tried to create game server for games on line(people with people)... poker, preferance, chess and so on well as I was wery new in this action I tried diferent languages and even operation systems. At last (for some hawy rezons :-) ) I stoped on Client-Server

[PHP] Re: Help me to win the battle with browser's cache

2001-11-12 Thread Galkov Vladimir
Good time of a day! Hello Alex! META content=no-cache http-equiv=Pragma may be? but if you use $PHP_AUTH_USER, $PHP_AUTH_PW i don't see simple way if you check password every time page reqwesting... may be try to check password from temp file/table (just a miror of original). On login place

[PHP] Re: Using PHP for directory indexing

2001-11-12 Thread Galkov Vladimir
Hi! Kevin! Try this... :-) have a nica day! ? // this is qw.php // is incoming parametr $catalog; // there can be better way to protect filesystem // directory where operations aloved define(START_PATH, named); $catalog = eregi_replace('([/]{2,})|([./]{2,})|([/.]{2,})', '/',

[PHP] Re: Using PHP for directory indexing

2001-11-12 Thread Galkov Vladimir
line print 'a href=qw.php?pather='.START_PATH.$catalog./.$filenames[$i].''.$filenames[$ i].'/a/td'; change on print 'a href='.START_PATH.$catalog./.$filenames[$i].''.$filenames[$i].'/a/td' ; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] how do the thing?

2001-11-11 Thread Galkov Vladimir
Good time of a day! well... as for me the construction... switch($action) { case ... .. } ...is not very elegant when number of cases over 40-60 or more and the only thing they must do is start one function (often with the same name). for example:

[PHP] how about walking another way?

2001-11-04 Thread Galkov Vladimir
Good time of a day! Very strange... the code you place here works good (if forget one '=' ). I thinck you have to chek what you have in $name, $MYPATH, $MYPATH/admin.php... by the way what error you have? not such file? ... or somth special?... If still not working. (vay;-))) )

[PHP] Re: Passing many valaues to function

2001-11-03 Thread Galkov Vladimir
$HTTP_ENV_VARS $HTTP_SESSION_VARS $HTTP_SERVER_VARS This arrays store different types of varbles used during script's work. I never use this method to access to vars... so can't give 100% correct advice. just a way... read about using this arrays. Galkov Vladimir -- PHP General Mailing List (http

[PHP] Re: passing variables between pages without using url??

2001-11-03 Thread Galkov Vladimir
may be you find accepteble usint input name=id value=? print $id? type=HIDDEN ??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: Running 1 more script inside

2001-11-03 Thread Galkov Vladimir
will work as one program but realy be different files? Galkov Vladimir [EMAIL PROTECTED] ICQ 84873967 Daniel Harik [EMAIL PROTECTED] ïèøåò â ñîîáùåíèè:[EMAIL PROTECTED] Hello Thank you for your prevoius replies I have 1 main php and 1 chil, i was wondreing how can i execute that child php file from

[PHP] regular expression

2001-11-01 Thread Galkov Vladimir
Need to remove all ../ /.. from user inputing string to prevent him walking and creating filesdirectories where I don't whant see them/him... The string: $path = eregi_replace('([..]{2,})|([./]{2})|([../]{3,})|([/.]{2})|([/..]{3})', '', $path); works good with any combinations (

[PHP] Yes you can........ but....

2001-11-01 Thread Galkov Vladimir
Yes you can... Ifif I rightly understand you only well... you whant submit information without clicking submit button? .. well then you have to imagine any suported event or use meta tag.. One problrm I don't use VB script Way one... ( this is example of 100% stupid code ...

[PHP] Re: Dynamic update of content

2001-10-31 Thread Galkov Vladimir
! --- Galkov Vladimir [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] does array sorted like you show in example?

2001-10-30 Thread Galkov Vladimir
Galkov Vladimir [EMAIL PROTECTED] ICQ 84873967 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: does array sorted like you show in example?

2001-10-30 Thread Galkov Vladimir
Good day! my fingersrun faster my head ;-) ofcourse... MUST be (not in one string...) function array_element_delete_function($a, $ind) { $a[$ind] = $a[0]; unset($a[0]); sort($a); // return $a; // } - Galkov Vladimir [EMAIL PROTECTED] ICQ 8487396 -- PHP General