[PHP] apache/php: chunk is already free, page is already free

2004-08-05 Thread Ergin Aytac
We made a test for only 20 min. and got our website online. The result 
was 200.000.000 (!!) lines in apache error log with the following:

httpd in free(): warning: chunk is already free.
httpd in free(): warning: page is already free.
httpd in free(): warning: recursive call.
the requests were only made by myself (30 times).
letting the website online for 4 hours produced an apache error log of 
21 GB !!! and some zero sized responses from apache :)

using openbsd 3.2, apache 1.3.26 and php 4.2.3.
the website is a forum using phorum.org software and has a mysql 
database (about 300 MB)

after googling about this I know that only a few people have the same 
problem but couldn't solve it. Most of them say, that this is a memory 
issue of php (some of them used older versions like php 4.0.6). I also 
dont think that the problem is because of phorum.org software, apache or 
mysql. Maybe openbsd?

on the same server there are a lot of other hostings without any problems.
Any hints or links?
thanks
ergin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] apache/php: chunk is already free, page is already free

2004-08-05 Thread Ergin Aytac
had no success on the apache list. apache logs also errors with 
sister-projects like php. I think this is not an apache issue but php. 
if you have errors like this it is always very difficult to locate the 
real source of the problem.

Any other hints?
Jay Blanchard schrieb:
[snip]
We made a test for only 20 min. and got our website online. The result 
was 200.000.000 (!!) lines in apache error log with the following:

Any hints or links?
[/snip]
Here's a hint...send this to the Apache list. 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP Daemon

2002-03-06 Thread Ergin Aytac

Following boxes are running:

server1 (win2000), not allowed to use a web-server on it, only port 22(ssh)
is open to internet
server2 (unix) has apache and php, only port 22 and 80 are open to internet

I have to write a php-daemon on server1, which should simulate a
database-trigger. Every 5 min. I have to check a table in my database if
there are new rows, write the data in these new rows in a file and send the
file from server1 to server2 using ssh. After this I have to start a
php-script on server2. Javascript is not allowed.

My first release works fine, but some problems exist like following:

1. I use at command on server1 to start the script every 5 minutes. I
start explorer myscript.php. I have to use explorer because I use the the
header(Location:...) php-function. But I don't want to use any web
servers. If I would use php.exe to start my script the header function
doesn't work because php.exe cannot understand header-data or any other
meta tags. My Question is: How can I start from server1 a php-script on
server2  using only php.exe without any browser or web server on server1?

2. I dont't want to use at command because this daemon should work on
every plattform without using any operating system functions. So I want to
start a php-script which runs forever without stopping. Which values for
timeout are necessary in php.ini ? Besides, if I use a never ending
for(...) command in my script it causes a 100% CPU-Using so other tasks
are pretty slow. I need a php-function like wait or pause but could not
find any. I need the following:
  for (;;)
   {
   wait for 5 sec;
   do something;
   }

3. I use scp (secure copy on port 22) for sending my file to server2. On
win2000 I use pscp(putty). pscp supports password in the commandline as a
parameter, but scp doesn't support this. So if I have a unix-box running my
daemon, it would ask me for password, but no one wants to type the password
every 5 min :)
Is there a way to send data on port 22 (ssh) without using os functions like
scp or pscp?
(I have no security problems with using password in my script on
server1(win2000), because the box is first behind real walls and second
behind a well working openbsd-firewall)

thanx for any hints or links, or maybe other ways to solve this problem.

ergin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: licensing, protection

2002-02-21 Thread Ergin Aytac

try http://www.microcode.de/index.php3?LANGUAGE=english

microCODE from Databay enables you to encrypt your PHP scripts before
publication.
Thereby you can protect your code against unwanted insights or even
modification of the sources by a unauthorized third party. This is
especially required for commercial applications, where protection of
intellectual property is a primary aim.


Kunal Jhunjhunwala [EMAIL PROTECTED] schrieb im Newsbeitrag
005101c1bae4$6e7a6770$0301a8c0@CONFUSED">news:005101c1bae4$6e7a6770$0301a8c0@CONFUSED...
 Hey,
 Any suggestions on how to write a licensing system or something similar to
 protect against illegal distribution of your programs? Zend is a way, but
is
 very expensive.
 Regards,
 Kunal Jhunjhunwala

 Minds think with ideas, not information. No amount of data, bandwidth, or
 processing power can substitute for inspired thought. - Clifford Stoll




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] get the clicked submit image

2002-01-30 Thread Ergin Aytac

I have a form-page with several image-submit buttons. how can I know which
image is clicked? It's not allowed to use java-script or any client-side
make the life easy-scripts.

form name=form1 method=get action=test.php
input type=image border=0 name=image1 src=goa.gif
input type=image border=0 name=image2 src=gob.gif
/form

I get two vars per image with the clicked point values on the image like
image1.x, image1.y and so on. How can I get the values of these variables? I
tried $image1.x, ${image1.x}, $image1[x], but they didnt work. I could
not find out the correct syntax.

if I get the value of these vars or use the isset function, I can get out
which image is clicked because the non-clicked image has no values for the
clicked-point on itself.

the vars are available in $QUERY_STRING so I could parse it, but I think
there is a simple way to get these vars.

thanx (also for any links to manuals).

Ergin Aytac



-- 
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] odbc linux to win2000

2002-01-18 Thread Ergin Aytac

I want to make a database connection with odbc. My php-script is running on
linux, the database (centura sqlbase 7.5) is running on win2000. Is it
possible to make a direct odbc-connection to the database or do I really
need a software-bridge for this connection? Someone said it is unpossible
without a software-bridge, even though when I use odbc. But I forgot why,
how und who...

thanx
ergin aytac



-- 
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: odbc linux to win2000

2002-01-18 Thread Ergin Aytac

I think I know it again. There is no sqlbase-odbc driver available for
linux, only for win2000. So I have to write a bridge, which runs on win2000
and answers the php-sql-requests.

sorry for this question

ergin aytac

Ergin Aytac [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I want to make a database connection with odbc. My php-script is running
on
 linux, the database (centura sqlbase 7.5) is running on win2000. Is it
 possible to make a direct odbc-connection to the database or do I really
 need a software-bridge for this connection? Someone said it is unpossible
 without a software-bridge, even though when I use odbc. But I forgot why,
 how und who...

 thanx
 ergin aytac





-- 
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]