[PHP-DEV] database select

2003-02-16 Thread Hans Prins
Hello, Im trying to select only one row in a mysql database (in this case a poll with the smallest pollID)... Each row has a field called "pollID" which is the primary key and is auto incremented when a new row is inserted. I could possible do the following but I think its a bit extensive

Re: [PHP-DEV] session security

2003-02-11 Thread Hans Prins
Thx guys, I'll play around with it some more and see if I can secure it some more :) Hans Prins "Keyser Soze" <[EMAIL PROTECTED]> schreef in bericht 009201c2d1cd$ec7cd4e0$81aed2c8@keysersoze">news:009201c2d1cd$ec7cd4e0$81aed2c8@keysersoze... > There's a

[PHP-DEV] session security

2003-02-10 Thread Hans Prins
appended to the url and it gave full access. Can anyone point me to a possible solution for this? Thank you, Hans Prins [EMAIL PROTECTED] -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: cleaning/building just one extension

2002-12-12 Thread Hans Zaunere
eed to consider, and what variables would I need to accomodate? Initially, I see that Apache/Apache2->MPM is a big one. = Hans Zaunere New York PHP http://nyphp.org [EMAIL PROTECTED] -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Compiling Extensions for Thread-Safety=1 and phpize

2002-12-11 Thread Hans Zaunere
as thread-safe, would be appreciated. [ The fact that an extension is truely thread-safe or not, I realize is entirely different - I'm speaking of thread-safety=1 as a PHP check ] Thank you much, = Hans Zaunere New York PHP http://nyphp.org [EMAIL PROTECTED] -- PHP Development Ma

[PHP-DEV] auto_prepend_file Revisited

2002-10-23 Thread Hans Zaunere
implement I'd imagine, would be to allow auto_prepend_file to take multiple files (deliminated by a colon, for instance), with PHP including each in listed sequence. While not as elegant as the previous solution, this should be doable, no? Any feedback appreciated, = Hans Zaunere N

Re: [PHP-DEV] Idea to extend language: Explicitly setting variable scope inside user defined function (longer)

2002-10-21 Thread Hans Zaunere
a "super-global". Sure, I can stick it in one of the predefined super-globals, but that just seems wrong. Something like: super $avar; would be very useful for large projects and wouldn't cause a lot of harm otherwise. Hans > > > Marco > > On Sun, 2002-10-20 at

[PHP-DEV] Binary Safety, Sockets and Raw sockets

2002-09-20 Thread Hans Zaunere
e in_cksum() function and just couldn't get very far. Any ideas/tips on this? A clean, but at the same time low-level/raw socket interface I think would be extremely useful and I'd like to help in any way I can. Thanks! Hans __ Do you

[PHP-DEV] Quality of this list

2002-06-04 Thread Hans Rakers
so. It's not just my development-related questions on this list that go unanswered. I don't want to bitch about too much, but as a lurker and occasional question-asker on this list its just something i noticed lately. With regards, Hans Rakers -- PHP Development Mailing List <ht

[PHP-DEV] Problems with memory limit code and memory leaks in scripts

2002-06-03 Thread Hans Rakers
lem temporarily by adding a AG(allocated_memory) = 0 line to mod_php4.c in function send_parsed_php(), though i'm not sure if this is the right thing to do. For now it fixes the memory exhausts. I am interested in hearing your views on this matter. With regards, Hans Rakers -- Hans R

Re: [PHP-DEV] Getting a remote IP address

2002-06-01 Thread Hans Spath
At 01.06.2002 21:44 +0200, Vergoz Michael wrote: >please to not ask this question on this list. > >print($REMOTE_ADDR); Bad idea, won't work with register_globals=off. Instead do it this way: echo $_SERVER['REMOTE_ADDR']; or echo $HTTP_SERVER_VARS['REMOTE_ADDR'

[PHP-DEV] Memory usage of a running script. 2 methods, 2 different results

2002-05-26 Thread Hans Rakers
it. Thanks in advance. With kind regards, Hans Rakers Parse BV, the Netherlands -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Need help with the build system

2002-05-23 Thread Hans Rakers
Thats it! Downgraded to autoconf-2.13 and works like a charm now. Finally i can get to coding :) Thanks, Hans At 21:14 23-5-2002 +0200, you wrote: > 2.5x version proved to do not work well with the build > system. Try 2.13 for a start. > > - Markus > >On Thu, May

Re: [PHP-DEV] Need help with the build system

2002-05-23 Thread Hans Rakers
Sorry for replying to my own message, but i realized i may have provided too little info about my setup. Im using Slackware 8.0 with kernel 2.4.18 autoconf (GNU Autoconf) 2.50 automake (GNU automake) 1.4-p4 ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18) Thanks, Hans At 15:26 23-5

