[PHP] Memory-Size of Objects

2004-04-21 Thread Thomas Weber
Hi, does anybody know a way to get the memory-size of an object? I'm triing to seek some memory-leaks in a php-daemon-program wich cannot be reproduced easily to track them down, so i thought to monitor the size of the objects while running in a production-enviroment. Thanks! Thomas 'Neo' Weber

[PHP] socket_select() hangs sometimes; Bug?

2003-11-24 Thread Thomas Weber
Hi folks, I am battling around with socket_select() for some months now and still have an unsolved problem with random hanging. PHP: 4.3.4 with -sockets, -sigchild, -pcntl and some other things OS: FreeBSD 5.0 (same problem with 4.8 and 5.1) In simple words, I have a server-daemon (runs with PHP

[PHP] fork and childs

2003-09-30 Thread Thomas Weber
Hi, I'm writing a network-server in PHP, using pcntl_fork() to fork childs (errr... jep). My problem is, than when i shutdown the parent-process, all childs are killed automatically. Does anyone know a way to avoid this behaviour? Thanks, Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] socket_write eats data - solved

2003-09-14 Thread Thomas Weber
o > open and close and imap connection for each page. That issue is > multiplied ten fold in this scenario isn't it? > > > Thomas Weber wrote: > > >No, it's TCP and a very uncomplicated protocol, everything is sent in clear > >text. Major problem is

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Thomas Weber
No, it's TCP and a very uncomplicated protocol, everything is sent in clear text. Major problem is the socket-multicasting to keep track of all clients simultanly. - Original Message - From: "Raditha Dissanayake" <[EMAIL PROTECTED]> To: "Thomas Weber"

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Thomas Weber
e next bunch-of-data. My receive-script hasn't diplayed the raw output, but an unserialized array, fetched out of the received string. Maybe this will will help someone in future. Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] - Original Message - From: "T

[PHP] socket_write eats data

2003-09-13 Thread Thomas Weber
Hi, I am deveoping a chatserver in IRC-style in PHP. For communication it uses socket-multiplexing aka socket_select. So long so good, works perfectly. The problem is, than when i make several socket_write's to the same client without waiting about 0.1sec after each write, the written data gets lo

[PHP] Mozilla and german 'Umlaute'

2003-09-13 Thread Thomas Weber
Hi, i have a strange problem with Mozilla. When submitting a form, german umlaute (ä (ae), ü (ue) and others) become strange 16bit-chars like 'ä'. I've tested this with PHP as dynamic Apache-module and with an own webserver written in PHP. Doctype and other XML-specific things in the page with th

[PHP] Close Connection to Browser

2003-06-29 Thread Thomas Weber
Hi, is it possible to close the connection to the client/browser without calling exit? I have an input-script for a chat-system, wich gives a Status 204 No Content to the client after submit, wich works great. The problem is, that sometimes the script needs some time to finish after sending the 20

Re: [PHP] List of Variables

2003-06-27 Thread Thomas Weber
Yea thanks, we must have been blind when searching the php-docs ;) Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] - Original Message - From: "Adam Voigt" <[EMAIL PROTECTED]> To: "Thomas Weber" <[EMAIL PROTECTED]> Cc: "PHP-List&q

[PHP] List of Variables

2003-06-27 Thread Thomas Weber
Hi, is there any way to get a list of all defined variables? It is intended to be used to get and identify all defined objects to call some costum decunstructor at the scripts end. Thanks! Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] signal handler to ignore kill of parent

2003-01-03 Thread Thomas Weber
modify it? Read the fork, exec and clone man pages. > This might help you a bit understand the behaviour. > > If so just call exec from the forked process... this will create a new process instead of a child one. > Then call exit() in your forked process. > > Mike > > &g

[PHP] signal handler to ignore kill of parent

2003-01-02 Thread Thomas Weber
Hi, i need some way for child-processes to ignore the kill of their parent. Any idea? Thanks, Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] manual trans-sid?

2002-11-20 Thread Thomas Weber
Hi, does anyone know a way to rewrite url's with the session-tag in a string, without sending the output to a browser? I'm writing some sort of webserver in php wich should, of course, send rewrited urls to its clients via sockets. Thanks a lot, Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PRO

[PHP] Array Searching

2002-11-15 Thread Thomas Weber
Hi, i have an array like: Array ( [1] => Array ( [alias] => foo ... ) [2] => Array ( [alias] => bar ... ) ... ) I need some way to find out, if an alias "foo" is in the array. Any idea how to do this? Th

Re: [PHP] Chat with php

2002-10-08 Thread Thomas Weber
, Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] - Original Message - From: "Oliver Witt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Thomas Weber" <[EMAIL PROTECTED]> Sent: Tuesday, October 08, 2002 10:51 AM Subject: Re: [PHP

[PHP] Empty Message-Body

2001-03-13 Thread Thomas Weber
04 Not Modified");" and it seems to work. My own message body isn't sent, but this: Of course the Page is loaded, but of course empty... How can i tell PHP4 to send the Status 304 without sending any message body??? Thank you, Thomas Weber CYNOBIA Community Online Ser

[PHP] Response 304

2001-03-09 Thread Thomas Weber
rd the script should only send the header without message body. so i tried: header ("HTTP/1.0 304 Not Modified"); exit; But this don't work. The Script is loaded and, of course, an empty page. How can i do this??? Thank you. bye, Thomas Weber CYNOBIA Community Online Service AG

[PHP] FW: [PHP-INST] RE: strange Compiling Errors / PHP4.0.4pl1

2001-02-06 Thread Thomas Weber
The problem is solved! My system searched the .h-files in /usr/include/linux/ and i found them all in /usr/src/linux-2.2.16/include/linux/, just copied them and it worked :-))) Thank you all for the support! -Original Message- From: Thomas Weber [mailto:[EMAIL PROTECTED]] Sent

