[PHP-DEV] ext/srm

2002-02-25 Thread Robin Ericsson

I though I saw a mail regarding moving srm extension to php4/ext
repository?

However I might be blind, as I can't find it on cvs.php.net, or the
snapshots.


Regards
- robin



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




RE: [PHP-DEV] SAP DB

2002-02-25 Thread Lukas Smith

Yes, back when SAP opensourced SAP DB there was a lot of speculation was
to why they did it. Actuallywe installed it on our test server, but
never actually tested it.

It seems very feature complete and well documented. Using ODBC sucks
(especially with the problems it creates with other RDBMSs), so a native
driver would be nice. Anyways I remember that they announced that they
would continue development and would improve the SAP DB OS site. I
haven't really checked if they followed through with their promise.

Best regards,
Lukas Smith
[EMAIL PROTECTED]
___
 DybNet Internet Solutions GbR
 Alt Moabit 89
 10559 Berlin
 Germany
 Tel. : +49 30 83 22 50 00
 Fax : +49 30 83 22 50 07
 www.dybnet.de [EMAIL PROTECTED]
___

 -Original Message-
 From: alex black [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 25, 2002 4:27 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: [PHP-DEV] SAP DB
 
 hi all,
 
 One of the binarycloud developers just told me to have a look at the
SAP
 OS
 database, SAPDB.
 
 I'm going to test it tomorrow to see if it actually does what it
claims,
 but
 this _looks_ like serious OS competition to Oracle, and if it is I
would
 very much like to use it for my next project.
 
 So, question:
 
 Has anyone used SAPDB with PHP? If so, experiences? And if not, are
there
 plans for drivers? I looked in the manual and I didn't see any mention
of
 SAPDB.
 
 Oh, and I just found a mention of PHP on the SAPDB site. Looks like
the
 connection is over ODBC, which I really _really_ dislike... are there
 plans
 for anything native? like a sapdb_connect :)?
 
 In any case I think this database has a _HUGE_ amount of potential and
PHP
 would benefit if access to SAPDB was possible.
 
 please e-mail me directly as I am not subscribed to the NGs:
 
 [EMAIL PROTECTED]
 or [EMAIL PROTECTED]
 
 thanks,
 
 _alex
 
 
 
 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php



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




Re: [PHP-DEV] ext/srm

2002-02-25 Thread derick

Hello,

On 25 Feb 2002, Robin Ericsson wrote:

 I though I saw a mail regarding moving srm extension to php4/ext
 repository?

 However I might be blind, as I can't find it on cvs.php.net, or the
 snapshots.

You're not blind :), we removed it. There was a too big problem with
compability with the CVS version of the Daemon. You can get it from the
SRM CVS:
cvs -d :pserver:[EMAIL PROTECTED]:/repository co php_srm

regards,
Derick


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




Re: [PHP-DEV] Apache2 and PHP CVS from today

2002-02-25 Thread Sebastian Bergmann

August wrote:
 I have a build framework that I use extremely frequently, and I don't
 believe much has changed with it. Has the procedure changed for
 statically compiling php with apache? I haven't seen any documentation
 of it.

  I don't know if httpd-2.0 still supports statically compiled modules or
  if PHP's --with-apache option needs tweaking. Why don't you use DSO
  anyhow? It's the preferred method.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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




Re: [PHP-DEV] SAP DB

2002-02-25 Thread Hartmut Holzgraefe

alex black wrote:
 hi all,
 
 One of the binarycloud developers just told me to have a look at the SAP OS
 database, SAPDB.

SAP DB is just another name for AdabasD from a programmers point of view-


 I'm going to test it tomorrow to see if it actually does what it claims, but
 this _looks_ like serious OS competition to Oracle, and if it is I would
 very much like to use it for my next project.
 
 So, question:
 
 Has anyone used SAPDB with PHP? If so, experiences? And if not, are there
 plans for drivers? I looked in the manual and I didn't see any mention of
 SAPDB.

http://www.php.net/manual/en/ref.odbc.php

 Oh, and I just found a mention of PHP on the SAPDB site. Looks like the
 connection is over ODBC, which I really _really_ dislike... are there plans
 for anything native? like a sapdb_connect :)?

from the link mentinoned above:

 In addition to normal ODBC support, the Unified ODBC functions in PHP allow
   you to access several databases that have borrowed the semantics of the ODBC
   API to implement their own API. Instead of maintaining multiple database
   drivers that were all nearly identical, these drivers have been unified
   into a single set of ODBC functions.

so the call interface to AdabasD/SapDB looks like ODBC, but you have
direct access to the database using PHP, you don't have to deal with
ODBC driver management and all the stuff if you don't want you


 In any case I think this database has a _HUGE_ amount of potential and PHP
 would benefit if access to SAPDB was possible.


as said above: it is all there ... just the documentation could need
a little update ...


-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77

Wir stellen für Sie aus auf der CeBIT 2002 und freuen uns
in Halle 6 auf Ihren Besuch am Stand H 18


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




[PHP-DEV] call_user_function()

2002-02-25 Thread brad lafountain

Ok, 
 I know ive already posted this but no responded. So I'll do it again.

Currently call_user_function() doesn't call overloaded class methods.
I hacked together a function to get around this. Does anyone want to look at it
and see if it's gunna mess anything up as far as zend execution. if not put it
in as part as the normal call_user_function.