[PHP-DEV] Need help with the build system

2002-05-23 Thread Hans Rakers
l. Can anyone tell me whats going wrong here? Thanks in advance, Hans Rakers Parse BV, the Netherlands -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: unset($_SESSION[...]) vs. register_globals=On

2002-02-27 Thread Hans Spath
Yasuo Ohgaki wrote: >Hans Spath wrote: > >>When register_globals is enabled, you can't unregister session variables >>via unset($_SESSION['varname']). How are php coders supposed to write >>clean code with that new autoglobal variable, when they have to

[PHP-DEV] unset($_SESSION[...]) vs. register_globals=On

2002-02-27 Thread Hans Spath
x27;ve written a bug report (#15551) which was classified as 'Bogus'. I don't think ignoring that problem is a good solution, so please review that bug report. Thanks. - Hans Spath -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Curl and PHP_CURL_RETURN wrong behavior

2002-02-08 Thread Hans-Jürgen Petrich
t php return 1 (RETURN_TRUE) in such situation. I have write a small (and perhaps dirty) hack witch will fix this. Perhaps the author of curl.c can update curl.c in the CVS to avoid the wrong return value Thank u, PHP is great. Hans-Juergen Petrich /* curl.c */ /* {{{ proto bool curl_exec(i

Re: [PHP-DEV] Bug #15390: Persistent OCI8 Connections Get Poisoned

2002-02-05 Thread Hans Zaunere
, the whole system is back. Although PHP should handle this better in some manner.  :) Thank you, Hans [EMAIL PROTECTED] wrote: We are seeing this problem too. I am thinking of having a standard error page which executes posix_kill ( pos_getpid()) ; On Oracle errors. > From: [EM

[PHP-DEV] Poisoned Persistent Oracle Connections (OCI8)

2002-02-04 Thread Hans Zaunere
, as customers don't like having to refresh the page to avoid error messages. If any more info or clarification is needed please contact me. Thank you, Hans -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Strange re-include/crash problem with Oracle (OCI8)

2002-01-31 Thread Hans Zaunere
-user doesn't like seeing all the Warnings, as opposed to: Oracle Database Down. If anymore info or clarification is needed, please don't hesitate to ask. Thank you, Hans -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: [PHP-DEV] Bug #15023 Updated: Apache thread segfaults in optimizer using php-4.1.1 and Zend Optimizer

2002-01-13 Thread Hans Rakers
Gee, thanks for the wonderful input. I at least thought the Zend folks where following this list. As i said, i cant find anything on bug reports at zend.com. Any pointers, or should i just chuck the optimizer and forget about my bugreport? Hans At 00:59 14-1-2002 +, you wrote: >

[PHP-DEV] Bug #15023: Apache thread segfaults in optimizer using php-4.1.1 and Zend Optimizer

2002-01-13 Thread hans
From: [EMAIL PROTECTED] Operating system: Linux-2.2.20 PHP version: 4.1.1 PHP Bug Type: Scripting Engine problem Bug description: Apache thread segfaults in optimizer using php-4.1.1 and Zend Optimizer I'm not sure if this is the place to submit problems related to Zend Opt

Re: [PHP-DEV] Bug #14381 Updated: xlst_error causes error with valid XSLT processor instance

2001-12-14 Thread Hans Rakers
That still doesnt explain the segfault. Somebody else already pointed out the arguments to xslt_process changed. I changed this in the script according to the manual. But still the xslt_error() function should not segfault. -- Hans Rakers At 17:03 14-12-2001 +, you wrote: >ID: 14

Re: [PHP-DEV] Bug #14381: xlst_error causes error with valid XSLT processor instance

2001-12-07 Thread Hans Rakers
regards >Wagner I'm using --enable-xslt --with-xslt-sablot (the new 4.1.0 ext/xslt extension) -- Hans Rakers ([EMAIL PROTECTED])Tel: +31 (0)23 5325689 System engineer / Webmaster / Webdeveloper Fax: +31 (0)23 5324957 Parse - TeKoop

Re: [PHP-DEV] Bug #14381: xlst_error causes error with valid XSLT processor instance

2001-12-07 Thread Hans Rakers
3 in Situation::generateMessage (this=0x6f660909, type=1932358766, code=543521385, arg1=@0x7039203a, arg2=@0xa203b74, theMessage=@0x6f660909) at situa.cpp:263 263 if (messenger && !(flags & SAB_NO_ERROR_REPORTING)) Current language: auto; currently c++ (gdb) bt #0 0x40081963 in Sit

Re: [PHP-DEV] Bug #14381: xlst_error causes error with valid XSLT processor instance

2001-12-07 Thread Hans Rakers
gt; >-Rasmus AFAIK (and according to the manual) the first argument to xslt_process() should be a string containing the XSL data ($xslData) and not the XSLT processor handle. Please advise. -- Hans Rakers ([EMAIL PROTECTED])Tel: +31 (0)23 5325689 System engineer / Webma

[PHP-DEV] Bug #14381: xlst_error causes error with valid XSLT processor instance

2001-12-07 Thread hans
From: [EMAIL PROTECTED] Operating system: Linux-2.4.14 glibc-2.2.3 PHP version: 4.1.0 PHP Bug Type: Reproducible crash Bug description: xlst_error causes error with valid XSLT processor instance the following code causes Apache processes to segfault: $xsl_handle

Re: [PHP-DEV] 4.1.0 Final RC

2001-11-21 Thread Hans Rakers
-1.8.3 freetype-1.3.1 mysql-3.23.44 Working fine so far on a very busy box. -- Hans Rakers -- PHP Development 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-DEV] 4.1.0 Final RC

2001-11-20 Thread Hans Rakers
-openssl \ --with-zlib \ --enable-sysvsem \ --enable-sysvshm \ --enable-track-vars \ --enable-memory-limit \ --enable-debug=no All sites seem to work ok. -- Hans Rakers -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP-DEV] Re: Bug #14036: Segfault when using multipart form data

2001-11-12 Thread Hans Rakers
e PHP with debug enabled, and that the scripts causing the segfaults do not always result in a segfault (sometimes, like 1 in 10 times, they do run properly). Let me know if you need any more info. I can provide you with php scripts that cause this crash. Hans Rakers At 15:40 12-11-2001 -0800,

Re: [PHP-DEV] Re: Bug #14036: Segfault when using multipart form data

2001-11-12 Thread Hans Rakers
Config is included in the bugreport, and i can reproduce the problem with several scripts using multipart forms. Tell me whatever information you will need and i will try to provide it to you. Hans Rakers At 08:19 13-11-2001 +0900, you wrote: >[EMAIL PROTECTED] wrote: > &g

Re: [PHP-DEV] Re: Bug #14036: Segfault when using multipart form data

2001-11-12 Thread Hans Rakers
As i reported in my bug report, i can reproduce this problem with 4.0.6 and current cvs. Hans Rakers At 15:18 12-11-2001 -0800, you wrote: >This code has changed significantly in current CVS. 4.0.6 and 4.1.0RC1 >should not have the problem. > >-Rasmus > >On Tue, 13 Nov

[PHP-DEV] Bug #14036: Segfault when using multipart form data

2001-11-12 Thread hans
t eval.c:88 #15 0x4032c2eb in __libc_start_main (main=0x81748e8 , argc=2, ubp_av=0xbb44, init=0x806d9c0 <_init>, fini=0x81b343c <_fini>, rtld_fini=0x4000c130 <_dl_fini>, stack_end=0xbb3c) at ../sysdeps/generic/libc-start.c:129 If you need more info contact me priva

Re: [PHP-DEV] Bug #13229 - some analysing

2001-09-18 Thread Hans Spath
[EMAIL PROTECTED] wrote: > > Hi f0lks, > > > > [part of my first mail (see url at the end of this mail) ] > >[snip] > >I don't think this is a bug, it looks like a misunderstanding of the API. >(Perhaps it is my misunderstanding ;-) I'll kill you !!! (j/k) What do you think, when I tell you I've

[PHP-DEV] Bug #13229 - some analysing

2001-09-13 Thread Hans Spath
this step) by 1. Now, at the end of the script PHP tries again to save $GLOBALS['foo'] to the session what fails because the creation of the reference $GLOBALS['foo'] <-> $HTTP_SESSION_VARS['foo'] failed. (continue reading at *2* ;-) To fix this beha

[PHP-DEV] PHP 4.0 Bug #9127 Updated: submitting a boolean to an attribute seems to fail

2001-02-06 Thread hans
a default and changing it to false. This will have the same effect, no change. A workaround is to declare the boolean global but I do not like it. Is this a bug or am I blond? Regards, Hans --- Full Bug descripti

[PHP-DEV] PHP 4.0 Bug #9127: submitting a boolean to an attribute seems to fail

2001-02-06 Thread hans
global but I do not like it. Is this a bug or am I blond? Regards, Hans -- Edit Bug report at: http://bugs.php.net/?id=9127&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE