Re: [PHP] eating mySQL result rows 1 by 1.. a better way?

2002-03-21 Thread Joffrey van Wageningen
er of rows to return: mysql> select * from table LIMIT 5; # Retrieve first 5 rows In other words, LIMIT n is equivalent to LIMIT 0,n. Rod Kreisler wrote a nice article on Building Next/Prev Buttons for Query Results: http://www.phpbuilder.com/columns/rod20001214.php3 hope it helps :) mvgr, Jof

Re: [PHP] Compiled php again but running still old php version

2002-02-26 Thread Joffrey van Wageningen
make and a make install in your apache sourcetree and restart apache using apachectl with kind regards, Joffrey van Wageningen -- .-[ Joffrey van Wageningen | WoLFjuh | [EMAIL PROTECTED] ]-- | Networking Event 2000 - www.ne2000.nl - IRCnet:#ne2000, Undernet:#clue | PGP:1024D/C6BA5

Re: [PHP] storing arrays

2002-02-17 Thread Joffrey van Wageningen
, "third", "fourht"); $filearray = file("/my/file"); for($x = 0; $x < count($filearray); $x++) $newfilearray[$keys[$x]] = $filearray[$x]; $filearray = $newfilearray; i think only a write version of file could be a useful function for php... mvgr, Jof

Re: [PHP] Looking for optimal coding

2002-02-15 Thread Joffrey van Wageningen
If the first one is valid then do not check for the other. > > Get what I mean? > Any expert programmers out there with the way to chop this even further? test it :) mvgr, Joffrey van Wageningen -- .-[ Joffrey van Wageningen | WoLFjuh | [EMAIL PROTECTED] ]-- | Networking E

Re: [PHP] Decode Encoded text in phpMyAdmin

2002-02-14 Thread Joffrey van Wageningen
me, no way back... md5 is used to make a sum of a load of data and compared by a second sum to see if the data matches (like passwords or file integrety) if you want 7bit encoding try base64_encoding and _decoding hope you can have a good night sleep :) mvgr, Joffrey van Wageningen --

Re: [PHP] how to specify custom http header in fopen("http://...",...)

2002-01-29 Thread Joffrey van Wageningen
der request, I can have a (much) smaller network traffic. > > My question: how can I specify a custom HTTP header > in the fopen("http://...";,...) function ??? i think the best way is to use http://www.php.net/manual/en/function.fsockopen.php and send your your own headers.

Re: [PHP] Prev Next Buttons

2002-01-22 Thread Joffrey van Wageningen
phpbuilder has a good article on prev&next buttons, the code is based on mysql but take a look at the mysql & odbc functions... view, compare and adjust to your needs: http://www.phpbuilder.com/columns/rod20001214.php3 with kind regards, Joffrey van Wageningen ne2000.nl - Original

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Joffrey van Wageningen
is a little to bloated[1] for a simple solution for a realtime chat :) /me is taking a extra jolt on ircg :) Joffrey van Wageningen ne2000.nl -- [1] bloat·ed (bltd) adj. 1.. Much bigger than desired: a bloated bureaucracy; a bloated budget. 2.. Medicine. Swollen or distended beyond normal size

Re: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Joffrey van Wageningen
t;; foreach($arr as $key => $val) { if($c) echo ", "; if(is_array($key)) displayarr($key); else echo "\"".$key."\" => "; if(is_array($val)) displayarr($val); else echo "\"".$val."\&

[PHP] PHP Chat REALTIME

2002-01-22 Thread Joffrey van Wageningen
i forgot to mention in my last code sniplet: just run the script (maybe touch a new file in /tmp and give it readwrite rights)... you will have a run for 30 seconds (the php timeout) if you want to add a line edit the file manualy or use the sniplet: sniplet.php?new=mynewline :) -- PHP Gene

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Joffrey van Wageningen
end a notice to the webserver the client recieved the line... but thats a choice by the designer of a specific system, every chat has his own needs of connection integrety. hope my 5 euro cents help... :) Joffrey van Wageningen ne2000.nl -- 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]

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Joffrey van Wageningen
vascript to move the data from the http stream window to the display window * a db backend and maybe a check (with the post, or the refresh) which lines have been received by the client * a cute design :) with kind regards, Joffrey van Wageningen ne2000.nl

[PHP] unsetting a session

2001-11-26 Thread Joffrey van Wageningen
hi all, i need to unset a session cookie, i foud out header("Set-Cookie:"); does not work for a php session (http://bugs.php.net/bug.php?id=14227) request for clue... with kind regards, Joffrey van Wageningen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

Re: [PHP] Redeclare a Function

2001-11-14 Thread Joffrey van Wageningen
i recon this is a way too, the website does not support to much information about how to use a tool like APD. create_function is a php native function so support, stability and usability is much greater than a 3rd party Zend Extention in early beta :) with kind regards, Joffrey van Wageningen

Re: [PHP] Redeclare a Function

2001-11-13 Thread Joffrey van Wageningen
to create array's of functions :) try it :P with kind regards, Joffrey van Wageningen On Tue, 13 Nov 2001, Andrey Hristov wrote: > I think it's not possible. > > Andrey Hristov > IcyGEN Corporation > http://www.icygen.com > BALANCED SOLUTIONS > > >

Re: [PHP] get names of vars $HTTP_POST_VARS?

2001-11-09 Thread Joffrey van Wageningen
a great way to debug things like this is to use var_dump or print_r... http://www.php.net/manual/en/function.var-dump.php http://www.php.net/manual/en/function.print-r.php short and simple :) with kind regards, Joffrey van Wageningen On Fri, 9 Nov 2001, Hidayet Dogan wrote: > Or ot