int my_call_user_function(HashTable *function_table, zval **object_pp, zval
*function_name, zval *retval_ptr, int param_count, zval *params[] TSRMLS_DC)
{
if(call_user_function(function_table, object_pp, function_name, retval_ptr,
param_count, params TSRMLS_CC) == FAILURE)
{
if(Z_OBJCE_PP(object_pp)-handle_function_call != NULL)
{
zend_overloaded_element overloaded_element;
zend_property_reference property_reference;
zend_function_state function_state;
zend_function_state *original_function_state_ptr;
int i;

overloaded_element.element = *function_name;
overloaded_element.type = OE_IS_METHOD;

function_state.function = (zend_function *) 
emalloc(sizeof(zend_function));
function_state.function-type = ZEND_OVERLOADED_FUNCTION;
function_state.function-common.arg_types = NULL;
function_state.function-overloaded_function.function_name =
Z_STRVAL_P(function_name);  

property_reference.object = *object_pp;
property_reference.type = BP_VAR_NA;
property_reference.elements_list = (zend_llist
*)emalloc(sizeof(zend_llist));
zend_llist_init(property_reference.elements_list,
sizeof(zend_overloaded_element), NULL, 0);
zend_llist_add_element(property_reference.elements_list,
overloaded_element);

//Build argument stack
for(i = 0;i  param_count;i++)
zend_ptr_stack_push(EG(argument_stack), params[i]);
zend_ptr_stack_n_push(EG(argument_stack), 2, (void 
*)param_count, NULL);

EG(function_state_ptr) = function_state;
Z_OBJCE_PP(object_pp)-handle_function_call(param_count, 
retval_ptr,
*object_pp, 1 TSRMLS_CC, property_reference);
EG(function_state_ptr) = original_function_state_ptr;

zend_llist_destroy(property_reference.elements_list);
efree(property_reference.elements_list);
efree(function_state.function);

zend_ptr_stack_clear_multiple(TSRMLS_C);
return SUCCESS;
}
}
}


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




RE: [PHP-DEV] --with-sybase and --with-ibm-db2 conflict

2002-02-25 Thread Andrew Hill

Casey,

You may wish to try iODBC instead of UnixODBC.
I'd also suggest trying OpenLink's Single-Tier ODBC drivers.

Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software  http://www.openlinksw.com
Universal Data Access  Data Integration Technology Providers

 -Original Message-
 From: Casey Allen Shobe [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 24, 2002 4:46 PM
 To: Brian Bruns; Rasmus Lerdorf
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP-DEV] --with-sybase and --with-ibm-db2 conflict


 On Sunday 24 February 2002 16:16, Brian Bruns wrote:
  I have both those compiled into my setup at work so I can take
 a look, we
  use --with-sybase-ct to work around the issue, I think we also had to
  make sure that --with-ibm-db2 appeared in the configure line
 prior to the
  other.

 Well, I tried using --with-sybase-ct, but I'm actually using FreeTDS to
 communicate with MSSQL, and for some reason --with-sybase-ct
 won't work with
 the FreeTDS libraries when trying to built PHP following the instructions
 here:

 http://www.freetds.org/userguide/php.html#AEN945

 The ODBC support is buggy...as in, I can connect to and run
 queries on both
 DB2 and MSSQL via isql (comes with unixodbc) on the command line, but via
 PHP, only DB2 works when I try to use both within a script.

 --
 Casey Allen Shobe
 [EMAIL PROTECTED]

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






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




[PHP-DEV] php xml documentation

2002-02-25 Thread brad lafountain

Where would i find out how to create
the necessary xml docs so my extension
docs would flow into php's website?

 - Brad

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




[PHP-DEV] CVS Account Request: katow

2002-02-25 Thread Miron Iancu

Maintaining the documentation 
Translating the documentation 


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




Re: [PHP-DEV] php xml documentation

2002-02-25 Thread Sander Roobol

On 2002.02.25 15:07 brad lafountain wrote:
 Where would i find out how to create
 the necessary xml docs so my extension
 docs would flow into php's website?
Actually, you're asking this on the wrong mailinglist... use PHP-DOC 
for this.
Anyway, have a look at http://cvs.php.net/cvs.php/phpdoc/howto and 
download howto.html.tar.gz which contains nice instructions.

Sander

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




[PHP-DEV] XML-RPC extension

2002-02-25 Thread Andrey Hristov

 Hi
Does someone is writing(or plannning to) XML-RPC extension?
I tried Edd Dumbill's code. When trying to send/receive small amount of data - no 
problems. Not fast as a light but satisfying -
0.2s.
When I tried to receive big PHP array(100) elements (arrays) the return from the 
server was 50k and the working time - 4s. After
some profiling I found that most of the time is spent in the XML deserialization.
I thought that WDDX extension will not be more fast but not. Deserialization of those 
50kilobytes, which was encapsulated into
XML-RPC packet for transportation, tooks only from 0.03 to 0.08s!
So I think about tweaking wddx.c for xml-rpc.c

All comments are appreciated.

Best regards,
Andrey Hristov


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




[PHP-DEV] Delete checked files

2002-02-25 Thread Nautilis

Hi everybody,

I show a list of files that I upload to the user's folder using the next
code:

$path= ../clients/$user;
$dir = opendir ($root);
while ($archivo = readdir ($dir))
   {
$size = filesize($path/$filename);
$size = ($size/1024);
$size = intval($size * 100 ) / 100;
if ($filename!= .  $filename!=..)
{
echo trtda
href='$path/$filename'$filename/a/tdtd$size Kb/td/tr;
}
}

I want to add a checkbox in every file i get in the user's folder. My
question is:

Is there any way to use some kind of function to delete selected files? I am
not sure if i can use javascript to evaluate which is checked and how. And
after that evaluation, how to call a unlink ($filename) to delete the files.

Any help would be greatly appreciated.

Nau





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




[PHP-DEV] Patch to extract()

2002-02-25 Thread Richard Heyes

I've added an extra option extract() to have potential variable names passed
to a user defined callback function. If this function then returns true,
it's extracted, if not it's not.

Anyone care to apply/check it?

Eg.:

?php
function extract_callback($varname){
return preg_match('/^var/', $varname);
}

$var['var_1'] = 1;
$var['var_2'] = 1;
$var['blaat'] = 1;

extract($var, EXTR_USER_CALLBACK, 'extract_callback');

printf('var_1: %s br', $var_1);
printf('var_2: %s br', $var_2);
printf('blaat: %s br', $blaat);
?