[PHP] strange Compiling Errors / PHP4.0.4pl1

2001-02-05 Thread Thomas Weber
4.0.3 but i get the same errors.) Please help me!!! Thank you, Thomas Weber CYNOBIA Community Online Service AG Kühbachstraße 11 81543 München fon 089-78 06 0(280) fax 089-78 06 01 99 email [EMAIL PROTECTED] net http://www.CYNOBIA.de

Re: [PHP] Stringing sql queries?

2001-02-03 Thread Thomas Weber
Yep, try this: SELECT a.col1, a.col2, b.col3, c.col4 FROM table1 a, table2 b, table3 c This should give you an array [col1,col2,col3,col4] Thomas Weber --- EMail: [EMAIL PROTECTED] Homepage: http://www.youngarts.org / http://www.visions-of-future.de - Original Message - From

Fw: [PHP] Problem compiling PHP4 Nr. 2

2001-02-03 Thread Thomas Weber
I have solved the problem. But now i have another problem: Look at this screenshot: http://electic.hn.org/tunix.gif Thanks, --- Thomas Weber --- EMail: [EMAIL PROTECTED] Homepage: http://www.youngarts.org / http://www.visions-of-future.de - Original Message - From: "Thomas

[PHP] Problem compilieng PHP4

2001-02-03 Thread Thomas Weber
? Thanks, Thomas Weber --- EMail: [EMAIL PROTECTED] Homepage: http://www.youngarts.org / http://www.visions-of-future.de

RE: [PHP] major help required with php3 and apache on suse 7.0 pro

2001-01-30 Thread Thomas Weber
. ( http://www.webmin.org ) This is a very confortable web.interface for Linux-administration. -Original Message- From: bob [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 12:48 PM To: Thomas Weber Subject: RE: [PHP] major help required with php3 and apache on suse 7.0 pro Hi thomas

RE: [PHP] major help required with php3 and apache on suse 7.0 pro

2001-01-30 Thread Thomas Weber
Hi, i run SuSE 7.0 too, but i think you cannot use mod_php3 AND mod_php4 together. -Original Message- From: bob [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 9:48 AM To: [EMAIL PROTECTED] Subject: [PHP] major help required with php3 and apache on suse 7.0 pro Importance: Hig

[PHP] httpd-prozess doesn't get killed

2001-01-30 Thread Thomas Weber
cript. So if you reload the stream an few times you have a task list full of Apaches. How can i kill the old, unused process when i reload the page? I tried if($connection_aborted()) { exit; }, but it exits the first time. Thanks, --- Thomas Weber CYNOBIA Community Online Service AG Kühbachstra

AW: [PHP] Which one is better?Session or Cookies?

2001-01-25 Thread Thomas Weber
Hi, i think i many cases cookies are better, because the are stored in the computers memory for a very long time if needed and is not destroyed after the session timeout or changeing the IP. For example Amazon stores the cart in session, but the login-data is stored in a cookie so you don't need

AW: [PHP] eval() to string???

2001-01-24 Thread Thomas Weber
6:20 An: [EMAIL PROTECTED] Betreff: Re: [PHP] eval() to string??? How is this going to help me? I want to evaluate the code in $php_code to *another* string... - Original Message - From: Thomas Weber <> To: Php-General <> Sent: Wednesday, January 24, 2001 10:14 AM Subject:

AW: [PHP] eval() to string???

2001-01-24 Thread Thomas Weber
try eval("\$php_code;"); -Ursprüngliche Nachricht- Von: [ rswfire ] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 24. Januar 2001 15:36 An: [EMAIL PROTECTED] Betreff: [PHP] eval() to string??? I want to evaluate some PHP code to a string. How can I do this? $php_code = "echo 'hello'

AW: WG: [PHP] Shared Memory with Yast-installed mod_php4 from SuSE.

2001-01-24 Thread Thomas Weber
anuar 2001 12:15 An: Php-General Betreff: Re: WG: [PHP] Shared Memory with Yast-installed mod_php4 from SuSE. On Wednesday 24 January 2001 09:55, Thomas Weber wrote: > Thanks Stathis i tried it twice to compile it, ./configure , > make, make install. but i don't get a new lib

WG: [PHP] Shared Memory with Yast-installed mod_php4 from SuSE.

2001-01-24 Thread Thomas Weber
-Ursprungliche Nachricht- Von: Thomas Weber [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 24. Januar 2001 09:50 An: [EMAIL PROTECTED] Betreff: AW: [PHP] Shared Memory with Yast-installed mod_php4 from SuSE. Thanks Stathis i tried it twice to compile it, ./configure , make

[PHP] Shared Memory with Yast-installed mod_php4 from SuSE.

2001-01-23 Thread Thomas Weber
Sincerly, --- Thomas Weber CYNOBIA Community Online Service AG Kühbachstraße 11 81543 München fon 089-78 06 0(280) fax 089-78 06 01 99 email [EMAIL PROTECTED] net http://www.CYNOBIA.de