Index: array.c
===
RCS file: /repository/php4/ext/standard/array.c,v
retrieving revision 1.156
diff -u -u -r1.156 array.c
--- array.c 5 Feb 2002 20:43:48 -   1.156
+++ array.c 25 Feb 2002 16:07:10 -
@@ -59,7 +59,8 @@
 #defineEXTR_PREFIX_INVALID 4
 #defineEXTR_PREFIX_IF_EXISTS   5
 #defineEXTR_IF_EXISTS  6
-
+#defineEXTR_USER_CALLBACK  7
+
 #define SORT_REGULAR   0
 #define SORT_NUMERIC   1
 #defineSORT_STRING 2
@@ -86,7 +87,8 @@
REGISTER_LONG_CONSTANT(EXTR_PREFIX_INVALID, EXTR_PREFIX_INVALID, CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT(EXTR_PREFIX_IF_EXISTS, EXTR_PREFIX_IF_EXISTS, 
CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT(EXTR_IF_EXISTS, EXTR_IF_EXISTS, CONST_CS | 
CONST_PERSISTENT);
-   
+   REGISTER_LONG_CONSTANT(EXTR_USER_CALLBACK, EXTR_USER_CALLBACK, CONST_CS | 
+CONST_PERSISTENT);
+
REGISTER_LONG_CONSTANT(SORT_ASC, SORT_ASC, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT(SORT_DESC, SORT_DESC, CONST_CS | CONST_PERSISTENT);
 
@@ -1137,7 +1139,7 @@
 PHP_FUNCTION(extract)
 {
zval **var_array, **z_extract_type, **prefix;
-   zval **entry, *data;
+   zval **entry, *data, *user_callback_retval, **user_callback_args[1], 
+*user_callback_arg;
char *var_name;
smart_str final_name = {0};
ulong num_key;
@@ -1163,6 +1165,11 @@
php_error(E_WARNING, %s() expects a prefix to be 
specified,
  get_active_function_name(TSRMLS_C));
return;
+
+   }else if(extract_type == EXTR_USER_CALLBACK){
+   php_error(E_WARNING, %s() expects a user defined 
+function to be specified,
+ get_active_function_name(TSRMLS_C));
+   return;
}
break;

@@ -1180,7 +1187,7 @@
break;
}

-   if (extract_type  EXTR_OVERWRITE || extract_type  EXTR_IF_EXISTS) {
+   if (extract_type  EXTR_OVERWRITE || extract_type  EXTR_USER_CALLBACK) {
php_error(E_WARNING, Unknown extract type in call to %s(),
  get_active_function_name(TSRMLS_C));
return;
@@ -1248,8 +1255,30 @@
} else
smart_str_appendl(final_name, 
var_name, var_name_len);
}
-   break;
-
+   break;
+
+   case EXTR_USER_CALLBACK:
+   user_callback_arg = emalloc(sizeof(zval));
+   MAKE_STD_ZVAL(user_callback_arg);
+   ZVAL_STRING(user_callback_arg, var_name, 0);
+
+   *(user_callback_args[0]) = user_callback_arg;
+
+   if(call_user_function_ex(EG(function_table), NULL, 
+*prefix, user_callback_retval, 1, user_callback_args, 0, NULL TSRMLS_CC) != SUCCESS){
+   php_error(E_WARNING, Failed to call user 
+function: %s(), Z_STRVAL_PP(prefix));
+   return;
+   }
+   efree(user_callback_arg);
+
+   if(!Z_BVAL_P(user_callback_retval)){
+   
+zend_hash_move_forward_ex(Z_ARRVAL_PP(var_array), pos);
+   continue;
+   }else{
+   smart_str_appendl(final_name, var_name, 
+var_name_len);
+   }
+
+   break;
+
default:
if (!var_exists)
smart_str_appendl(final_name, var_name, 
var_name_len);



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


[PHP-DEV] delete checked files

2002-02-25 Thread Dave Cranwell

Why not start an html form element before u start outputting the tr /s and
td /s of ur table.
Finish it at the end of ur while loop, oh...and include a submit button.

The submit calls either a new script or the same script itself, only using
url query strings to specify a different part of the code.

Each input type=checkbox should be NAMED with the filename of each file
it is representing. Or possibly with a small identifier to differentiate
between the file reference and the input name, say c_ at the front. And
perhaps you ought to remove the file-extention.

So if your directory contained mydoc.doc, the checkbox would be named
c_mydoc

Then u use a while loop exactly the same as in the code u pasted to the
list, but instead of using the filename as a string that you then echo to
the screen, you simply strip off the file extension and add c_ at the
beginning. You will now be referring to each of the chechbox form elements.

Simply while-loop your way through the form elements (each identified by the
file in the directory so you will know when/if an element exists because you
will still be looping through the opendir() command, or not), asking it if
it is checked or not  and delete it

if ($c_mydoc){
unlink ($regular_filename_WITH_extension_and_WITHOUT_c_)
}

--
Dave Cranwell
Torchbox Ltd
[EMAIL PROTECTED]
tel: (+44) 1608 811 870
mob: (+44) 7760 438 708
http://www.torchbox.com



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




Re: [PHP-DEV] Delete checked files

2002-02-25 Thread Sander Roobol

PHP-DEV is for the development OF PHP, not for developing WITH PHP.
Ask support questions on PHP-GENERAL ([EMAIL PROTECTED]).

Sander

On 2002.02.25 17:04 Nautilis wrote:
 Hi everybody,
 
 I show a list of files that I upload to the user's folder using the
 next
 code:
 
 $path= ../clients/$user;
 $dir = opendir ($root);
 while ($archivo = readdir ($dir))
{
 $size = filesize($path/$filename);
 $size = ($size/1024);
 $size = intval($size * 100 ) / 100;
 if ($filename!= .  $filename!=..)
 {
 echo trtda
 href='$path/$filename'$filename/a/tdtd$size Kb/td/tr;
 }
 }
 
 I want to add a checkbox in every file i get in the user's folder. My
 question is:
 
 Is there any way to use some kind of function to delete selected
 files? I am
 not sure if i can use javascript to evaluate which is checked and how.
 And
 after that evaluation, how to call a unlink ($filename) to delete the
 files.
 
 Any help would be greatly appreciated.
 
 Nau
 
 
 
 
 
 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 

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




Re: [PHP-DEV] Delete checked files

2002-02-25 Thread Nautilis

Ups! I am very sorry.

As i am a newbie at php i thought, as you suggested, that this was for
developement with php.

Thx alot anyway


- Original Message -
From: Sander Roobol [EMAIL PROTECTED]
To: Nautilis [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, February 25, 2002 5:38 PM
Subject: Re: [PHP-DEV] Delete checked files


 PHP-DEV is for the development OF PHP, not for developing WITH PHP.
 Ask support questions on PHP-GENERAL ([EMAIL PROTECTED]).

 Sander

 On 2002.02.25 17:04 Nautilis wrote:
  Hi everybody,
 
  I show a list of files that I upload to the user's folder using the
  next
  code:
 
  $path= ../clients/$user;
  $dir = opendir ($root);
  while ($archivo = readdir ($dir))
 {
  $size = filesize($path/$filename);
  $size = ($size/1024);
  $size = intval($size * 100 ) / 100;
  if ($filename!= .  $filename!=..)
  {
  echo trtda
  href='$path/$filename'$filename/a/tdtd$size Kb/td/tr;
  }
  }
 
  I want to add a checkbox in every file i get in the user's folder. My
  question is:
 
  Is there any way to use some kind of function to delete selected
  files? I am
  not sure if i can use javascript to evaluate which is checked and how.
  And
  after that evaluation, how to call a unlink ($filename) to delete the
  files.
 
  Any help would be greatly appreciated.
 
  Nau
 
 
 
 
 
  --
  PHP Development Mailing List http://www.php.net/
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 


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




[PHP-DEV] Gd compile issues with CVS

2002-02-25 Thread Michael Kunze

Hi all,

I was bitten by compile failures with latest CVS and filed a bug report
(#15697). After investigating the problem, i found that changes in
config.m4 were responsible of the problems.

from the Changelog:

2002-02-23  Rui Hirokawa  [EMAIL PROTECTED]
  [...]
 * ext/gd/config.m4: fixed configure error with freetype1.

The changes introduced by Rui break the recognition of GD 2.0.1 and
Freetype2 at least on SuSE Linux 7.3, leading not only to the infamous
GdIOCTX bug but also seem to confuse 'configure' (mcrypt version can't
be detected). I'm not an autoconf/automake expert, so I can't say what
exactly is wrong here, but people hit by this bug should try to just
revert
Rui's patch -- everything works fine then...;-...

==revert-gd-patch=
--- config.m4   Sat Feb 23 02:36:55 2002
+++ config.m4   Sun Feb 24 14:05:54 2002
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: config.m4,v 1.83 2002/02/23 01:36:55 hirokawa Exp $
+dnl $Id: config.m4,v 1.82 2002/01/13 06:25:18 hirokawa Exp $
 dnl
 
 AC_DEFUN(PHP_GD_JPEG,[
@@ -125,10 +125,6 @@
 AC_DEFUN(PHP_GD_FREETYPE2,[
   PHP_ARG_WITH(freetype-dir, for freetype(2),
   [  --with-freetype-dir=DIR   GD: Set the path to freetype2 install
prefix.])
-
-  if test $PHP_TTF != no; then
-PHP_FREETYPE_DIR=no
-  fi
 
   if test $PHP_FREETYPE_DIR != no; then
 for i in /usr /usr/local $PHP_FREETYPE_DIR; do
===

Cheers 

Michael


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




[PHP-DEV] PHP w/LDAP support crapping out

2002-02-25 Thread J. Rashaad Jackson

I am attempting to compile PHP v.4.1.0 with support for Openldap v.1.2.12.
Below is my configure line:

  ./configure \
  --with-apxs=/usr/local/apache/bin/apxs \
  --with-openssl=/usr/local/ssl \
  --with-imap-ssl=/usr/local/ssl \
  --with-imap=/usr/local/src/imap-2000c \
  --with-ldap=/usr/local/openldap-1.2.12um7 \
  --with-mcrypt \
  --with-mm \
  --with-mysql \
  --with-xml \
  --with-zlib \
  --with-gettext \
  --enable-inline-optimization \
  --enable-track-vars

All the individual piece configure, make, and install with nary an error.
But when I move to fire up the server, I get:

  Cannot load /usr/local/apache/libexec/libphp4.so into server:
  /usr/local/apache/libexec/libphp4.so: undefined symbol: ldap_value_free
  /usr/local/apache/bin/apachectl restart: httpd could not be started

I know this has been covered, but the only solution I found by searching was
to add the lib directory to my /etc/ld.so.conf and run ldconfig.  I tried
that and it's not working.  Below is my /etc/ld.so.conf file:

  /usr/local/openldap-1.2.12um7/lib
  /usr/local/lib
  /usr/lib
  /lib

Any help would be GREATLY appreciated.  I'm at the limits of my
understanding with this.  Thanks!
-- 
I have spoken.

J. Rashaad JacksonUNIX Systems Administrator
2032 Samuel T. Dana Building(W) 734.615.1422
Ann Arbor, MI 48109 (M) 734.649.6641
http://www.umich.edu/~jrashaad  (F) 734.763.8965



msg34541/pgp0.pgp
Description: PGP signature


[PHP-DEV] Re: Apache 2.0.32 + PHP 4.2-dev = No go on XP

2002-02-25 Thread Jobarr

Hello? Anyone else have this problem or what?

Jobarr [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 OkI REALLY want to use Apache 2 and PHP, but it just won't work. I
 complied both myself with VC++ 6.0 and I get this error when I try to just
 to phpinfo()

 Apache HTTP Server has encountered a problem and needs to close.
 AppName: apache.exe AppVer: 2.0.32.0 ModName: libhttpd.dll
 ModVer: 2.0.32.0 Offset: 00016ab8

 Sometimes the phpinfo page loads, other times it does not, but Apache
never
 fully crashes, it keeps running so I can keep trying to load the page.

 I'm running XP and the specific php version is php4-200202211200. I even
 tried with the latest CVS version of Apache 2.0.33-dev.

 If I don't load mod_info or mod_status, it seems to stop crashing, but
 after the first load of the phpinfo page, it takes like 20 seconds to load
 the next and this is just testing it on my own machine, it isn't live or
 anything on the internet.

 Any ideas? I can do any tests needed...

 -Jobarr




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




RE: [PHP-DEV] SAP DB

2002-02-25 Thread Lukas Smith

 Yes, As I didn't know that SAPDB = AdabasD  I was unaware...

As far as I know is is pretty much AdabasD but ist not exactly AdabasD
either. Its basically a fork from all I know.

The documentation seemed fairly complete when I checked a while back.
The interface to it was just not very good though.

Best regards,
Lukas Smith
[EMAIL PROTECTED]
___
 DybNet Internet Solutions GbR
 Alt Moabit 89
 10559 Berlin
 Germany
 Tel. : +49 30 83 22 50 00
 Fax : +49 30 83 22 50 07
 www.dybnet.de [EMAIL PROTECTED]
___



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




Re: [PHP-DEV] SAP DB

2002-02-25 Thread Georg Richter

On Monday, 25. February 2002 21:19, Lukas Smith wrote:
  Yes, As I didn't know that SAPDB = AdabasD  I was unaware...

 As far as I know is is pretty much AdabasD but ist not exactly AdabasD
 either. Its basically a fork from all I know.

Yes, its a fork from version 6.1

Georg

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




Re: [PHP-DEV] SAP DB

2002-02-25 Thread Alex Black

 SAP DB is just another name for AdabasD from a programmers point of view-

Ah, cool.

 http://www.php.net/manual/en/ref.odbc.php

Well, yes.

  In addition to normal ODBC support, the Unified ODBC functions in PHP allow
  you to access several databases that have borrowed the semantics of the ODBC
  API to implement their own API. Instead of maintaining multiple database
  drivers that were all nearly identical, these drivers have been unified
  into a single set of ODBC functions.
 
 so the call interface to AdabasD/SapDB looks like ODBC, but you have
 direct access to the database using PHP, you don't have to deal with
 ODBC driver management and all the stuff if you don't want you

AHA!

Fantastic!

 as said above: it is all there ... just the documentation could need
 a little update ...

Yes, As I didn't know that SAPDB = AdabasD  I was unaware...

In any case you have made my day, thank you :)

All on bc-dev... hehehehe, + excellent +.

and Mike, I'm going to use this. (as I suspect you will as well)

_alex


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




Re: [PHP-DEV] PHP w/LDAP support crapping out

2002-02-25 Thread Markus Fischer

On Mon, Feb 25, 2002 at 01:33:15PM -0500, J. Rashaad Jackson wrote : 
 I am attempting to compile PHP v.4.1.0 with support for Openldap v.1.2.12.
 Below is my configure line:
 
   ./configure \
   --with-apxs=/usr/local/apache/bin/apxs \
   --with-openssl=/usr/local/ssl \
   --with-imap-ssl=/usr/local/ssl \
   --with-imap=/usr/local/src/imap-2000c \
   --with-ldap=/usr/local/openldap-1.2.12um7 \
   --with-mcrypt \
   --with-mm \
   --with-mysql \
   --with-xml \
   --with-zlib \
   --with-gettext \
   --enable-inline-optimization \
   --enable-track-vars
 
 All the individual piece configure, make, and install with nary an error.
 But when I move to fire up the server, I get:
 
   Cannot load /usr/local/apache/libexec/libphp4.so into server:
   /usr/local/apache/libexec/libphp4.so: undefined symbol: ldap_value_free
   /usr/local/apache/bin/apachectl restart: httpd could not be started
 
 I know this has been covered, but the only solution I found by searching was
 to add the lib directory to my /etc/ld.so.conf and run ldconfig.  I tried
 that and it's not working.  Below is my /etc/ld.so.conf file:
 
   /usr/local/openldap-1.2.12um7/lib
   /usr/local/lib
   /usr/lib
   /lib
 
 Any help would be GREATLY appreciated.  I'm at the limits of my
 understanding with this.  Thanks!

Have you double checked your system that no stale libraries
are handing around? Try running 'ldd libphp4.so' and see
if the proper ldap libraries are used.

If this still not works, try build ldap as a module for a
start and see if this works.

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc

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




Re: [PHP-DEV] Apache2 and PHP CVS from today

2002-02-25 Thread August

Jim wrote:
--with-apache is specific to apache1. you have to use --with-apxs2 to
build against apache2.

Apxs normally builds DSO versions of php. Under apache, DSO stands for
Dynamic Shared Object support, and there are some important differences
between dso and static compiles, primarily perhaps performance and
administration. 

Statically linking stuff can significantly reduce administration
headaches. Let's say you have a 15 server web farm and want to roll out
a new, tested combination of Apache/PHP and some other modules. By
statically compiling them in, you can reduce the rollout to pretty much
one file, the httpd binary. If the directory it is in changes it is not
the end of the world. Parallel installs don't have to worry about
asymmetric upgrades of shared libs, etc. 

On a 15 server farm, a 10% performance win equals a server or two. That
is $3000-6000 in capital costs, and then another $2,000 in
rackspace/power costs. While benchmarks are notoriously hard to get
right, why not try a simple ab domain/hello.php comparing static vs DSO
compiles? You might see something like a 40% improvement with the static
compile. It's a few seconds of compile time for some potential real
world savings. Love to see some better numbers on this of course, but in
my experience going the static route results in a measurable performance
win. 

As far as I know httpd2 still allows static modules. 

- August


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




Re: [PHP-DEV] Apache2 and PHP CVS from today

2002-02-25 Thread August

Sebastian wrote:
I don't know if httpd-2.0 still supports statically compiled modules or

if PHP's --with-apache option needs tweaking. Why don't you use DSO 
anyhow? It's the preferred method.

Why in the world is DSO the preferred method? Is this documented
somewhere? 

I find DSO useful for testing and development, but for deployment it
makes little sense to be using DSO, the cost of 60 seconds of compile is
negligible when looking at something that will be installed for
timeframes exceeding a day or two, especially for larger server farms.  

- August


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




Re: [PHP-DEV] Apache2 and PHP CVS from today

2002-02-25 Thread Yasuo Ohgaki

August wrote:
 Sebastian wrote:
 
I don't know if httpd-2.0 still supports statically compiled modules or

 
if PHP's --with-apache option needs tweaking. Why don't you use DSO 
anyhow? It's the preferred method.

 
 Why in the world is DSO the preferred method? Is this documented
 somewhere? 

In apache document.

 
 I find DSO useful for testing and development, but for deployment it
 makes little sense to be using DSO, the cost of 60 seconds of compile is
 negligible when looking at something that will be installed for
 timeframes exceeding a day or two, especially for larger server farms.  

The benefit of DSO is loading modules without compile whole apache.

For instance, I would like to use info or status module when
I have problem with my web servers, but I don't want to enable
them all the time.

-- 
Yasuo Ohgaki


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




Re: [PHP-DEV] Apache2 and PHP CVS from today

2002-02-25 Thread Chand

At 09:51 AM 2/26/2002 +0900, Yasuo Ohgaki wrote:
August wrote:

I find DSO useful for testing and development, but for deployment it
makes little sense to be using DSO, the cost of 60 seconds of compile is
negligible when looking at something that will be installed for
timeframes exceeding a day or two, especially for larger server farms.  

The benefit of DSO is loading modules without compile whole apache.

For instance, I would like to use info or status module when
I have problem with my web servers, but I don't want to enable
them all the time.

we (I think august and i think the same, sorry dude if I'm mistaken :) :) ) understand 
the DSO concept *and* your point. Nonetheless, when you know you're gonna use php 
extensively, why bother a few more minutes of compilation and lose 40% of performance. 
Static build is the way to go in those cases. On other situations, i agree DSO is a 
good way (eg info and status you mentioned).

I have in charge today a few million users (large web portal here :) ), and let me 
tell ya : statically built-in IS the way to go. We have seen major drawbacks with DSO. 
I'm not really sure why though since the module is loaded into memory at Apache 
startup BUT it definitely is less performant than when it's built in. (i wouldn't say 
40% though but even 10% is huge).

I'd really like to try out apache 2 and php but I really can't compile it (see an 
early mail). I know i've asked twice before but has ANYONE succeeded in compiling 
apache 2 and php in a STATIC BUILD (not --with-apxs but --with-apache) ?

Thanks to answer me (privately if you don't want to bother the list).

Later, take care


--
Mark Villemade
Hosting Services Technical Manager
MultiMania / Lycos
(int) +33 1 53 27 24 05


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




[PHP-DEV] code for Alphabetical pager class

2002-02-25 Thread austin swinney

i think somebody is working on a pager class.  this class alpha could
either extend or be incorporated into a pager class.  it is composed of
two functions: _getAlphabet() accepts no arguements and returns an array
of the alphabet, getAlphabetNav ($page,$i) accepts (1)the link reference
page and (2) letter that is current (so as to not link it).

the code below returns an multi-dimentional array of html links with
urls that use the value $i=$char[a-z]:

http://www.example.com/users.php?i=m

example of html returned:

a href='./users.php?i=a'a/a 
a href='./users.php?i=b'b/a 
a href='./users.php?i=c'c/a 
a href='./users.php?i=d'd/a 
(...)

for example, in use:

?php
/* get the alphabetical navigation
 */
require(Madmin/Alpha.php);
$a = new Alpha();
$alphNav=$a-getAlphabetNav($PHP_SELF,$i);

/*
 * then you can use the alphabetic character to 
 * do things like sql select statements:
 */

if ($i) {
$query = SELECT user_id, username, email FROM user WHERE username
LIKE '$i%';
}
?

here is the code for the class:

?php
//$Id: Alpha.php,v 1.4 2002/02/26 01:05:40 austin Exp $

class Alpha {

/**
 * get an array of alphabet for use inside the class
 */
function _getAlphabet() {
$_alphabet=array(1 = a,b,c,d,e,f,g,h,i,
  j,k,l,m,n,o,p,q,r,
  s,t,u,v,w,x,y,z);
return $_alphabet;
}

function getAlphabetNav ($page,$i) {
$alphabet=$this-_getAlphabet();
foreach ($alphabet as $key=$val) {
   if ($val!=$i||!$i) {
   $links .= a href='$page?i=$key'$val/a ;
   } else {
   $links .= $val ;
   }
}
return $links;
unset($links);
}

}
?

comments appreciated :)

austin swinney   ___ ___ _
information specialist II   /_   /  /_  SCZ, CA
Education.Training.Research/__  /  / | r r r r r
[EMAIL PROTECTED]   pirates of programming

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




Re: [PHP-DEV] Apache2 and PHP CVS from today

2002-02-25 Thread Jim Winstead

August [EMAIL PROTECTED] wrote:
 As far as I know httpd2 still allows static modules. 

yes, but the --with-apache option for php4 tries to compile a static
version of php4 for apache 1.x.

maybe someone will create a --with-apache2 option that allows compiling
a static version of php4 for apache 2.x.

until that happens, the only way to compile php4 with apache2 is to use
--with-apxs2, which compiles php4 as a dso.

the fact that --with-apache does not work with apache 2.x is not a bug.
the --with-apache option is specific to the sapi module for apache 1.x.
the sapi module for apache 2.x is a different beast altogether.

(in the meantime, it would be nice if someone made it so that the
--with-apxs and --with-apache options errored out if someone tried to
use them in conjunction with apache 2.x.)

jim

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




[PHP-DEV] Simple Apache 1.3 vs 2.0 benchmarks

2002-02-25 Thread August

#include as usual, all normal benchmark disclaimers. 

This is -dev, so let's assume folks have a grasp of the gap between
performance benchmarking and the real world. Before flaming please give
credit to folks who are able to use this information in a larger and
broader context, while recognizing that few of us have the time to
implement fantastic benchmarks. 

Apache 1.3 with php *statically* compiled in gets 1436 reqs/s 
Apache 2.0 with php as DSO gets 1114 req/s. 

Apache 2 performs similarlity to Apache 1.3 with php as a DSO. Compiling
statically appears helpful, and currently it is not possible to do so
with apache 2. Apache 2 supports static modules generally. 

# ./bin/ab -c 15 -n 10 /hello.php
This is ApacheBench, Version 2.0.32 $Revision: 1.87 $ apache-2.0
Server Software:Apache/2.0.32
Server Port:80

Document Path:  /hello.php
Document Length:12 bytes

Time taken for tests:   89.706050 seconds
Complete requests:  10
Failed requests:0
Write errors:   0
Requests per second:1114.75 [#/sec] (mean)
Time per request:   0.013 [ms] (mean)
Transfer rate:  268.89 [Kbytes/sec] received

Percentage of the requests served within a certain time (ms)
  50% 12
  95% 20

# ./bin/ab -c 15 -n 10 /hello.php
This is ApacheBench, Version 2.0.32 $Revision: 1.87 $ apache-2.0
Server Software:Apache/1.3.23

Document Path:  /hello.php
Document Length:12 bytes

Complete requests:  10
Failed requests:0
Write errors:   0
Requests per second:1436.89 [#/sec] (mean)
Time per request:   0.010 [ms] (mean)
Transfer rate:  259.59 [Kbytes/sec] received

Percentage of the requests served within a certain time (ms)
  50% 10
  95% 14




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




[PHP-DEV] Apache2 and PHP CVS from today

2002-02-25 Thread August

Hey Yasuo, 

Could you give a complete url to the DSO recommendation? Most
instructions on creating a high performance version of php recommend
static compiles. 

Thanks...

- AZ

-Original Message-
From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] 
August wrote:
 Sebastian wrote:
if PHP's --with-apache option needs tweaking. Why don't you use DSO 
anyhow? It's the preferred method.

 
 Why in the world is DSO the preferred method? Is this documented
 somewhere?

In apache document.

 
 I find DSO useful for testing and development, but for deployment it
 makes little sense to be using DSO, the cost of 60 seconds of compile 
 is negligible when looking at something that will be installed for 
 timeframes exceeding a day or two, especially for larger server farms.

The benefit of DSO is loading modules without compile whole apache.

For instance, I would like to use info or status module when
I have problem with my web servers, but I don't want to enable them all
the time.

-- 
Yasuo Ohgaki


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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




Re: [PHP-DEV] Apache2 and PHP CVS from today

2002-02-25 Thread August

Jim wrote:
the fact that --with-apache does not work with apache 2.x is not a bug.

I see the inability to compile a static version of php for apache as the
bug. Not too concerned with the semantics of the command. My experience
may be abnormal, but for production work, static compiles seem a must. 

I'll agree with Chand on this one, you'd think the performance hit would
only be on server startup, but there appear to be noticeable differences
beyond that. 

Someone should take a look at that DSO recommendation that's been
brought up a couple of times and add a note that for production stuff,
going static may be worth the extra compile time. 

- August






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




Re: [PHP-DEV] Apache2 and PHP CVS from today

2002-02-25 Thread Yasuo Ohgaki

August wrote:
 Please give a complete url. The apache dso docs just describe dso. Most
 instructions on creating a high performance version of php recommend
 static compiles for good reason. 
 
 Info and status are not php. They have very different usage patterns
 (used much less frequently). 
 
 And I think you'd find the performance difference between apache with
 status and info and without negligible. I have tested every single
 apache option with respect to speed and memory bloat, and those two are
 tiny.  
 
 - AZ

It's just in my memory. (My memory can be _wrong_ though ;)
There should be doc/file somewhere that recommeds DSO since
it's a most flexible to configure.

Recommendatation is recommendation, you don't have to follow
if you don't like. Recommendation can be a personal opinion
also even if it's explicitly  written in a doc ;)

-- 
Yasuo Ohgaki


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: [PHP-DEV] Apache2 and PHP CVS from today

2002-02-25 Thread Rasmus Lerdorf

I have set up dozens of production servers in the past couple of years and
not a single one of them is running the static version.  If there are
issues with the DSO, then file a bug report on that so we can fix it.

-Rasmus

On Mon, 25 Feb 2002, August wrote:

 Jim wrote:
 the fact that --with-apache does not work with apache 2.x is not a bug.

 I see the inability to compile a static version of php for apache as the
 bug. Not too concerned with the semantics of the command. My experience
 may be abnormal, but for production work, static compiles seem a must.

 I'll agree with Chand on this one, you'd think the performance hit would
 only be on server startup, but there appear to be noticeable differences
 beyond that.

 Someone should take a look at that DSO recommendation that's been
 brought up a couple of times and add a note that for production stuff,
 going static may be worth the extra compile time.

 - August






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



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




Re: [PHP-DEV] Simple Apache 1.3 vs 2.0 benchmarks

2002-02-25 Thread Rasmus Lerdorf

Uh, but did you benchmark straight cgi's between the two servers?  How
about straight static pages?

Why would you automatically attribute the difference in performance to DSO
vs. static issues?   It is pretty well known that Apache2 is currently
slower than Apache1 for stuff like this because of the added overhead of
the bucket brigade implementation and other issues.

-Rasmus

On Mon, 25 Feb 2002, August wrote:

 #include as usual, all normal benchmark disclaimers.

 This is -dev, so let's assume folks have a grasp of the gap between
 performance benchmarking and the real world. Before flaming please give
 credit to folks who are able to use this information in a larger and
 broader context, while recognizing that few of us have the time to
 implement fantastic benchmarks.

 Apache 1.3 with php *statically* compiled in gets 1436 reqs/s
 Apache 2.0 with php as DSO gets 1114 req/s.

 Apache 2 performs similarlity to Apache 1.3 with php as a DSO. Compiling
 statically appears helpful, and currently it is not possible to do so
 with apache 2. Apache 2 supports static modules generally.

 # ./bin/ab -c 15 -n 10 /hello.php
 This is ApacheBench, Version 2.0.32 $Revision: 1.87 $ apache-2.0
 Server Software:Apache/2.0.32
 Server Port:80

 Document Path:  /hello.php
 Document Length:12 bytes

 Time taken for tests:   89.706050 seconds
 Complete requests:  10
 Failed requests:0
 Write errors:   0
 Requests per second:1114.75 [#/sec] (mean)
 Time per request:   0.013 [ms] (mean)
 Transfer rate:  268.89 [Kbytes/sec] received

 Percentage of the requests served within a certain time (ms)
   50% 12
   95% 20

 # ./bin/ab -c 15 -n 10 /hello.php
 This is ApacheBench, Version 2.0.32 $Revision: 1.87 $ apache-2.0
 Server Software:Apache/1.3.23

 Document Path:  /hello.php
 Document Length:12 bytes

 Complete requests:  10
 Failed requests:0
 Write errors:   0
 Requests per second:1436.89 [#/sec] (mean)
 Time per request:   0.010 [ms] (mean)
 Transfer rate:  259.59 [Kbytes/sec] received

 Percentage of the requests served within a certain time (ms)
   50% 10
   95% 14




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



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




RE: [PHP-DEV] Simple Apache 1.3 vs 2.0 benchmarks

2002-02-25 Thread August

Hey Rasmus,

Well, I'd done a similar set of benchmarks between DSO and static with
apache 1.3.23, which showed the DSO variant getting around 1100 req/s.
So it wasn't an automatic assumption, I just noticed that the Apache 2
variant had some similar numbers. Unfortunately, the hardware I've been
working with is giving me trouble (aka segfaulting during compiles) but
I'll be happy to run some apache 1.3.23 DSO/static numbers when I get
things fixed up. 

I was actually just trying to make the point you make about performance
with Apache 2 being similar or slightly worse then Apache 1. There was
some discussion along the lines of I need the blazing Apache 2 speed
and wanted to show that was unlikely to happen, made more obvious
because Apache 2 doesn't support static builds.

There was a discussion on slashdot about some of this with some various
perspectives:
http://slashdot.org/comments.pl?sid=28250cid=3035903

Also benchmarked various MPM options, with little noticeable difference.
Its's such a narrow workload however I'm not sure it really is
meaningful. Also have benchmarked php footprint/speed for all the
various options, as well as apache footprint/speed for all the various
options. One lesson from that was that enabling or disabling the smaller
modules makes little/no footprint/speed differences especially on the
apache side. 

Anyways, hoping to get this box back in shape so I can get some work
done. 

- AZ

-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 25, 2002 10:05 PM
To: August
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] Simple Apache 1.3 vs 2.0 benchmarks


Uh, but did you benchmark straight cgi's between the two servers?  How
about straight static pages?

Why would you automatically attribute the difference in performance to
DSO
vs. static issues?   It is pretty well known that Apache2 is currently
slower than Apache1 for stuff like this because of the added overhead of
the bucket brigade implementation and other issues.

-Rasmus


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




RE: [PHP-DEV] Simple Apache 1.3 vs 2.0 benchmarks

2002-02-25 Thread Rasmus Lerdorf

Which platform are you on?

On Mon, 25 Feb 2002, August wrote:

 Hey Rasmus,

 Well, I'd done a similar set of benchmarks between DSO and static with
 apache 1.3.23, which showed the DSO variant getting around 1100 req/s.
 So it wasn't an automatic assumption, I just noticed that the Apache 2
 variant had some similar numbers. Unfortunately, the hardware I've been
 working with is giving me trouble (aka segfaulting during compiles) but
 I'll be happy to run some apache 1.3.23 DSO/static numbers when I get
 things fixed up.

 I was actually just trying to make the point you make about performance
 with Apache 2 being similar or slightly worse then Apache 1. There was
 some discussion along the lines of I need the blazing Apache 2 speed
 and wanted to show that was unlikely to happen, made more obvious
 because Apache 2 doesn't support static builds.

 There was a discussion on slashdot about some of this with some various
 perspectives:
 http://slashdot.org/comments.pl?sid=28250cid=3035903

 Also benchmarked various MPM options, with little noticeable difference.
 Its's such a narrow workload however I'm not sure it really is
 meaningful. Also have benchmarked php footprint/speed for all the
 various options, as well as apache footprint/speed for all the various
 options. One lesson from that was that enabling or disabling the smaller
 modules makes little/no footprint/speed differences especially on the
 apache side.

 Anyways, hoping to get this box back in shape so I can get some work
 done.

 - AZ

 -Original Message-
 From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 25, 2002 10:05 PM
 To: August
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP-DEV] Simple Apache 1.3 vs 2.0 benchmarks


 Uh, but did you benchmark straight cgi's between the two servers?  How
 about straight static pages?

 Why would you automatically attribute the difference in performance to
 DSO
 vs. static issues?   It is pretty well known that Apache2 is currently
 slower than Apache1 for stuff like this because of the added overhead of
 the bucket brigade implementation and other issues.

 -Rasmus



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




[PHP-DEV] Load external modules to PHP programm

2002-02-25 Thread Olga Tonkonog

Hi, all!

I try load extern library. How can I do it : compile with PHP-libraries 
or at runtime? What I need to do?

Olga

olga tonkonog
entwicklung / development

caatoosee search technology gmbh
gropiusstr. 9
d - 31137 hildesheim

fon +49 (0) 5121-99866 16
fax +49 (0) 5121-99866 01
mailto: [EMAIL PROTECTED]
http://www.caatoosee.com/cst/
--
 get what you want

Hinweis: Besuchen Sie uns auf der CeBIT 2002 vom 13.3.- 20.3. in Hannover!
Weitere Informationen finden Sie auf unserer Website!


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