[PHP-CVS] cvs: php4 /ext/standard array.c

2001-03-11 Thread Stanislav Malyshev

stasMon Mar 12 00:07:00 2001 EDT

  Modified files:  
/php4/ext/standard  array.c 
  Log:
  Use hash position with array_flip
  
  
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.99 php4/ext/standard/array.c:1.100
--- php4/ext/standard/array.c:1.99  Sun Mar 11 19:10:15 2001
+++ php4/ext/standard/array.c   Mon Mar 12 00:07:00 2001
@@ -21,7 +21,7 @@
+--+
 */
 
-/* $Id: array.c,v 1.99 2001/03/12 03:10:15 andrei Exp $ */
+/* $Id: array.c,v 1.100 2001/03/12 08:07:00 stas Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -2173,8 +2173,10 @@
zval **array, **entry, *data;
HashTable *target_hash;
char *string_key;
+   ulong str_key_len;
ulong num_key;
-   
+   HashPosition pos;
+   
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -2187,13 +2189,13 @@

array_init(return_value);
 
-   zend_hash_internal_pointer_reset(target_hash);
-   while (zend_hash_get_current_data(target_hash, (void **)&entry) == SUCCESS) {
+   zend_hash_internal_pointer_reset_ex(target_hash, &pos);
+   while (zend_hash_get_current_data_ex(target_hash, (void **)&entry, &pos) == 
+SUCCESS) {
MAKE_STD_ZVAL(data);
-   switch (zend_hash_get_current_key(target_hash, &string_key, &num_key, 
1)) {
+   switch (zend_hash_get_current_key_ex(target_hash, &string_key, 
+&str_key_len, &num_key, 1, &pos)) {
case HASH_KEY_IS_STRING:
Z_STRVAL_P(data) = string_key;
-   Z_STRLEN_P(data) = strlen(string_key);
+   Z_STRLEN_P(data) = str_key_len;
Z_TYPE_P(data) = IS_STRING;
break;
case HASH_KEY_IS_LONG:
@@ -2211,7 +2213,7 @@
php_error(E_WARNING, "Can only flip STRING and INTEGER 
values!");
}

-   zend_hash_move_forward(target_hash);
+   zend_hash_move_forward_ex(target_hash, &pos);
}
 }
 /* }}} */



-- 
PHP CVS 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] ASP vs PHP

2001-03-11 Thread Steve Edberg

At 11:48 PM -0500 3/11/01, Rick St Jean wrote:
>I was told by someone that it is possible with apache.  You can have 
>something parse
>the page once then be parsed by something else.  I don't know how 
>and I have never seen
>it but I have been told that it is possible.
>
>Rick


That would be 'stacked request handlers'...not possible, AFAIK, with 
any of the 1.x versions, but supposedly Apache 2.0 can do it. Check 
out httpd.apache.org; v2.0 is still alpha.

- steve


>
>At 11:28 PM 3/11/01 -0500, Michael Kimsal wrote:
>>You're comparing a framework to a language.
>>
>>ASP is a technology which allows code for different languages to be 
>>embedded in a file
>>parsed by a webserver (IIS).  To accomplish this, different 
>>languages need to be written
>>as modules for that webserver.  MS has VBScript (default language), 
>>JScript and PerlScript
>>(anyone know of any more?).  If someone was to write PHP to be an 
>>ASP/IIS module
>>that could be executed under the ASP framework, then yes.  Until 
>>then, no.  I also
>>don't think it's a likely scenario, but I've been wrong many times 
>>before in my life.  :)
>>
>>
>>
>>Chris Anderson wrote:
>>
>>>  This is going to sound like heresy, but is there any way to use 
>>>ASP and PHP in the same fle/page? Seperated of course.
>>
>>
>>--
>>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]
>
>##
>#  Rick St Jean,
>#  [EMAIL PROTECTED]
>#  President of Design Shark,
>#  http://www.designshark.com/
>#  Quick Contact:  http://www.designshark.com/messaging.ihtml
>#  Tel: 905-684-2952
>##
>


-- 
+--- "They've got a cherry pie there, that'll kill ya" --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+-- FBI Special Agent Dale Cooper ---+

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

2001-03-11 Thread Nick Kostirya

Hello!
Why header under Windows do not work?
Nick


-- 
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] Best way to pass SQL TEXT field via a link

2001-03-11 Thread Jens Nedal

Actually the best would be if you would remain in the page so you dont have
to pass any variables along the url but just in a submit form to the current
page. There you could include your addupdate.php with a trigger like
 and just ask that value of that
field in an if-clause. if true just include the addupdate and execute it
along.

Hope that helps, Jens Nedal

on 11.03.2001 18:12 Uhr, Fates at [EMAIL PROTECTED] wrote:

> I'm trying to update an existing record based on a link that represents
> the record to update.
> 
> I have a link and I am passing variables that were assigned from a SQL
> database to another php form page which will be used to update the
> record. I'm passing variable like so: href='addupdate.php?name=$name&category=$category&description=$etc.
> 
> This works fine for variables that contain values of only a few lines
> but what about passing a couple paragraphs stored in variable
> $description assigned via database value as TEXT.
> 
> Would it be better just to pass the database record ID to the
> destination page and then query the record in the destination form page
> and populate the form with the current values and update the record or
> is there another way I don't know about?
> 


-- 
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] Good Free PHP Editor?

2001-03-11 Thread John LYC

http://www.ultraedit.com

not free.. but worth the nominal fee


Andrew Halliday wrote:

> Does anyone know of a good PHP enabled editor that fits the following
> criteria:?
>
> (in order of importance)
> - Is free
> - Runs under Windows
> - Has colors (syntax highlighting)
> - Can edit multiple files (ie multi threaded)
> - Reports line numbers
> - Has good search & replace functionality
>
> ???
>
> Ive been using editpad up till now but my code is starting to get so large
> that ill need syntax highlighting soon...
>
> AndrewH
>
> --
> 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 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] Good Free PHP Editor?

2001-03-11 Thread David Robley

On Mon, 12 Mar 2001 17:34, Andrew Halliday wrote:
> Does anyone know of a good PHP enabled editor that fits the following
> criteria:?
>
> (in order of importance)
> - Is free
> - Runs under Windows
> - Has colors (syntax highlighting)
> - Can edit multiple files (ie multi threaded)
> - Reports line numbers
> - Has good search & replace functionality
>
> ???
>
> Ive been using editpad up till now but my code is starting to get so
> large that ill need syntax highlighting soon...
>
> AndrewH

On your local PHP mirror, go to the Links page and scroll down til you 
find PHP Scripts and Programs - follow the link for editor information by 
the ton.

-- 
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
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] Good Free PHP Editor?

2001-03-11 Thread Andrew Halliday

Does anyone know of a good PHP enabled editor that fits the following
criteria:?

(in order of importance)
- Is free
- Runs under Windows
- Has colors (syntax highlighting)
- Can edit multiple files (ie multi threaded)
- Reports line numbers
- Has good search & replace functionality

???

Ive been using editpad up till now but my code is starting to get so large
that ill need syntax highlighting soon...

AndrewH


-- 
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] ASP vs PHP

2001-03-11 Thread Rick St Jean

I was told by someone that it is possible with apache.  You can have 
something parse
the page once then be parsed by something else.  I don't know how and I 
have never seen
it but I have been told that it is possible.

Rick

At 11:28 PM 3/11/01 -0500, Michael Kimsal wrote:
>You're comparing a framework to a language.
>
>ASP is a technology which allows code for different languages to be 
>embedded in a file
>parsed by a webserver (IIS).  To accomplish this, different languages need 
>to be written
>as modules for that webserver.  MS has VBScript (default language), 
>JScript and PerlScript
>(anyone know of any more?).  If someone was to write PHP to be an ASP/IIS 
>module
>that could be executed under the ASP framework, then yes.  Until then, 
>no.  I also
>don't think it's a likely scenario, but I've been wrong many times before 
>in my life.  :)
>
>
>
>Chris Anderson wrote:
>
> > This is going to sound like heresy, but is there any way to use ASP and 
> PHP in the same fle/page? Seperated of course.
>
>
>--
>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]

##
#  Rick St Jean,
#  [EMAIL PROTECTED]
#  President of Design Shark,
#  http://www.designshark.com/
#  Quick Contact:  http://www.designshark.com/messaging.ihtml
#  Tel: 905-684-2952
##


-- 
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] ASP vs PHP

2001-03-11 Thread Michael Kimsal

You're comparing a framework to a language.

ASP is a technology which allows code for different languages to be embedded in a file
parsed by a webserver (IIS).  To accomplish this, different languages need to be 
written
as modules for that webserver.  MS has VBScript (default language), JScript and 
PerlScript
(anyone know of any more?).  If someone was to write PHP to be an ASP/IIS module
that could be executed under the ASP framework, then yes.  Until then, no.  I also
don't think it's a likely scenario, but I've been wrong many times before in my life.  
:)



Chris Anderson wrote:

> This is going to sound like heresy, but is there any way to use ASP and PHP in the 
>same fle/page? Seperated of course.


-- 
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] Resource for PHP and other technologies

2001-03-11 Thread Valter Santos

The site is very cool, narsu!!!

Congratulations, and keep the good work!



Valter Santos
WEB/WAP Consultant

Email : [EMAIL PROTECTED]
Mobile: +351 93 9650075

WeDo Consulting - http://www.wedo.pt



> -Original Message-
> From: narsu [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 09, 2001 10:35 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Resource for PHP and other technologies
> 
> 
> I developed this site http://www.hytes.com
> for techical resource for developers.  Please take a look and let me know
> your feedback.
> 
> Thanks
> Narsu
> 
> 
> 
> -- 
> 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 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-CVS] cvs: php4 /ext/standard array.c

2001-03-11 Thread Andrei Zmievski

andrei  Sun Mar 11 19:10:15 2001 EDT

  Modified files:  
/php4/ext/standard  array.c 
  Log:
  This will have to do until the docs come along.
  
  
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.98 php4/ext/standard/array.c:1.99
--- php4/ext/standard/array.c:1.98  Sun Mar 11 19:06:53 2001
+++ php4/ext/standard/array.c   Sun Mar 11 19:10:15 2001
@@ -21,7 +21,7 @@
+--+
 */
 
-/* $Id: array.c,v 1.98 2001/03/12 03:06:53 andrei Exp $ */
+/* $Id: array.c,v 1.99 2001/03/12 03:10:15 andrei Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -2816,7 +2816,7 @@
 /* }}} */
 
 /* {{{ proto mixed array_reduce(array input, mixed callback [, int initial])
-   Reduce the array by calling the callback */
+   Iteratively reduce the array to a single value via the callback. */
 PHP_FUNCTION(array_reduce)
 {
zval **input, **callback, **initial;



-- 
PHP CVS 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-CVS] cvs: php4 /ext/pcre php_pcre.c /ext/standard array.c basic_functions.c php_array.h

2001-03-11 Thread Andrei Zmievski

andrei  Sun Mar 11 19:06:59 2001 EDT

  Modified files:  
/php4/ext/pcre  php_pcre.c 
/php4/ext/standard  array.c basic_functions.c php_array.h 
  Log:
  @- Added array_reduce(), which allows iterative reduction of an array
  @  to a single value via a callback function. (Andrei)
  - Added array_reduce(), which allows iterative reduction of an array
to a single value via a callback function.
  - Fixed usage of zend_is_callable() in PCRE.
  
  
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.87 php4/ext/pcre/php_pcre.c:1.88
--- php4/ext/pcre/php_pcre.c:1.87   Sun Feb 25 22:07:11 2001
+++ php4/ext/pcre/php_pcre.cSun Mar 11 19:06:52 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: php_pcre.c,v 1.87 2001/02/26 06:07:11 andi Exp $ */
+/* $Id: php_pcre.c,v 1.88 2001/03/12 03:06:52 andrei Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -726,8 +726,11 @@
 
/* Verify and use the replacement value. */
if (use_func) {
-   if (!zend_is_callable(replace_val)) {
-   php_error(E_WARNING, "Replacement function is invalid or 
undefined");
+   char *callable_name;
+
+   if (!zend_is_callable(replace_val, 0, &callable_name)) {
+   php_error(E_WARNING, "Replacement callback '%s' is invalid or 
+undefined", callable_name);
+   efree(callable_name);
result = estrndup(subject, subject_len);
*result_len = subject_len;
return result;
@@ -1009,7 +1012,7 @@
if (Z_TYPE_PP(replace) != IS_ARRAY) {
convert_to_string_ex(replace);
} else
-   is_callable_replace = zend_is_callable(*replace);
+   is_callable_replace = zend_is_callable(*replace, 1, NULL);

/* if subject is an array */
if (Z_TYPE_PP(subject) == IS_ARRAY) {
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.97 php4/ext/standard/array.c:1.98
--- php4/ext/standard/array.c:1.97  Sun Feb 25 22:07:16 2001
+++ php4/ext/standard/array.c   Sun Mar 11 19:06:53 2001
@@ -21,7 +21,7 @@
+--+
 */
 
-/* $Id: array.c,v 1.97 2001/02/26 06:07:16 andi Exp $ */
+/* $Id: array.c,v 1.98 2001/03/12 03:06:53 andrei Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -2814,6 +2814,66 @@
 }
 
 /* }}} */
+
+/* {{{ proto mixed array_reduce(array input, mixed callback [, int initial])
+   Reduce the array by calling the callback */
+PHP_FUNCTION(array_reduce)
+{
+   zval **input, **callback, **initial;
+   zval **args[2];
+   zval **operand;
+   zval *result = NULL;
+   zval *retval;
+   char *callback_name;
+
+   if (ZEND_NUM_ARGS() < 2 || ZEND_NUM_ARGS() > 3 ||
+   zend_get_parameters_ex(ZEND_NUM_ARGS(), &input, &callback, &initial) 
+== FAILURE) {
+   WRONG_PARAM_COUNT;
+   }
+
+   if (Z_TYPE_PP(input) != IS_ARRAY) {
+   php_error(E_WARNING, "%s() expects argument 1 to be an array",
+ get_active_function_name());
+   return;
+   }
+
+   if (!zend_is_callable(*callback, 0, &callback_name)) {
+   php_error(E_WARNING, "%s() expects argument 2, '%s', to be a valid 
+callback",
+ get_active_function_name(), callback_name);
+   efree(callback_name);
+   return;
+   }
+
+   if (ZEND_NUM_ARGS() > 2)
+   result = *initial;
+
+   if (zend_hash_num_elements(Z_ARRVAL_PP(input)) == 0) {
+   if (result) {
+   *return_value = *result;
+   zval_copy_ctor(return_value);
+   }
+   return;
+   }
+
+   zend_hash_internal_pointer_reset(Z_ARRVAL_PP(input));
+   while (zend_hash_get_current_data(Z_ARRVAL_PP(input), (void **)&operand) == 
+SUCCESS) {
+   if (result) {
+   args[0] = &result;
+   args[1] = operand;
+   if (call_user_function_ex(EG(function_table), NULL, *callback, 
+&retval, 2, args, 0, NULL) == SUCCESS && retval) {
+   result = retval;
+   } else {
+   php_error(E_WARNING, "%s() had an error invoking the 
+reduction callback", get_active_function_name());
+   return;
+   }
+   } else
+   result = *operand;
+
+   zend_hash_move_forward(Z_ARRVAL_PP(input));
+   }
+   
+   *return_value = *result;
+}
 
 /*
  * Local variables:
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.314 
php4/ext/standard/basic_functions.c:1.315
--- php4/ext/sta

[PHP-CVS] cvs: php4 /pear/Console Getopt.php

2001-03-11 Thread Andrei Zmievski

andrei  Sun Mar 11 19:05:04 2001 EDT

  Modified files:  
/php4/pear/Console  Getopt.php 
  Log:
  Use proper class name.
  
  
Index: php4/pear/Console/Getopt.php
diff -u php4/pear/Console/Getopt.php:1.1 php4/pear/Console/Getopt.php:1.2
--- php4/pear/Console/Getopt.php:1.1Thu Jan 11 10:38:26 2001
+++ php4/pear/Console/Getopt.phpSun Mar 11 19:05:04 2001
@@ -17,7 +17,7 @@
 // | Authors: Andrei Zmievski <[EMAIL PROTECTED]>   |
 // +--+
 //
-// $Id: Getopt.php,v 1.1 2001/01/11 18:38:26 andrei Exp $
+// $Id: Getopt.php,v 1.2 2001/03/12 03:05:04 andrei Exp $
 
 require_once 'PEAR.php';
 
@@ -87,11 +87,11 @@
 if ($arg{0} != '-' || ($arg{1} == '-' && !$long_options)) {
 $non_opts[] = $arg;
 } else if ($arg{1} == '-') {
-$error = Getopt::_parseLongOption(substr($arg, 2), $long_options, 
$opts, $args);
+$error = Console_Getopt::_parseLongOption(substr($arg, 2), 
+$long_options, $opts, $args);
 if (PEAR::isError($error))
 return $error;
 } else {
-$error = Getopt::_parseShortOption(substr($arg, 1), $short_options, 
$opts, $args);
+$error = Console_Getopt::_parseShortOption(substr($arg, 1), 
+$short_options, $opts, $args);
 if (PEAR::isError($error))
 return $error;
 }



-- 
PHP CVS 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-CVS] cvs: php4 /ext/ldap config.m4

2001-03-11 Thread Jani Taskinen

sniper  Sun Mar 11 18:06:07 2001 EDT

  Modified files:  
/php4/ext/ldap  config.m4 
  Log:
  Cleaning this a little bit.
  
Index: php4/ext/ldap/config.m4
diff -u php4/ext/ldap/config.m4:1.13 php4/ext/ldap/config.m4:1.14
--- php4/ext/ldap/config.m4:1.13Sun Oct 15 15:53:43 2000
+++ php4/ext/ldap/config.m4 Sun Mar 11 18:06:06 2001
@@ -1,81 +1,86 @@
-dnl $Id: config.m4,v 1.13 2000/10/15 22:53:43 sniper Exp $
+dnl $Id: config.m4,v 1.14 2001/03/12 02:06:06 sniper Exp $
 
+AC_DEFUN(PHP_LDAP_CHECKS, [
+  if test -f $1/include/ldap.h; then
+LDAP_DIR=$1
+LDAP_INCDIR=$1/include
+LDAP_LIBDIR=$1/lib
+  elif test -f $1/include/umich-ldap/ldap.h; then
+LDAP_DIR=$i
+LDAP_INCDIR=$1/include/umich-ldap
+LDAP_LIBDIR=$1/lib
+  elif test -f $1/ldap/public/ldap.h; then
+LDAP_DIR=$i
+LDAP_INCDIR=$1/ldap/public
+LDAP_LIBDIR=$1/lib
+  fi
+])
+  
 PHP_ARG_WITH(ldap,whether to include LDAP support,
-[  --with-ldap[=DIR]   Include LDAP support.  DIR is the LDAP base
-  install directory.])
+[  --with-ldap[=DIR]   Include LDAP support.  DIR is the LDAP base install 
+directory.])
 
 if test "$PHP_LDAP" != "no"; then
-   PHP_EXTENSION(ldap,$ext_shared)
-   for i in /usr/local /usr $PHP_LDAP; do
-   if test -f $i/include/ldap.h; then
-   LDAP_DIR=$i
-   LDAP_INCDIR=$i/include
-   LDAP_LIBDIR=$i/lib
-   elif test -f $i/include/umich-ldap/ldap.h; then
-   LDAP_DIR=$i
-   LDAP_INCDIR=$i/include/umich-ldap
-   LDAP_LIBDIR=$i/lib
-   elif test -f $i/ldap/public/ldap.h; then
-   LDAP_DIR=$i
-   LDAP_INCDIR=$i/ldap/public
-   LDAP_LIBDIR=$i/lib
-   fi
-   done
-
-   if test -z "$LDAP_DIR"; then
-   AC_MSG_ERROR(Cannot find ldap.h)
-   fi
-
-   dnl The Linux version of the SDK need -lpthread
-   dnl I have tested Solaris, and it doesn't, but others may.  Add
-   dnl these here if necessary.   -RL
-
-   dnl Is this really necessary? -Troels Arvin
-
-   if test `uname` = "Linux"; then
-   LDAP_PTHREAD="pthread"
-   else
-   LDAP_PTHREAD=
-   fi
-
-   PHP_SUBST(LDAP_SHARED_LIBADD)
-
-   if test -f $LDAP_LIBDIR/liblber.a -o -f $LDAP_LIBDIR/liblber.so ; then
-   AC_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
-   AC_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
-   elif test -f $LDAP_LIBDIR/libldapssl41.so; then
-   if test -n "$LDAP_PTHREAD"; then 
-   AC_ADD_LIBRARY($LDAP_PTHREAD)
-   fi
-   AC_ADD_LIBRARY_WITH_PATH(ldapssl41, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
-   AC_DEFINE(HAVE_NSLDAP,1,[ ])
-   elif test -f $LDAP_LIBDIR/libldapssl30.so; then
-   if test -n "$LDAP_PTHREAD"; then 
-   AC_ADD_LIBRARY($LDAP_PTHREAD)
-   fi
-   AC_ADD_LIBRARY_WITH_PATH(ldapssl30, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
-   AC_DEFINE(HAVE_NSLDAP,1,[ ])
-   elif test -f $LDAP_LIBDIR/libldapssl30.sl; then
-   AC_ADD_LIBRARY_WITH_PATH(ldapssl30, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
-   AC_DEFINE(HAVE_NSLDAP,1,[ ])
-   elif test -f $LDAP_LIBDIR/libldap30.so; then
-   if test -n "$LDAP_PTHREAD"; then 
-   AC_ADD_LIBRARY($LDAP_PTHREAD)
-   fi
-   AC_ADD_LIBRARY_WITH_PATH(ldap30, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
-   AC_DEFINE(HAVE_NSLDAP,1,[ ])
-   elif test -f $LDAP_LIBDIR/libldap30.sl; then
-   AC_ADD_LIBRARY_WITH_PATH(ldap30, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
-   AC_DEFINE(HAVE_NSLDAP,1,[ ])
-   elif test -f $LDAP_LIBDIR/libumich_ldap.so; then
-   AC_ADD_LIBRARY_WITH_PATH(umich_lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
-   AC_ADD_LIBRARY_WITH_PATH(umich_ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
-   elif test -f $LDAP_LIBDIR/libclntsh.so; then
-   AC_ADD_LIBRARY_WITH_PATH(clntsh, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
-   AC_DEFINE(HAVE_ORALDAP,1,[ ])
-   fi  
 
-   AC_ADD_INCLUDE($LDAP_INCDIR)
-   AC_DEFINE(HAVE_LDAP,1,[ ])
+  PHP_EXTENSION(ldap,$ext_shared)
 
-fi
+  if test "$PHP_LDAP" = "yes"; then
+for i in /usr/local /usr; do
+  PHP_LDAP_CHECKS($i)
+done
+  else
+PHP_LDAP_CHECKS($PHP_LDAP)
+  fi
+
+  if test -z "$LDAP_DIR"; then
+AC_MSG_ERROR(Cannot find ldap.h)
+  fi
+
+  dnl The Linux version of the SDK need -lpthread
+  dnl I have tested Solaris, and it doesn't, but others may.  Add
+  dnl these here if necessary.   -RL
+  dnl Is this really necessary? -Troels Arvin
+
+  if test `uname` = "Linux"; then
+LDAP_PTHREAD="pthrea

Re: [PHP] RegExp help..

2001-03-11 Thread David Robley

On Mon, 12 Mar 2001 12:10, John Vanderbeck wrote:
> I really wish I could figure these darn things out :)  I have a task I
> need to do, and i'm certain I could do this easily with a regexp..
>
> I have a file name in the format MMDDYY-*.txt...I need to parse it to
> determine if the month and year matches a specified month and year. 
> Day is irrelevant
>
> Can any of your regexp wizards help me?

A non-regexp solution that comes to mind is to use substr() to extract 
the bits you want from the filename, assuming the filenames to be always 
as your example. So:

$month = substr($filename,0,2);
$year = substr($filename,4,2);

Then you have the string values for month and year in the respective 
variables.

-- 
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
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] RegExp help..

2001-03-11 Thread John Vanderbeck


I really wish I could figure these darn things out :)  I have a task I need
to do, and i'm certain I could do this easily with a regexp..

I have a file name in the format MMDDYY-*.txt...I need to parse it to
determine if the month and year matches a specified month and year.  Day is
irrelevant

Can any of your regexp wizards help me?

Thanks!

- John Vanderbeck
- Admin, GameDesign



-- 
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] ASP vs PHP

2001-03-11 Thread Chris Anderson

This is going to sound like heresy, but is there any way to use ASP and PHP in the 
same fle/page? Seperated of course.



php-general Digest 12 Mar 2001 01:25:40 -0000 Issue 561

2001-03-11 Thread php-general-digest-help


php-general Digest 12 Mar 2001 01:25:40 - Issue 561

Topics (messages 43385 through 43422):

new line in forms?
43385 by: Jens
43386 by: Bård Farstad
43416 by: Henrik Hansen

Re: DB Abstraction
43387 by: Pierre-Yves Lemaire

Re: Retrieving data from multiple select list
43388 by: Ben Cheng
43394 by: Carsten Gehling

Re: PHP & Apache with SSL
43389 by: Rouvas Stathis

Re: Sending "pretty" email
43390 by: Todd Cary
43399 by: Derek Sivers
43403 by: Michael Geier
43405 by: Chris Adams

Passing string variable gets cut off
43391 by: Fates
43393 by: Jens Nedal

Re: objects in functions?
43392 by: Carsten Gehling

Best way to pass SQL TEXT field via a link
43395 by: Fates
43401 by: Pierre-Yves Lemaire

Problems with string replacement
43396 by: James, Yz
43413 by: Christian Reiniger
43414 by: James, Yz

date
43397 by: FredrikAT
43402 by: Pierre-Yves Lemaire
43404 by: Chris Adams

When a form var is empty, how do you tell?
43398 by: Dennis Gearon
43409 by: Lewis Bergman

spidering dynamic pages
43400 by: Derek Sivers

fscanf
43406 by: Kubol

date (urgent!)
43407 by: FredrikAT
43415 by: Henrik Hansen

Variable dynamique
43408 by: Pierre-Yves Lemaire
43412 by: Christian Reiniger

Re: problem with include/require
43410 by: Yasuo Ohgaki

displaying pictures form db [problem]
43411 by: Siim Einfeldt aka Itpunk

Flash call erase my session
43417 by: Pierre-Yves Lemaire
43418 by: Pierre-Yves Lemaire

Fetching mails from a mailbox in PHP
43419 by: Filip Olsson
43420 by: Jason Brooke

Mailing List
43421 by: Thomas Anderson
43422 by: David Robley

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



You have probably had this question a few times, but can anyone tell me how
to detect "new line's" or breaks in form fealds from both PC and Mac. And
then replacing the "new line" with a  so that I can use it for the web?

Thanks in advance

Jens






On Sunday 11 March 2001 14:37, Jens wrote:
> You have probably had this question a few times, but can anyone tell me how
> to detect "new line's" or breaks in form fealds from both PC and Mac. And
> then replacing the "new line" with a  so that I can use it for the web?

$string = nl2br( $string );

-- 
Bård Farstad
Systems developer
ez.no | developer.ez.no | zez.org




> On Sunday 11 March 2001 14:37, Jens wrote:
> > You have probably had this question a few times, but can anyone tell me
how
> > to detect "new line's" or breaks in form fealds from both PC and Mac.
And
> > then replacing the "new line" with a  so that I can use it for the
web?
>
> $string = nl2br( $string );


nl2br() don't replace the newlines with a  they insert a  before
the newline,
therefor you need something like:

$string = str_replace("\n", "", $string);

--
Henrik Hansen





Hello,

For the most popular one, it is include in the phplib package:
http://phplib.netuse.de/download/index.php3

Or for just the mysql database class, I like this one:
MySQL_class at: http://phpclasses.upperdesign.com/ (login required)

py



- Original Message -
From: Jordan Elver <[EMAIL PROTECTED]>
To: PHP DB Mailing List <[EMAIL PROTECTED]>; PHP General Mailing List
<[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 12:54 PM
Subject: [PHP] DB Abstraction


> Hi,
> I thought it was about time I started using a db abstraction class.
Problem
> is, there are so many out there that I don't which one to start using?
>
> I've heard of ADODB (I think).
>
> Anyone have any suggestions?
>
> Cheers,
>
> Jord
>
>
> --
> 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]
>
>





Yeah I saw this in the online manual but is there any other way of 
doing this that doesn't require naming the select box in HTML with a 
[] at the end?  Cause I have another button that calls a JavaScript 
to select all the options within CategoryID[] and it doesn't seem to 
work cause it's looking for a CategoryID[] array instead of a select 
box named CategoryID[].

-Ben
P.S.  Please send responses directly to my email address as well 
since I'm in digest mode.  Thanks.

At 10:05 AM +0100 3/11/01, Edi Murfy wrote:
>try this:
>
>in the form:
>
>Item 1
>Item 2
>Item 3
>
>
>in the script:
>$num = sizeof($CategoryID); // Number of array items
>for($i=0;$i<$num;$i++)
>   {
>   // $CategoryID[$i] --> whatever you wanna do with it...
>   }
>
>
>
>"Ben Cheng" <[EMAIL PROTE

Re: [PHP] Mailing List

2001-03-11 Thread David Robley

On Mon, 12 Mar 2001 11:54, Thomas Anderson wrote:
> Ok, I've tried time and time again to unsubscribe from php.net's
> mailing list unisubscribe instructions but it doesn't work. So how do I
> get off the list?
>
>
The following is at the bottom of each message from the list:

To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

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

2001-03-11 Thread Thomas Anderson

Ok, I've tried time and time again to unsubscribe from php.net's mailing
list unisubscribe instructions but it doesn't work. So how do I get off the
list?


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

-- 
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-CVS] cvs: php4 /ext/pdf config.m4

2001-03-11 Thread Jani Taskinen

sniper  Sun Mar 11 17:20:14 2001 EDT

  Modified files:  
/php4/ext/pdf   config.m4 
  Log:
  ws fixes. Plus removed unnecessary AC_MSG_ calls.
  
Index: php4/ext/pdf/config.m4
diff -u php4/ext/pdf/config.m4:1.14 php4/ext/pdf/config.m4:1.15
--- php4/ext/pdf/config.m4:1.14 Mon Feb 12 09:50:38 2001
+++ php4/ext/pdf/config.m4  Sun Mar 11 17:20:13 2001
@@ -1,24 +1,22 @@
-dnl $Id: config.m4,v 1.14 2001/02/12 17:50:38 rjs Exp $
+dnl $Id: config.m4,v 1.15 2001/03/12 01:20:13 sniper Exp $
 
-AC_MSG_CHECKING(whether to include Pdflib 3.x support)
-
-PHP_ARG_WITH(pdflib,whether to include pdflib support,
+PHP_ARG_WITH(pdflib,whether to include PDFlib support,
 [  --with-pdflib[=DIR] Include pdflib 3.x support. DIR is the pdflib
- base install directory, defaults to /usr/local
- Set DIR to "shared" to build as dl, or "shared,DIR"
+  base install directory, defaults to /usr/local
+  Set DIR to "shared" to build as dl, or "shared,DIR"
   to build as dl and still specify DIR.])
 
   case "$PHP_PDFLIB" in
-no)
-  AC_MSG_RESULT(no) ;;
 yes)
-  AC_MSG_RESULT(yes)
   PHP_EXTENSION(pdf, $ext_shared)
   old_LDFLAGS=$LDFLAGS
- old_LIBS=$LIBS
- LIBS="$LIBS -ltiff -ljpeg -lpng -lz"
-  AC_CHECK_LIB(pdf, PDF_show_boxed, [AC_DEFINE(HAVE_PDFLIB,1,[ ])],
-[AC_MSG_ERROR(pdflib extension requires at least pdflib 3.x. You may also 
need libtiff and libjpeg. If so, use the options --with-tiff-dir= and 
--with-jpeg-dir=)])
+  old_LIBS=$LIBS
+  LIBS="$LIBS -ltiff -ljpeg -lpng -lz"
+  AC_CHECK_LIB(pdf, PDF_show_boxed, [
+AC_DEFINE(HAVE_PDFLIB,1,[ ])
+  ],[
+AC_MSG_ERROR(pdflib extension requires at least pdflib 3.x. You may also need 
+libtiff and libjpeg. If so, use the options --with-tiff-dir= and 
+--with-jpeg-dir=)
+  ])
   LIBS=$old_LIBS
   LDFLAGS=$old_LDFLAGS
   PHP_SUBST(PDFLIB_SHARED_LIBADD)
@@ -31,7 +29,6 @@
 *)
   test -f $withval/include/pdflib.h && PDFLIB_INCLUDE="$withval/include"
   if test -n "$PDFLIB_INCLUDE" ; then
-AC_MSG_RESULT(yes)
 PHP_EXTENSION(pdf, $ext_shared)
 old_withval=$withval
 
@@ -112,13 +109,15 @@
 
 old_LIBS=$LIBS
 LIBS="$LIBS -L$withval/lib"
-AC_CHECK_LIB(pdf, PDF_show_boxed, [AC_DEFINE(HAVE_PDFLIB,1,[ ]) 
PDFLIB_LIBS="$PDFLIB_LIBS -L$withval/lib -lpdf"],
-  [AC_MSG_ERROR(pdflib extension requires pdflib 3.x.)])
+AC_CHECK_LIB(pdf, PDF_show_boxed, [
+  AC_DEFINE(HAVE_PDFLIB,1,[ ]) 
+  PDFLIB_LIBS="$PDFLIB_LIBS -L$withval/lib -lpdf"
+],[
+  AC_MSG_ERROR(pdflib extension requires pdflib 3.x.)
+])
 LIBS=$old_LIBS
-   PHP_SUBST(PDFLIB_SHARED_LIBADD)
+PHP_SUBST(PDFLIB_SHARED_LIBADD)
 AC_ADD_LIBRARY_WITH_PATH(pdf, $withval/lib, PDFLIB_SHARED_LIBADD)
 AC_ADD_INCLUDE($PDFLIB_INCLUDE)
-  else
-AC_MSG_RESULT(no)
   fi ;;
   esac



-- 
PHP CVS 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-CVS] cvs: php4 /ext/muscat config.m4

2001-03-11 Thread Jani Taskinen

sniper  Sun Mar 11 16:46:15 2001 EDT

  Modified files:  
/php4/ext/muscatconfig.m4 
  Log:
  ws fix.
  
Index: php4/ext/muscat/config.m4
diff -u php4/ext/muscat/config.m4:1.1 php4/ext/muscat/config.m4:1.2
--- php4/ext/muscat/config.m4:1.1   Thu Jan 18 05:21:33 2001
+++ php4/ext/muscat/config.m4   Sun Mar 11 16:46:15 2001
@@ -1,7 +1,7 @@
-dnl $Id: config.m4,v 1.1 2001/01/18 13:21:33 samjam Exp $
+dnl $Id: config.m4,v 1.2 2001/03/12 00:46:15 sniper Exp $
 
 PHP_ARG_WITH(muscat, for Muscat support,
-[  --with-muscat[=DIR] Include muscat support.])
+[  --with-muscat[=DIR] Include muscat support.])
 
 if test "$PHP_MUSCAT" != "no"; then
   PHP_EXTENSION(muscat, $ext_shared)



-- 
PHP CVS 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] Fetching mails from a mailbox in PHP

2001-03-11 Thread Jason Brooke

Yes - see the network functions in the Php manual.
If you don't already know the protocol commands for the mail retrieval
protocol you want to use, see the relevant rfc.

jason

- Original Message -
From: "Filip Olsson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 12, 2001 10:12 AM
Subject: [PHP] Fetching mails from a mailbox in PHP


Question:

Can you by any other means except the IMAP functions get the mails from an
mailbox?
Appreciate an answer.


--
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 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-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-03-11 Thread Andrei Zmievski

andrei  Sun Mar 11 16:30:22 2001 EDT

  Modified files:  
/CVSROOTavail gen_acl_file.m4 
  Log:
  PHP GTK web karma for James.
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.116 CVSROOT/avail:1.117
--- CVSROOT/avail:1.116 Sun Mar 11 16:19:05 2001
+++ CVSROOT/avail   Sun Mar 11 16:30:21 2001
@@ -10,7 +10,7 @@
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams,smasiello,dim,lucasr,cpereira,lagflores,kjh90,ernani,theseer,cevm,noribsd,eskaly,mctrash,berto,leobopp,tcr,subjective|phpdoc
 avail|andrei,fmk,zimt,jan,changelog|php-gtk
 avail|jmoore,adrianz,protoman,sfox|php-gtk/docs
-avail|andrei,fmk|php-gtk-web
+avail|andrei,fmk,jmoore|php-gtk-web
 avail|emile,davidg,alan_k,ab|php4/ext/midgard
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.120 CVSROOT/gen_acl_file.m4:1.121
--- CVSROOT/gen_acl_file.m4:1.120   Sun Mar 11 16:19:05 2001
+++ CVSROOT/gen_acl_file.m4 Sun Mar 11 16:30:21 2001
@@ -28,7 +28,7 @@
 avail|php_dev,php_ext,php_doc|phpdoc
 avail|andrei,fmk,zimt,jan,changelog|php-gtk
 avail|php_gtk_doc|php-gtk/docs
-avail|andrei,fmk|php-gtk-web
+avail|andrei,fmk,jmoore|php-gtk-web
 avail|php_midgard|php4/ext/midgard
 dnl Access to individual dirs in the code tree
 avail|rasmus|php4/ext/aspell



-- 
PHP CVS 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-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-03-11 Thread Andrei Zmievski

andrei  Sun Mar 11 16:19:06 2001 EDT

  Modified files:  
/CVSROOTavail gen_acl_file.m4 
  Log:
  Put dnl in.
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.115 CVSROOT/avail:1.116
--- CVSROOT/avail:1.115 Sun Mar 11 14:40:11 2001
+++ CVSROOT/avail   Sun Mar 11 16:19:05 2001
@@ -1,5 +1,4 @@
 
-
 unavail
 avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane|CVSROOT
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,andre,sniper,david,lyric,zimt,mk,goba,zak,jmcastagnetto|phpweb
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.119 CVSROOT/gen_acl_file.m4:1.120
--- CVSROOT/gen_acl_file.m4:1.119   Sun Mar 11 14:40:11 2001
+++ CVSROOT/gen_acl_file.m4 Sun Mar 11 16:19:05 2001
@@ -15,7 +15,7 @@
 dnl
 define(`php_midgard', `emile,davidg,alan_k,ab')dnl
 dnl PHP-GTK Documentation Group
-define(`php_gtk_doc', `jmoore,adrianz,protoman,sfox')
+define(`php_gtk_doc', `jmoore,adrianz,protoman,sfox')dnl
 dnl
 unavail
 avail|php_group|CVSROOT



-- 
PHP CVS 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] Fetching mails from a mailbox in PHP

2001-03-11 Thread Filip Olsson

Question:

Can you by any other means except the IMAP functions get the mails from an mailbox?
Appreciate an answer.


--
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-CVS] cvs: php4 /ext/midgard config.m4 config.m4.session

2001-03-11 Thread David Guerizec

davidg  Sun Mar 11 15:45:58 2001 EDT

  Modified files:  
/php4/ext/midgard   config.m4 config.m4.session 
  Log:
  fixed misplaced PHP_SUBST
  
  
Index: php4/ext/midgard/config.m4
diff -u php4/ext/midgard/config.m4:1.12 php4/ext/midgard/config.m4:1.13
--- php4/ext/midgard/config.m4:1.12 Sun Mar 11 15:30:36 2001
+++ php4/ext/midgard/config.m4  Sun Mar 11 15:45:57 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.12 2001/03/11 23:30:36 davidg Exp $
+dnl $Id: config.m4,v 1.13 2001/03/11 23:45:57 davidg Exp $
 
 dnl  Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 dnl  Copyright (C) 2000 The Midgard Project ry
@@ -22,8 +22,6 @@
 AC_DECL_YYTEXT
 AC_PROG_LEX
 
-PHP_SUBST(MIDGARD_SHARED_LIB)
-
 PHP_ARG_WITH(midgard, for midgard support,
 [  --with-midgard  Include midgard 1.4 support])
 
@@ -58,6 +56,8 @@
   LFLAGS="$LFLAGS -Pmgd -olex.yy.c"
   
   PHP_SUBST(GLIBCONFIG)
+
+  PHP_SUBST(MIDGARD_SHARED_LIB)
 
   AC_MSG_CHECKING(for midgard experimental functions support)
   AC_ARG_ENABLE(mgd-experimental, 
Index: php4/ext/midgard/config.m4.session
diff -u php4/ext/midgard/config.m4.session:1.2 php4/ext/midgard/config.m4.session:1.3
--- php4/ext/midgard/config.m4.session:1.2  Sun Mar 11 15:30:36 2001
+++ php4/ext/midgard/config.m4.session  Sun Mar 11 15:45:57 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4.session,v 1.2 2001/03/11 23:30:36 davidg Exp $
+dnl $Id: config.m4.session,v 1.3 2001/03/11 23:45:57 davidg Exp $
 
 dnl  Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 dnl  Copyright (C) 2000 The Midgard Project ry
@@ -22,8 +22,6 @@
 AC_DECL_YYTEXT
 AC_PROG_LEX
 
-PHP_SUBST(MIDGARD_SHARED_LIB)
-
 PHP_ARG_WITH(midgard, for midgard support,
 [  --with-midgard  Include midgard 1.4 support])
 
@@ -58,6 +56,8 @@
   LFLAGS="$LFLAGS -Pmgd -olex.yy.c"
   
   PHP_SUBST(GLIBCONFIG)
+
+  PHP_SUBST(MIDGARD_SHARED_LIB)
 
   AC_MSG_CHECKING(for midgard experimental functions support)
   AC_ARG_ENABLE(mgd-experimental, 



-- 
PHP CVS 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-CVS] cvs: php4 /ext/midgard attachment.c config.m4 config.m4.session

2001-03-11 Thread David Guerizec

davidg  Sun Mar 11 15:30:36 2001 EDT

  Modified files:  
/php4/ext/midgard   attachment.c config.m4 config.m4.session 
  Log:
  added PHP_SUBST(MIDGARD_SHARED_LIB) to dynamically link against libmidgard in 
config.m4
  removed debug info in attachments
  
  
Index: php4/ext/midgard/attachment.c
diff -u php4/ext/midgard/attachment.c:1.9 php4/ext/midgard/attachment.c:1.10
--- php4/ext/midgard/attachment.c:1.9   Sun Mar 11 07:40:03 2001
+++ php4/ext/midgard/attachment.c   Sun Mar 11 15:30:36 2001
@@ -1,4 +1,4 @@
-/* $Id: attachment.c,v 1.9 2001/03/11 15:40:03 davidg Exp $
+/* $Id: attachment.c,v 1.10 2001/03/11 23:30:36 davidg Exp $
 Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -37,7 +37,6 @@
 {
 zval **table, **id;
 
-mgd_log_debug(0, "get_blob_id");
if (self == NULL) {
   if (calltype) *calltype = MGD_BLOB_CALL_FUNC;
   if (name == NULL) return MGD_ERR_INVALID_NAME;
@@ -63,14 +62,10 @@
   convert_to_long_ex(id);
   return (*id)->value.lval;
}
-mgd_log_debug(0, "before $s", (*table)->value.str.val);
 
if (calltype) *calltype = MGD_BLOB_CALL_OTHER;
if (name == NULL) return MGD_ERR_INVALID_NAME;
convert_to_string_ex(name);
-mgd_log_debug(0, "before return: ptable=$q AND pid=$d AND name=$q",
-(*table)->value.str.val, (*id)->value.lval,
-(*name)->value.str.val);
return mgd_exists_id(mgd_handle(), "blobs",
 "ptable=$q AND pid=$d AND name=$q",
 (*table)->value.str.val, (*id)->value.lval,
Index: php4/ext/midgard/config.m4
diff -u php4/ext/midgard/config.m4:1.11 php4/ext/midgard/config.m4:1.12
--- php4/ext/midgard/config.m4:1.11 Thu Mar  8 02:49:18 2001
+++ php4/ext/midgard/config.m4  Sun Mar 11 15:30:36 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.11 2001/03/08 10:49:18 davidg Exp $
+dnl $Id: config.m4,v 1.12 2001/03/11 23:30:36 davidg Exp $
 
 dnl  Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 dnl  Copyright (C) 2000 The Midgard Project ry
@@ -21,6 +21,8 @@
 AC_PROG_YACC
 AC_DECL_YYTEXT
 AC_PROG_LEX
+
+PHP_SUBST(MIDGARD_SHARED_LIB)
 
 PHP_ARG_WITH(midgard, for midgard support,
 [  --with-midgard  Include midgard 1.4 support])
Index: php4/ext/midgard/config.m4.session
diff -u php4/ext/midgard/config.m4.session:1.1 php4/ext/midgard/config.m4.session:1.2
--- php4/ext/midgard/config.m4.session:1.1  Thu Mar  8 02:39:31 2001
+++ php4/ext/midgard/config.m4.session  Sun Mar 11 15:30:36 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4.session,v 1.1 2001/03/08 10:39:31 davidg Exp $
+dnl $Id: config.m4.session,v 1.2 2001/03/11 23:30:36 davidg Exp $
 
 dnl  Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 dnl  Copyright (C) 2000 The Midgard Project ry
@@ -21,6 +21,8 @@
 AC_PROG_YACC
 AC_DECL_YYTEXT
 AC_PROG_LEX
+
+PHP_SUBST(MIDGARD_SHARED_LIB)
 
 PHP_ARG_WITH(midgard, for midgard support,
 [  --with-midgard  Include midgard 1.4 support])



-- 
PHP CVS 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-CVS] cvs: php4 /pear DB.php

2001-03-11 Thread Jon Parise

jon Sun Mar 11 15:26:19 2001 EDT

  Modified files:  
/php4/pear  DB.php 
  Log:
  Revised version of the parseDSN function.
  
  Submitted by: "Tomas V.V.Cox" <[EMAIL PROTECTED]>
  
  
Index: php4/pear/DB.php
diff -u php4/pear/DB.php:1.49 php4/pear/DB.php:1.50
--- php4/pear/DB.php:1.49   Tue Feb 20 15:00:08 2001
+++ php4/pear/DB.phpSun Mar 11 15:26:18 2001
@@ -1,5 +1,5 @@
|
-// |  |
+// |  Tomas V.V.Cox <[EMAIL PROTECTED]> |
 // +--+
 //
-// $Id: DB.php,v 1.49 2001/02/20 23:00:08 ssb Exp $
+// $Id: DB.php,v 1.50 2001/03/11 23:26:18 jon Exp $
 //
 // Database independent query interface.
 //
@@ -346,95 +346,106 @@
  *
  * @return array an associative array with the following keys:
  *
- * phptype: Database backend used in PHP (mysql, odbc etc.)
- * dbsyntax: Database used with regards to SQL syntax etc.
- * protocol: Communication protocol to use (tcp, unix etc.)
- * hostspec: Host specification (hostname[:port])
- * database: Database to use on the DBMS server
- * username: User name for login
- * password: Password for login
+ *  phptype: Database backend used in PHP (mysql, odbc etc.)
+ *  dbsyntax: Database used with regards to SQL syntax etc.
+ *  protocol: Communication protocol to use (tcp, unix etc.)
+ *  hostspec: Host specification (hostname[:port])
+ *  database: Database to use on the DBMS server
+ *  username: User name for login
+ *  password: Password for login
  *
  * The format of the supplied DSN is in its fullest form:
  *
  *  phptype(dbsyntax)://username:password@protocol+hostspec/database
  *
  * Most variations are allowed:
- *  phptype://username:password@protocol+hostspec/database
- *  phptype://username:password@hostspec/database
- *  phptype://username:password@hostspec
- *  phptype://hostspec/database
- *  phptype://hostspec
- *  phptype(dbsyntax)
- *  phptype
+ *
+ *  phptype://username:password@protocol+hostspec:110//usr/db_file.db
+ *  phptype://username:password@hostspec/database_name
+ *  phptype://username:password@hostspec
+ *  phptype://username@hostspec
+ *  phptype://hostspec/database
+ *  phptype://hostspec
+ *  phptype(dbsyntax)
+ *  phptype
  *
- * @return bool FALSE is returned on error
+ * @author Tomas V.V.Cox <[EMAIL PROTECTED]>
  */
 function parseDSN($dsn)
 {
-   if (is_array($dsn)) {
-   return $dsn;
-   }
-
-   $parsed = array(
-   "phptype"  => false,
-   "dbsyntax" => false,
-   "protocol" => false,
-   "hostspec" => false,
-   "database" => false,
-   "username" => false,
-   "password" => false
-   );
-
-   if (preg_match("|^([^:]+)://|", $dsn, $arr)) {
-   $dbtype = $arr[ 1 ];
-   $dsn = preg_replace( "|^[^:]+://|", '', $dsn);
-   
-   // match "phptype(dbsyntax)"
-   if (preg_match("|^([^\(]+)\((.+)\)$|", $dbtype, $arr)) {
-   $parsed["phptype"] = $arr[1];
-   $parsed["dbsyntax"] = $arr[2];
-   } else {
-   $parsed["phptype"] = $dbtype;
-   }
-} else {
-   // match "phptype(dbsyntax)"
-   if (preg_match("|^([^\(]+)\((.+)\)$|", $dsn, $arr)) {
-   $parsed["phptype"] = $arr[1];
-   $parsed["dbsyntax"] = $arr[2];
-   } else {
-   $parsed["phptype"] = $dsn;
-   }
-
-   return $parsed;
+if (is_array($dsn)) {
+return $dsn;
 }
 
-if (preg_match("|^(.*)/([^/]+)/?$|", $dsn, $arr)) {
-   $parsed["database"] = $arr[2];
-   $dsn = $arr[1];
+$parsed = array(
+'phptype'  => false,
+'dbsyntax' => false,
+'protocol' => false,
+'hostspec' => false,
+'database' => false,
+'username' => false,
+'password' => false
+);
+
+// Find phptype and dbsyntax
+if (($pos = strpos($dsn, '://')) !== false) {
+$str = substr($dsn, 0, $pos);
+$dsn = substr($dsn, $pos + 3);
+} else {
+$str = $dsn;
+$dsn = NULL;
 }
 
-if (preg_match("|^([^:]+):([^@]*)@?(.*)$|", $dsn, $arr)) {
-   $parsed["username"] = urldecode($arr[1]);
-   $parsed["password"] = urldecode($arr[2]);
-   $dsn = $arr[3];
-} elseif (preg_match("|^([^:]+)@(.*)$|", $dsn, $arr)) {
-   $parsed["username"] = urldecode($arr[1]);
-   $dsn = $arr[2];
+// Get phptype and dbsyntax
+// $str => phptype(dbsyntax)
+if (preg_match('|^([^(]+)\(([^(]*)\)$|', $s

[PHP] Flash call erase my session

2001-03-11 Thread Pierre-Yves Lemaire

Hello php people,

I have a page with 3 frames, each one start the php4 session handler.
When all page are loaded, all session variables are valid.
After I receive request from a flash movie that will update one of the frame, my 
session does not exist anymore, all variables are empty.

Any idea ?
__
Pierre-Yves Lemaire
514.729.8100



[PHP] Flash call erase my session

2001-03-11 Thread Pierre-Yves Lemaire

Hello php people,

I have a page with 3 frames, each one start the php4 session handler.
When all page are loaded, all session variables are valid.
After I receive request from a flash movie that will update one of the frame, my 
session does not exist anymore, all variables are empty.

Any idea ?
__
Pierre-Yves Lemaire
514.729.8100



Re: [PHP] new line in forms?

2001-03-11 Thread Henrik Hansen

> On Sunday 11 March 2001 14:37, Jens wrote:
> > You have probably had this question a few times, but can anyone tell me
how
> > to detect "new line's" or breaks in form fealds from both PC and Mac.
And
> > then replacing the "new line" with a  so that I can use it for the
web?
>
> $string = nl2br( $string );


nl2br() don't replace the newlines with a  they insert a  before
the newline,
therefor you need something like:

$string = str_replace("\n", "", $string);

--
Henrik Hansen


-- 
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] date (urgent!)

2001-03-11 Thread Henrik Hansen

> Hi!
> 
> I have 2 dates...
> $start = "20010101";
> $end = "20010312";
> 
> What is the easiest way of finding out how many days are between?


I Would suggest you check put the followinf article from phpbuilder:

http://www.phpbuilder.com/columns/akent2610.php3

--
Henrik Hansen


-- 
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-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-03-11 Thread Zeev Suraski

zeevSun Mar 11 14:40:12 2001 EDT

  Modified files:  
/CVSROOTavail cvsusers gen_acl_file.m4 
  Log:
  Add Steph Fox
  PR:
  Submitted by:
  Reviewed by:
  Obtained from:
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.114 CVSROOT/avail:1.115
--- CVSROOT/avail:1.114 Sun Mar 11 13:24:34 2001
+++ CVSROOT/avail   Sun Mar 11 14:40:11 2001
@@ -10,7 +10,7 @@
 
avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams,smasiello,dim,lucasr,cpereira,lagflores,kjh90,ernani,theseer,cevm,noribsd,eskaly,mctrash,berto,leobopp,tcr,subjective|phpdoc
 avail|andrei,fmk,zimt,jan,changelog|php-gtk
-avail|jmoore,adrianz,protoman|php-gtk/docs
+avail|jmoore,adrianz,protoman,sfox|php-gtk/docs
 avail|andrei,fmk|php-gtk-web
 avail|emile,davidg,alan_k,ab|php4/ext/midgard
 avail|rasmus|php4/ext/aspell
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.236 CVSROOT/cvsusers:1.237
--- CVSROOT/cvsusers:1.236  Wed Mar  7 11:35:32 2001
+++ CVSROOT/cvsusersSun Mar 11 14:40:11 2001
@@ -280,3 +280,4 @@
 bkellyBob Kelly   [EMAIL PROTECTED]   PEAR
 adrianz   Adrian Zandberg [EMAIL PROTECTED]PHP-GTK 
docs Polish translation
 protoman  Iuri Fiedoruk   [EMAIL PROTECTED]  PHP-GTK 
docs Brazilian Portuguese translation
+sfox  Steph Fox   [EMAIL PROTECTED]PHP-GTK 
+docs
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.118 CVSROOT/gen_acl_file.m4:1.119
--- CVSROOT/gen_acl_file.m4:1.118   Sun Mar 11 13:24:34 2001
+++ CVSROOT/gen_acl_file.m4 Sun Mar 11 14:40:11 2001
@@ -15,7 +15,7 @@
 dnl
 define(`php_midgard', `emile,davidg,alan_k,ab')dnl
 dnl PHP-GTK Documentation Group
-define(`php_gtk_doc', `jmoore,adrianz,protoman')
+define(`php_gtk_doc', `jmoore,adrianz,protoman,sfox')
 dnl
 unavail
 avail|php_group|CVSROOT



-- 
PHP CVS 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] Problems with string replacement

2001-03-11 Thread James, Yz

>> Well, I'm having problems again.  This time with string replacement.
>> I'd like people to be able to write notes on one of the site's I'm
>> helping with, and would like them to be able to use Bold, Italic,
>> Underline and  tags.  I tried using striptags(); but that would
>> strip anything within double quotes too.  So I've gotten around it by

> huh? strip_tags works fine for me.

> echo strip_tags ('Hello http://foo/">bar
> "world"there', ' ');

> creates

> 'Hello http://foo/">bar "world"there'

True, but then it doesn't:
-Open the link in a new window
it does:
-remove all content between "and".

Of course, I could replace quote marks with htmlspecialchars/entities or
using manual string replacement, but then it'd render all tags using quote
marks invalid.

See the problem? ;)

James.



-- 
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] Problems with string replacement

2001-03-11 Thread Christian Reiniger

On Sunday 11 March 2001 18:45, you wrote:

> Well, I'm having problems again.  This time with string replacement. 
> I'd like people to be able to write notes on one of the site's I'm
> helping with, and would like them to be able to use Bold, Italic,
> Underline and  tags.  I tried using striptags(); but that would
> strip anything within double quotes too.  So I've gotten around it by

huh? strip_tags works fine for me.

echo strip_tags ('Hello http://foo/">bar 
"world"there', ' ');

creates

'Hello http://foo/">bar "world"there'

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

The use of COBOL cripples the mind; its teaching should, therefore,
be regarded as a criminal offence.

- Edsger W. Dijkstra

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

2001-03-11 Thread Christian Reiniger

On Sunday 11 March 2001 16:58, you wrote:
> I receive 2 variables, $var and $num
> I need to make a variable out of these two like this
>
> $var2 where $num = 2 or
> $var3 where $num = 3
>
> How can I do that ?

http://php.net/manual/en/language.variables.variable.php

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

The use of COBOL cripples the mind; its teaching should, therefore,
be regarded as a criminal offence.

- Edsger W. Dijkstra

--
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] displaying pictures form db [problem]

2001-03-11 Thread Siim Einfeldt aka Itpunk



I`m trying to display the picture from the database, but I can`t get it to
work. That`s just a short version of your script.

I try to display the picture like that:



and showpic looks like this:




Any ideas why it might not work as expected? I have written picture to the
db, but ...? I write them like:
$main   = addslashes(fread(fopen($main_pic, "r"),
filesize($main_pic)));
$sql ->
insert("pildid","section,productid,picnr,file_name,file_type,file_data","'$section','$productid',0,'$main_pic_name','$main_pic_type','$main'");


Thanks in advance;
Siim EInfeldt


-- 
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-CVS] cvs: functable / update.all xslgen

2001-03-11 Thread Hartmut Holzgraefe

hholzgraSun Mar 11 13:26:47 2001 EDT

  Added files: 
/functable  xslgen 

  Modified files:  
/functable  update.all 
  Log:
  XSL version info for the phpdoc manual
  thanks to Jirka Kosek <[EMAIL PROTECTED]>
  
  
Index: functable/update.all
diff -u functable/update.all:1.3 functable/update.all:1.4
--- functable/update.all:1.3Thu Nov 23 04:53:03 2000
+++ functable/update.allSun Mar 11 13:26:46 2001
@@ -130,10 +130,11 @@
 
 
 # version information for the manual
-echo generate dsl
+echo generate dsssl and xsl for manual
 
 # generate version info file
 ./dslgen > sources/phpdoc/version.dsl
+./xslgen > sources/phpdoc/version.xsl
 
 
 # prepare distribution package 



-- 
PHP CVS 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-CVS] cvs: functable / dslgen

2001-03-11 Thread Hartmut Holzgraefe

hholzgraSun Mar 11 13:25:26 2001 EDT

  Modified files:  
/functable  dslgen 
  Log:
  added some linebreaks
  
Index: functable/dslgen
diff -u functable/dslgen:1.3 functable/dslgen:1.4
--- functable/dslgen:1.3Wed Feb 14 03:32:30 2001
+++ functable/dslgenSun Mar 11 13:25:25 2001
@@ -41,16 +41,16 @@
 mysql_free_result($result);
 
 
-echo ";; DO NOT EDIT THIS FILE !!!";
-echo ";; as it is auto-generated from the same database";
-echo ";; as the functiontable at ";
-echo ";; http://www.zugeschaut-und-mitgebaut.de/php";
-echo ";; you can generate it yourself by unsing the code";
-echo ";; to be found under the functable repository in CVS";
-echo ";;";
-echo ";; if you think this is out of date :";
-echo ";; mailto:[EMAIL PROTECTED]";
-echo ";;";
+echo ";; DO NOT EDIT THIS FILE !!!\n";
+echo ";; as it is auto-generated from the same database\n";
+echo ";; as the functiontable at \n";
+echo ";; http://www.zugeschaut-und-mitgebaut.de/php\n";
+echo ";; you can generate it yourself by unsing the code\n";
+echo ";; to be found under the functable repository in CVS\n";
+echo ";;\n";
+echo ";; if you think this is out of date :\n";
+echo ";; mailto:[EMAIL PROTECTED]\n";
+echo ";;\n\n";
 echo "(define (index-char-val ch)
   (case ch
 ((#\\A #\\a) 65)



-- 
PHP CVS 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-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-03-11 Thread Rasmus Lerdorf

rasmus  Sun Mar 11 13:24:35 2001 EDT

  Modified files:  
/CVSROOTavail gen_acl_file.m4 
  Log:
  Add karma
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.113 CVSROOT/avail:1.114
--- CVSROOT/avail:1.113 Sun Mar 11 02:02:35 2001
+++ CVSROOT/avail   Sun Mar 11 13:24:34 2001
@@ -3,12 +3,12 @@
 unavail
 avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane|CVSROOT
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,andre,sniper,david,lyric,zimt,mk,goba,zak,jmcastagnetto|phpweb
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu,bkelly|php4/pear,pearweb,pear
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu,bkelly,tfromm,subjective|php4/pear,pearweb,pear
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha|php4,php3,php31,phpfi
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
 
avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams,smasiello,dim,lucasr,cpereira,lagflores,kjh90,ernani,theseer,cevm,noribsd,eskaly,mctrash,berto,leobopp,tcr|phpdoc
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams,smasiello,dim,lucasr,cpereira,lagflores,kjh90,ernani,theseer,cevm,noribsd,eskaly,mctrash,berto,leobopp,tcr,subjective|phpdoc
 avail|andrei,fmk,zimt,jan,cha

Re: [PHP] problem with include/require

2001-03-11 Thread Yasuo Ohgaki
- Original Message -
From: "Erick Papadakis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 9:05 PM
Subject: Re: [PHP] problem with include/require


> Hi Yasuo,
>
> Thanks for the reply, but yes I do know that the include_path in php.ini
> should have the entries. But is this something new? I want to know how to
> allow including and requiring files just like we used to do in PHP3!
>
> For instance, let us say that we have two software programs on the server
> which are completely unrelated (I use Windows platform, so here it is):
>
> c:\apache\htdocs\software1\includes
> c:\apache\htdocs\software2\includes
>
> Now with the latest PHP I have to include both these above paths in my
> PHP.INI's "include_path" directive. is there a way to avoid this, and only
> include the "c:\apache\htdocs"?

Hmm. I can put multiple includes directory on my system
(PHP4.0.4pl1/Linux/Apache)

include_path = /home/httpd/include1:/home/httpd/include2

Getting rid of spaces around "=" might help. (It should work with spaces/tab,
though)

> Yes, I know that I can make a common INCLUDES folder, but come on lets be
> practical.  It is a lot cleaner if we can have an include folder INSIDE the
> software-specific folder.

I have different approch for 2 reasons

1) Multiple include path may result in unintetional includes of files.
For example, include_for_aap1.inc and include_for_app2.inc may mixed up easily.
2) Multiple include path sacrifices performance. System need to search all
include path for files to be included.

Therefore, I specify only 1 directory for include_path. I have
global.app_name.inc for each apps and defines constant, like

define('INCLUDE_PATH','/home/httpd/include_path_for_app1');
and I write
include_once(INCLUDE_PATH.'file_to_include.inc');
for all other files to be included.

This this method, you still can esiliy change include_path esily and you can
have different include directory for each application AND save COU time to find
files to include.

This is my approch for inlucding files.

> Any ideas would be greatly appreciated!
>
> Thanks/Erick
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.237 / Virus Database: 115 - Release Date: 07-Mar-01
>


Yasuo Ohgaki

== PHP and Related Resources ==
[PHP FAQ] http://www.php.net/FAQ.php [PHP Manual] http://www.php.net/manual/en/
[W3C] http://www.w3.org/  [RFCs] http://www.faqs.org/rfcs/
If you don't read standard definitions, I recommend to read them.


-- 
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] When a form var is empty, how do you tell?

2001-03-11 Thread Lewis Bergman


isset($somevar)

if($somevar == '') {
  
}

foreach ($HTTP_POST_VARS as $k => $v){
   if(!isset($v)){
  
   }
}

Take your pick. There are probably about two dozen other better ways.


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

2001-03-11 Thread Pierre-Yves Lemaire

I receive 2 variables, $var and $num
I need to make a variable out of these two like this

$var2 where $num = 2 or
$var3 where $num = 3

How can I do that ?

__
Pierre-Yves Lemaire
514.729.8100



[PHP] date (urgent!)

2001-03-11 Thread FredrikAT

Hi!

I have 2 dates...
$start = "20010101";
$end = "20010312";

What is the easiest way of finding out how many days are between?

Thanx!

-
Fredrik A. Takle
[EMAIL PROTECTED]




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

2001-03-11 Thread Kubol

hello

if this is really a silly problem dont blame me, i'm a newbie in php (but i'm 
experienced in c++ a bit :-)
well, imagine i want to write a content of some text file word by word. example will 
be more understandable 
than my english:
let file.txt consists:
lenin lives
forever
i want my php script to write to the screen:
lenin
lives
forever
I tried to manage this using fscanf function. i expected it works same as in c, but it 
looks it doesnt. consider 
the code:
while (fscanf($file,"%s",$buffer)==1)
{
echo $buffer,"";
}
the result:
lenin
forever
just like fscanf moved the file pointer to the next line after reading "lenin". i dont 
know whats up... why "lives" 
disappeared??? i know i can try using fgets and then split the string, but i want to 
know why fscanf doesnt 
work... :-)
could anyone explain me this phenomena?

best regards,
jakub zytka




-- 
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] Sending "pretty" email

2001-03-11 Thread Chris Adams

On 11 Mar 2001 10:57:32 -0800, Michael Geier <[EMAIL PROTECTED]> wrote:
>So don't refrain from doing it because some people say it shouldn't be done
>for one reason or another.  Simply fix those reasons so they don't know any
>different.

I'll second this - while I personally consider HTML email a waste of time[1], a
lot of people like it and it does open up some nice possibilities. The key is
remembering that if you're going to do it, you need to do it right - sending
the proper multi-part mime headers, providing alternatives for people who can't
use HTML[2] and generally just being polite. When presenting this to managers
and/or clients, point out that this maximizes the number of people who can read
their messages - they should grasp the whole "block potential customers = fewer
sales" concept quickly.

[1] For reasons having more to do with security and the crimes against good
design committed by a few; an email client which gave the user the kind of
control a browser like Opera does would be a lot more tolerable.
[2] It's not those of us using text-based email clients, either. Think of
wireless device users or people working at large corps which installed software
to disable anything remotely dynamic in incoming emails.

-- 
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-CVS] cvs: php4 /ext/curl config.m4

2001-03-11 Thread Sterling Hughes

Why this?

-Sterling


> sniper Sat Mar 10 16:49:16 2001 EDT
>
>   Modified files:
> /php4/ext/curl config.m4
>   Log:
>   If AC_CHECK_LIB fails, assume that --with-openssl is needed
>
> Index: php4/ext/curl/config.m4
> diff -u php4/ext/curl/config.m4:1.3 php4/ext/curl/config.m4:1.4
> --- php4/ext/curl/config.m4:1.3 Mon Oct  2 10:35:57 2000
> +++ php4/ext/curl/config.m4 Sat Mar 10 16:49:16 2001
> @@ -1,4 +1,4 @@
> -dnl $Id: config.m4,v 1.3 2000/10/02 17:35:57 rasmus Exp $
> +dnl $Id: config.m4,v 1.4 2001/03/11 00:49:16 sniper Exp $
>  dnl config.m4 for extension CURL
>
>  PHP_ARG_WITH(curl, for CURL support,
> @@ -28,7 +28,12 @@
>PHP_SUBST(CURL_SHARED_LIBADD)
>AC_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/lib, CURL_SHARED_LIBADD)
>
> -  AC_DEFINE(HAVE_CURL,1,[ ])
> +  AC_CHECK_LIB(curl,curl_easy_perform,
> +

> +AC_DEFINE(HAVE_CURL,1,[ ])
> +  ],[
> +AC_MSG_ERROR(Try adding --with-openssl[=DIR] into your configure
line.)
> +  ])
>
>PHP_EXTENSION(curl, $ext_shared)
>  fi
>
>
>
> --
> PHP CVS 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 CVS 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] date

2001-03-11 Thread Chris Adams

On 11 Mar 2001 10:25:25 -0800, FredrikAT <[EMAIL PROTECTED]> wrote:
>I have 2 dates...
>$start = "20010101";
>$end = "20010312";

Use mktime() (http://www.php.net/manual/en/function.mktime.php) on those
strings to convert them into Unix timestamps:

$start_time = mktime(0,0,0, 
substr($start, 6, 2), 
substr($start, 4, 2),
substr($start, 0, 4)
); // mktime( hour, minute, second, day, month, year)

Since a Unix timestamp is just the number of seconds since a starting point,
you can get the elapsed number of seconds by substraing $start_time from
$stop_time; divide that by 86400 and you'll have the number of days.

You could also use the Calendar extension if you have that installed, since it
allows you to covert from several calendar systems into Julian Day counts,
which could be subtracted similarly. (See
http://www.php.net/manual/en/ref.calendar.php)

-- 
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] Sending "pretty" email

2001-03-11 Thread Michael Geier

Although I will probably getting tarred and feathered for this,

I send out at least a million (multiple emails for lists around the 200
thousand customer mark) emails a week, mostly html.
When I wrote the software interface (in PHP) to do so, I mentioned to my
bosses that many people would not be able to read these HTML emails (ie.
AOL, Eudora, Lotus 5.0, and my beloved pine).  This deterred them naught,
cuz they wanted to send banners in the email.  Since email with banners
generated more revenue than without (however little money that may be), I
was overruled.

Hence, I read up on multi-part email.  This can be done, and I used Richard
Heyes' html-mime email class to do it.  The class was based on the SMTP
class that can be found on Manuel Lemos' PHPClasses site
(http://phpclasses.upperdesign.com), along with the SMTP class.

I now have the ability to send straight HTML, straight TEXT, or combo emails
that are interpreted correctly by all email clients (including AOL clients).
And, since I don't use the mail() function, it typically runs about 150%
faster (mail() puts the messages in the mail queue, but the SMTP class
writes directly to port 25 of the mail server).  All this and it runs on a
linux system that grabs the email addresses out of a M$ SQL 7 database.  The
database allows the customers the ability to opt-out of certain emails.

So don't refrain from doing it because some people say it shouldn't be done
for one reason or another.  Simply fix those reasons so they don't know any
different.

-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 11, 2001 8:46 AM
To: Richard Scott Crawford
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Sending "pretty" email


Richard -

For me you are pointing out one of the dilemmas I face on a daily basis
that I call the "fin dilemma".  I coined this expression from the era
when Detroit put fins on the cars.  These did not make the car perfrom
better; they only appealed to need to get a car with fins because the
neighbor had one.

Yet I earn my living by writing software for clients and when I suggest
that they use the KISS principle, they tell me that I am not up with the
times.  There is a very interesting book that I came across at a
friend's home addressing effective Web design.  Though I cannot remember
the authors name, he has done many of the "big name" magazine covers as
well as some big name Web sites and he believes in simplicity.  Quite a
deilemma!!!

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



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

2001-03-11 Thread Pierre-Yves Lemaire

Hello,

This works when you have a separator of some sort, a space would work too.
The tricky part is that mktime works with mm dd yy format.

$start = "2001-01-01";
$end = "2001-03-12";

$start = explode( "-", $start );
$start = mktime( 0, 0, 0, $start[1], $start[2], $start[0] );

$end = explode( "-", $end );
$end = mktime( 0, 0, 0, $end[1], $end[2], $end[0] );
$diff =  ( $end - $start ) / ( 86400 );

echo $diff;

py

- Original Message - 
From: FredrikAT <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 6:31 PM
Subject: [PHP] date


> Hi!
> 
> I have 2 dates...
> $start = "20010101";
> $end = "20010312";
> 
> What is the easiest way of finding out how many days are between?
> 
> Thanx!
> 
> 
> -
> Fredrik A. Takle
> [EMAIL PROTECTED]
> 
> 
> 
> 
> -- 
> 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 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] Best way to pass SQL TEXT field via a link

2001-03-11 Thread Pierre-Yves Lemaire

Yes it would be a lot better to just passed the id in the url.

py

- Original Message - 
From: Fates <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 5:12 PM
Subject: [PHP] Best way to pass SQL TEXT field via a link


> I'm trying to update an existing record based on a link that represents
> the record to update.
> 
> I have a link and I am passing variables that were assigned from a SQL
> database to another php form page which will be used to update the
> record. I'm passing variable like so: href='addupdate.php?name=$name&category=$category&description=$etc.
> 
> This works fine for variables that contain values of only a few lines
> but what about passing a couple paragraphs stored in variable
> $description assigned via database value as TEXT.
> 
> Would it be better just to pass the database record ID to the
> destination page and then query the record in the destination form page
> and populate the form with the current values and update the record or
> is there another way I don't know about?
> 
> 
> -- 
> 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 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] spidering dynamic pages

2001-03-11 Thread Derek Sivers


>if I move everything to php and just use a different text file for each
>page for the main body of text and load each text file depending on what
>page the user wants, would the search engine search though those text
>files and just link to those and not to the php file?  Would it even be
>spidered by the search enging properly?


Many search engines will NOT spider pages that have "?" or "&" in the URL.

But they WILL spider PHP pages as if they were static content IF you hack 
Apache or PHP to let "/" be the variable separator instead of "?"

There are different ways of doing this.  Search the PHP list archives or 
check out some recent PHP books.

But here's the effect you're shooting for:

INSTEAD OF:
http://www.yoursite.com/showarticle.php?id=3&article=8&language=en

YOU CAN MAKE IT:
http://www.yoursite.com/showarticle/id/3/article/8/language/en

OR EVEN:
http://www.yoursite.com/showarticle/3/8/en

OR:
http://www.yoursite.com/somepage/en/3/8.html
... and just have PHP ignore any ".*" URL extensions before deciding what 
to take as the variables in the URL.

I do the last example at this site:
http://www.cdbaby.org/
It's a totally dynamic site that has gotten very well-spidered using these 
methods.


THE APACHE HACK:
You can either use "mod_rewrite" or in your Apache "/conf/httpd.conf" file, 
set:

DefaultType application/x-httpd-php  <--- not sure of exact spelling

So that ALL files with no extension are parsed as PHP files.
Which lets you rename "showarticle.php" to just "showarticle" in the 
examples above.


Hope this made sense.
I'd give concrete code examples but I'm offline right now.


-- 
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] Sending "pretty" email

2001-03-11 Thread Derek Sivers

At 07:49 AM 3/11/01 , Richard Scott Crawford wrote:
>The first thing to do is to take two aspirin and lie down until the 
>temptation to do this passes.  It may be cool, but those of us who use 
>Eudora or Pine for our e-mail don't read HTML-encoded mail, don't *want* 
>to read HTML-encoded mail, and get really annoyed when it shows up in our 
>mailboxes.

I generally agree, but there is...
ONE GOOD USE FOR HTML EMAIL:   AOL DUMMIES.

REASON:
When I would send my email list a URL I needed them to go to, I would do it 
in plain-text.   ("Go to www.something.com and do something.")

And because 90% of the email programs out there automatically make it a 
hyperlinked URL, there was no problem - *EXCEPT* the AOL people who would 
email back stupid things like, "Sounds interesting!  What's the web address?"

SOLUTION:
When you're sending email using PHP, try this:

if (strtolower(strstr($email, '@'))=="aol.com")
   {
   $link1 = 'http://www.something.com/">www.something.com';
   $link2 = 'http://www.otherthing.com/">www.otherthing.com';
   }
else
   {
   $link1 = 'www.something.com';
   $link2 = 'www.otherthing.com';
   }

$message = "Hey $firstname -

Check out this link!
" . $link1 . "

and also this one...
" . $link2 . "

Enoy!";

mail ($email, $subject, $message, $headers);


That way the AOL dummies get their hyperlinked HTML links, and all the cool 
people of the world get the regular simple version.



-- 
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] When a form var is empty, how do you tell?

2001-03-11 Thread Dennis Gearon


-- 

Sites by friends of mine: http://www.myhiddentreasures.com/

WARNING personal propaganda signature
TAKE WHAT YOU LIKE AND LEAVE THE REST

SINCE OUR GOVERNMENT WON'T PRESERVE OUR CLIMATE, IT'S UP TO US!
Imagine ** yourself ** and your kids now an endangered species
<1>Inflate automobile tires to near maximum in summer, -2psi in winter
<2>add insulation to house and hot water heater, and refrigerator,
<3>combine trips in cars, make less of them <4>buy cars, sports
vehicles and recreational vehicles with good if not best mileage
<4>put awnings over windows is summer, remove in winter. <5> add
solar hot water heating. <6>Push for energy recycling clothes
dryers <7> walk more, play outside with your kids! <8> let your
grass grow to 3-4 inches, chokes weeds, saves water and energy,
keeps house cooler <9> Put WHITE or REFLECTIVE materials on
roofs to send energy back into space. <10> Vote for burial of
logging slash onsite in logging areas for better watersheds
and less burned vegetation. <11> compost your leaves and grass,
bury in flower beds, lawns, gardens, or give away. <12> VOTE
for energy and CO2 ratings on ALL products and foods. KNOW how
much damage your purchases do to the climate. <13> Give your kids 
less stuff and more of you. <14> recycle everything you can <15>
limit your children to an average 1 per adult between all your 
marriages. (Only REPLACE yourself, not expand the population)

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

2001-03-11 Thread FredrikAT

Hi!

I have 2 dates...
$start = "20010101";
$end = "20010312";

What is the easiest way of finding out how many days are between?

Thanx!


-
Fredrik A. Takle
[EMAIL PROTECTED]




-- 
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] Problems with string replacement

2001-03-11 Thread James, Yz

Hello all,

Well, I'm having problems again.  This time with string replacement.  I'd
like people to be able to write notes on one of the site's I'm helping with,
and would like them to be able to use Bold, Italic, Underline and 
tags.  I tried using striptags(); but that would strip anything within
double quotes too.  So I've gotten around it by converting the message
string to htmlspecialchars and then using ereg_replace around the tags I'd
like to allow, ie:

$message = ereg_replace("","", $message);

Where I'm struggling is with the a href tags, though.  I've been using this:

$message = eregi_replace("()(.*)(<\/a>)", "\\4", $message);

which would change a string containing:
http://www.php.net">PHP!
to:
http://www.php.net" target="_blank">PHP!

Great.  But, there's a problem.  If someone uses:
http://www.php.net" target="_blank">PHP!http://www.php.net" target="_blank">PHP Again!
it returns:
http://www.php.net" target="_blank">PHP!/a>

[PHP] Best way to pass SQL TEXT field via a link


I'm trying to update an existing record based on a link that represents
the record to update.

I have a link and I am passing variables that were assigned from a SQL
database to another php form page which will be used to update the
record. I'm passing variable like so: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] Retrieving data from multiple select list


From: "Ben Cheng" <[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 3:27 PM


> Yeah I saw this in the online manual but is there any other way of 
> doing this that doesn't require naming the select box in HTML with a 
> [] at the end?  Cause I have another button that calls a JavaScript 
> to select all the options within CategoryID[] and it doesn't seem to 
> work cause it's looking for a CategoryID[] array instead of a select 
> box named CategoryID[].

You solve that one by referencing your selectbox in JavaScript like this:

document.myForm["CategoryID[]"].selectedIndex

instead of

document.myForm.CategoryID.selectedIndex

- Carsten



-- 
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-CVS] cvs: php4 /ext/midgard attachment.c


davidg  Sun Mar 11 07:40:03 2001 EDT

  Modified files:  
/php4/ext/midgard   attachment.c 
  Log:
  added missing conversion.
  
  
Index: php4/ext/midgard/attachment.c
diff -u php4/ext/midgard/attachment.c:1.8 php4/ext/midgard/attachment.c:1.9
--- php4/ext/midgard/attachment.c:1.8   Sat Mar 10 14:43:10 2001
+++ php4/ext/midgard/attachment.c   Sun Mar 11 07:40:03 2001
@@ -1,4 +1,4 @@
-/* $Id: attachment.c,v 1.8 2001/03/10 22:43:10 emile Exp $
+/* $Id: attachment.c,v 1.9 2001/03/11 15:40:03 davidg Exp $
 Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -37,6 +37,7 @@
 {
 zval **table, **id;
 
+mgd_log_debug(0, "get_blob_id");
if (self == NULL) {
   if (calltype) *calltype = MGD_BLOB_CALL_FUNC;
   if (name == NULL) return MGD_ERR_INVALID_NAME;
@@ -50,6 +51,8 @@
if (!MGD_PROPFIND(self, "id", id)) {
   return MGD_ERR_NOT_OBJECT;
}
+   else
+   convert_to_long_ex(id);
 
if ((*table)->type != IS_STRING) {
   return MGD_ERR_NOT_OBJECT;
@@ -60,10 +63,14 @@
   convert_to_long_ex(id);
   return (*id)->value.lval;
}
+mgd_log_debug(0, "before $s", (*table)->value.str.val);
 
if (calltype) *calltype = MGD_BLOB_CALL_OTHER;
if (name == NULL) return MGD_ERR_INVALID_NAME;
convert_to_string_ex(name);
+mgd_log_debug(0, "before return: ptable=$q AND pid=$d AND name=$q",
+(*table)->value.str.val, (*id)->value.lval,
+(*name)->value.str.val);
return mgd_exists_id(mgd_handle(), "blobs",
 "ptable=$q AND pid=$d AND name=$q",
 (*table)->value.str.val, (*id)->value.lval,



-- 
PHP CVS 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] Passing string variable gets cut off


on 11.03.2001 16:16 Uhr, Fates at [EMAIL PROTECTED] wrote:

> My strings are getting cut off when I pass to destination web page
> 
> Example:
> 
> Assign variable from database
> $subcategory = mysql_result($result,$i,"subcategory");
> 
> Variable $subcategory  is assigned "Graphic Editors" from database
> (notice two words)
> 
> Next I make a link and pass the variables to new page when person clicks
> link
>  href='addupdate.php?category=$category&subcategory=$subcategory
> 
> New page appears
> The value of $subcategory is:  Graphic It cut off everything after
> Graphic, How do I fix that?
> 
> 
> 

Yes, because there is a space in the word you want to submit over the URL.
What you would need to do is:

$subcategory = urlencode($subcategory);

Re: [PHP] objects in functions?


From: "Jørg Vidar Bryne" <[EMAIL PROTECTED]>
Sent: Saturday, March 10, 2001 11:52 PM


> What do you mean by it fails? Any particular error, or does it just time
> out?
>
> I've made a different recursive function to print a tree-menu, you can
have
> a look at it if you want but it might not be what you're after. It prints
a
> tree-menu, and reqires the table to have at least a field named id and
> parent. parent telling which node an object is connected to.
> But I guess you know that already, I just got carried away! Maybe someone
> could use this.



One of the rules I live by is never to assume you know all there is to know
about a subject.

You've just opened my eyes a little more with this script. All these years
I've been making recursive db-queries and it can all be done in just one...

Your script _must_ be faster, quite simply due to the fact that you only
make one query.

Thank you thank you thank you!

- Carsten



-- 
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] Passing string variable gets cut off


My strings are getting cut off when I pass to destination web page

Example:

Assign variable from database
$subcategory = mysql_result($result,$i,"subcategory");

Variable $subcategory  is assigned "Graphic Editors" from database
(notice two words)

Next I make a link and pass the variables to new page when person clicks
link
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] Sending "pretty" email


Richard -

For me you are pointing out one of the dilemmas I face on a daily basis
that I call the "fin dilemma".  I coined this expression from the era
when Detroit put fins on the cars.  These did not make the car perfrom
better; they only appealed to need to get a car with fins because the
neighbor had one.

Yet I earn my living by writing software for clients and when I suggest
that they use the KISS principle, they tell me that I am not up with the
times.  There is a very interesting book that I came across at a
friend's home addressing effective Web design.  Though I cannot remember
the authors name, he has done many of the "big name" magazine covers as
well as some big name Web sites and he believes in simplicity.  Quite a
deilemma!!!

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
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-CVS] cvs: php4 /ext/midgard sitegroup.c


davidg  Sun Mar 11 06:36:43 2001 EDT

  Modified files:  
/php4/ext/midgard   sitegroup.c 
  Log:
  Added missing parameter.
  
  
Index: php4/ext/midgard/sitegroup.c
diff -u php4/ext/midgard/sitegroup.c:1.7 php4/ext/midgard/sitegroup.c:1.8
--- php4/ext/midgard/sitegroup.c:1.7Tue Mar  6 00:12:52 2001
+++ php4/ext/midgard/sitegroup.cSun Mar 11 06:36:42 2001
@@ -1,4 +1,4 @@
-/* $Id: sitegroup.c,v 1.7 2001/03/06 08:12:52 emile Exp $
+/* $Id: sitegroup.c,v 1.8 2001/03/11 14:36:42 davidg Exp $
 Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
 Copyright (C) 2000 The Midgard Project ry
 Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -266,7 +266,7 @@
   "sitegroup=$d", (*zv_id)->value.lval,
   (*zv_sitegroup)->value.lval);
mgd_update_repligard(mgd_handle(), (*zv_table)->value.str.val, 
(*zv_id)->value.lval,
-  (*zv_sitegroup)->value.lval);
+  "sitegroup=$d", (*zv_sitegroup)->value.lval);
 }
 
 MidgardProperty MidgardSitegroupProperties [] = {



-- 
PHP CVS 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 & Apache with SSL


In .htaccess use SSLRequireSSL for AuthType Config and redirect to https
using ErrorDocument.
Example for  www.foo.goo/sec
.htacess

AuthType Config
SSLRequireSSL
ErrorDocument 403 https://www.foo.goo/sec
Options -Indexes

Options directive is not neccessary but I assume that if you want a
secure conection then directory listing are not desirable.

-Stathis.

Daniel B I wrote:
> 
> Hello,
> any idea how to limit file access (php files) by
> protocol type call?
> I mean how could I serve a php file only if it is
> called with SSL (https://... not http://...)
> I saw this on a site when I was refused because
> I didn't use secure protocol, and I wonder, how could
> I do that?
> Is there a specific statement in apache config file?
> 
> Daniel BI
> PS. I know it 's a little bit far of PHP specific this
> question, excuse me for that.. maybe you knwow
> something about
> 
> --
> 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 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] Retrieving data from multiple select list


Yeah I saw this in the online manual but is there any other way of 
doing this that doesn't require naming the select box in HTML with a 
[] at the end?  Cause I have another button that calls a JavaScript 
to select all the options within CategoryID[] and it doesn't seem to 
work cause it's looking for a CategoryID[] array instead of a select 
box named CategoryID[].

-Ben
P.S.  Please send responses directly to my email address as well 
since I'm in digest mode.  Thanks.

At 10:05 AM +0100 3/11/01, Edi Murfy wrote:
>try this:
>
>in the form:
>
>Item 1
>Item 2
>Item 3
>
>
>in the script:
>$num = sizeof($CategoryID); // Number of array items
>for($i=0;$i<$num;$i++)
>   {
>   // $CategoryID[$i] --> whatever you wanna do with it...
>   }
>
>
>
>"Ben Cheng" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
>news:p05010402b6d0b285663b@[10.10.0.169]...
>>  I have a select box that allows the user to select and submit more
>>  than one selection at a time.  How do I retrieve all the selections
>>  in PHP?  For example, the select list is named CategoryID.  But when
>>  I select more than one item and then hit submit, $CategoryID only
>>  shows me the last value of the selected items.  How do I see all the
>  > values that have been selected?

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


Hello,

For the most popular one, it is include in the phplib package:
http://phplib.netuse.de/download/index.php3

Or for just the mysql database class, I like this one:
MySQL_class at: http://phpclasses.upperdesign.com/ (login required)

py



- Original Message -
From: Jordan Elver <[EMAIL PROTECTED]>
To: PHP DB Mailing List <[EMAIL PROTECTED]>; PHP General Mailing List
<[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 12:54 PM
Subject: [PHP] DB Abstraction


> Hi,
> I thought it was about time I started using a db abstraction class.
Problem
> is, there are so many out there that I don't which one to start using?
>
> I've heard of ADODB (I think).
>
> Anyone have any suggestions?
>
> Cheers,
>
> Jord
>
>
> --
> 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 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] new line in forms?


On Sunday 11 March 2001 14:37, Jens wrote:
> You have probably had this question a few times, but can anyone tell me how
> to detect "new line's" or breaks in form fealds from both PC and Mac. And
> then replacing the "new line" with a  so that I can use it for the web?

$string = nl2br( $string );

-- 
Bård Farstad
Systems developer
ez.no | developer.ez.no | zez.org

-- 
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] new line in forms?


You have probably had this question a few times, but can anyone tell me how
to detect "new line's" or breaks in form fealds from both PC and Mac. And
then replacing the "new line" with a  so that I can use it for the web?

Thanks in advance

Jens



-- 
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-general Digest 11 Mar 2001 13:21:01 -0000 Issue 560



php-general Digest 11 Mar 2001 13:21:01 - Issue 560

Topics (messages 43349 through 43384):

Re: UTF
43349 by: Yasuo Ohgaki

problem with include/require
43350 by: Erick Papadakis
43363 by: Yasuo Ohgaki
43379 by: Erick Papadakis

Re: a solution for getmxrr() and Windows?
43351 by: Yasuo Ohgaki

Re: objects in functions?
43352 by: Yasuo Ohgaki

mysql help!! urgent!
43353 by: McShen

File Upload Size Limit Problem
43354 by: Jeff Oien
43364 by: Yasuo Ohgaki
43369 by: Jeff Oien

Re: Using Cookies
43355 by: Yasuo Ohgaki

Re: reloading a webpage?
43356 by: Yasuo Ohgaki

Re: Cookies creating Unwanted Problem
43357 by: Yasuo Ohgaki

Re: session end
43358 by: Yasuo Ohgaki

Re: PHP/MySQL Question
43359 by: Rick St Jean

Which is faster, SSI or PHP?
43360 by: Todd Eddy

New to navigation functions...
43361 by: Richard
43366 by: Yasuo Ohgaki
43372 by: Richard

Re: Testing for session without setting cookies
43362 by: Yasuo Ohgaki

Re: some array help :)
43365 by: rm

Re: Including file...
43367 by: Yasuo Ohgaki

Re: $userfile_name broken in PHP4 win32 ?
43368 by: Yasuo Ohgaki

Logins
43370 by: Mick

Re: sending SMS messages via PHP
43371 by: Valter Santos

Retrieving data from multiple select list
43373 by: Ben Cheng
43376 by: Edi Murfy

uploading file to seperate server
43374 by: Thomas Edison Jr.

Re: Sending "pretty" email
43375 by: Richard Scott Crawford

Re: isset and multiple selects
43377 by: Alexander Lohse
43384 by: Jens Nedal

get_browser
43378 by: GBuschbeck.gmx.net

PHP & Apache with SSL
43380 by: Daniel B I

DB Abstraction
43381 by: Jordan Elver
43382 by: Jordan Elver
43383 by: Jordan Elver

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



> Is there any UTF-8 r UTF-32 compatibility in PHP? I want to be
> multinational with the SAME scripts, not a dozen. I haven't tried
> anything yet, just asking

I forgot to mention what you are asking. There is a experimental module called
iconv, I guess it does UTF-8 conversions. Or if you can read japanese, there is
better non-standard module. Just mail me if you want the URL.

Regards,
--
Yasuo Ohgaki

>
> --
> 
> Sites by friends of mine: http://www.myhiddentreasures.com/
> 
> WARNING personal propaganda signature
> TAKE WHAT YOU LIKE AND LEAVE THE REST
>
> SINCE OUR GOVERNMENT WON'T PRESERVE OUR CLIMATE, IT'S UP TO US!
> Imagine ** yourself ** and your kids now an endangered species
> <1>Inflate automobile tires to near maximum in summer, -2psi in winter
> <2>add insulation to house and hot water heater, and refrigerator,
> <3>combine trips in cars, make less of them <4>buy cars, sports
> vehicles and recreational vehicles with good if not best mileage
> <4>put awnings over windows is summer, remove in winter. <5> add
> solar hot water heating. <6>Push for energy recycling clothes
> dryers <7> walk more, play outside with your kids! <8> let your
> grass grow to 3-4 inches, chokes weeds, saves water and energy,
> keeps house cooler <9> Put WHITE or REFLECTIVE materials on
> roofs to send energy back into space. <10> Vote for burial of
> logging slash onsite in logging areas for better watersheds
> and less burned vegetation. <11> compost your leaves and grass,
> bury in flower beds, lawns, gardens, or give away. <12> VOTE
> for energy and CO2 ratings on ALL products and foods. KNOW how
> much damage your purchases do to the climate. <13> Give your kids
> less stuff and more of you. <14> recycle everything you can <15>
> limit your children to an average 1 per adult between all your
> marriages. (Only REPLACE yourself, not expand the population)
>
> --
> 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]
>
>




i installed my php on my windows machine using the "php triad" software
which i downloaded from www.sourceforge.net. however, now i have a problem
with "include" command. for everything i wish to include into my programs, i
need to speficy this folder in the "include_path" inside my php.ini. can i
change this configuration?

for example, lets say i have a directory called:

c:/apache/htdocs/phpprograms/

inside this phpprograms, i have the following files:

class_include.phpi
actual_program.php

inside my "actual_program.php", i require the "class_inc

Re: [PHP] isset and multiple selects


on 10.03.2001 10:10 Uhr, Alexander Lohse at [EMAIL PROTECTED] wrote:

> Hi,
> 
> is it a fact that: If I have multiple select with e.g. "pers[]" as
> name, I cannot check for an isset($pers) if the user left the field
> blank?
> 
> I know it all works with textfields ... But in this case isset()
> seems not work. There is also no entry in HTTP_POST_VARS for that.
> 
> Or might this be a browserspecific problem? (MSIE 5 on Mac)
> 
> Regards,

Hi Alex,

In a multiple select those values are stored in array. That array is you
pers[].

In $HTTP_POST_VARS this will appear as this array, i.e. pers()
To list the values in the multiple select do this:

while(list($key,$value) = each(pers)) {
echo("$key -> $value");
}
or instead of echo you can assign those values newly or store them in a
database for example.


all the values look something like this in the array

pers[0] = 1. multiple select
pers[1] = 2. multiple select
pers[2] = 3. multiple select
pers[3] = 4. multiple select

regards, Jens

> 
> Alex


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


Hi,
I thought it was about time I started using a db abstraction class. Problem 
is, there are so many out there that I don't which one to start using?

I've heard of ADODB (I think).

Anyone have any suggestions?

Cheers,

Jord


-- 
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] PHP & Apache with SSL


Hello,
any idea how to limit file access (php files) by
protocol type call?
I mean how could I serve a php file only if it is
called with SSL (https://... not http://...)
I saw this on a site when I was refused because
I didn't use secure protocol, and I wonder, how could
I do that?
Is there a specific statement in apache config file?

Daniel BI
PS. I know it 's a little bit far of PHP specific this
question, excuse me for that.. maybe you knwow
something about


-- 
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] problem with include/require


Hi Yasuo,

Thanks for the reply, but yes I do know that the include_path in php.ini
should have the entries. But is this something new? I want to know how to
allow including and requiring files just like we used to do in PHP3!

For instance, let us say that we have two software programs on the server
which are completely unrelated (I use Windows platform, so here it is):

c:\apache\htdocs\software1\includes
c:\apache\htdocs\software2\includes

Now with the latest PHP I have to include both these above paths in my
PHP.INI's "include_path" directive. is there a way to avoid this, and only
include the "c:\apache\htdocs"?

Yes, I know that I can make a common INCLUDES folder, but come on lets be
practical.  It is a lot cleaner if we can have an include folder INSIDE the
software-specific folder.

Any ideas would be greatly appreciated!

Thanks/Erick


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.237 / Virus Database: 115 - Release Date: 07-Mar-01



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


Hi!

I've a problem with "get_browser"

i got the browscap.ini from http://www.cyscape.com/browscap/ 
and installed it in:
/usr/local/lib/browscap.ini

then i added browscap = /usr/local/lib/browscap.ini
in the php.ini

but 
$test = get_browser();

echo $test; 
gives an empty response.

i've use the example script from php.net:

http://php.net/manual/en/function.get-browser.php

hope for your help

georg


-- 
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-CVS] cvs: php4 / NEWS /ext/standard config.m4 file.c


sasha   Sun Mar 11 02:08:28 2001 EDT

  Modified files:  
/php4   NEWS 
/php4/ext/standard  config.m4 file.c 
  Log:
  Fixed a compatibility problem is some file functions (fgets, fputs, fread,
  fwrite). The ANSI standard says that if a file is opened in read/write
  mode, fseek() should be called before switching from reading to writing
  and vice versa.
  
  
Index: php4/NEWS
diff -u php4/NEWS:1.608 php4/NEWS:1.609
--- php4/NEWS:1.608 Fri Mar  9 18:09:25 2001
+++ php4/NEWS   Sun Mar 11 02:08:27 2001
@@ -2,6 +2,10 @@
 |||
 
 ?? ??? 200?, Version 4.0.5
+- Fixed a compatibility problem in some file functions (fgets, fputs, fread,
+  fwrite). The ANSI standard says that if a file is opened in read/write
+  mode, fseek() should be called before switching from reading to writing
+  and vice versa. ([EMAIL PROTECTED])
 - Fixed argument checking for call_user_func* functions and allowed
   specifying array($obj, 'method') syntax for call_user_func_array. (Andrei)
 - Fixed parent::method() to also work with runtime bindings (Zeev, Zend Engine)
Index: php4/ext/standard/config.m4
diff -u php4/ext/standard/config.m4:1.26 php4/ext/standard/config.m4:1.27
--- php4/ext/standard/config.m4:1.26Tue Jan  9 07:11:23 2001
+++ php4/ext/standard/config.m4 Sun Mar 11 02:08:27 2001
@@ -1,8 +1,59 @@
-dnl $Id: config.m4,v 1.26 2001/01/09 15:11:23 hirokawa Exp $ -*- sh -*-
+dnl $Id: config.m4,v 1.27 2001/03/11 10:08:27 sasha Exp $ -*- sh -*-
 
 divert(3)dnl
 
 dnl
+dnl Check if flush should be called explicitly after buffered io
+dnl
+AC_DEFUN(AC_FLUSH_IO,[
+  AC_CACHE_CHECK([whether flush should be called explicitly after a bufferered io], 
+ac_cv_flush_io,[
+  AC_TRY_RUN( [
+#include 
+#include 
+
+int main(int argc, char **argv)
+{
+   char *filename = tmpnam(NULL);
+   char buffer[64];
+   int result = 0;
+   
+   FILE *fp = fopen(filename, "wb");
+   if (NULL == fp)
+   return 0;
+   fputs("line 1\n", fp);
+   fputs("line 2\n", fp);
+   fclose(fp);
+   
+   fp = fopen(filename, "rb+");
+   if (NULL == fp)
+   return 0;
+   fgets(buffer, sizeof(buffer), fp);
+   fputs("line 3\n", fp);
+   rewind(fp);
+   fgets(buffer, sizeof(buffer), fp);
+   if (0 != strcmp(buffer, "line 1\n"))
+   result = 1;
+   fgets(buffer, sizeof(buffer), fp);
+   if (0 != strcmp(buffer, "line 3\n"))
+   result = 1;
+   fclose(fp);
+   unlink(filename);
+
+   exit(result);
+}
+],[
+  ac_cv_flush_io="no"
+],[
+  ac_cv_flush_io="yes"
+],[
+  ac_cv_flush_io="no"
+])])
+  if test "$ac_cv_flush_io" = "yes"; then
+AC_DEFINE(HAVE_FLUSHIO, 1, [Define if flush should be called explicitly after a 
+buffered io.])
+  fi
+])
+
+dnl
 dnl Check for crypt() capabilities
 dnl
 AC_DEFUN(AC_CRYPT_CAP,[
@@ -143,6 +194,7 @@
 AC_CHECK_FUNCS(getcwd getwd)
 
 AC_CRYPT_CAP
+AC_FLUSH_IO
 
 divert(5)dnl
 
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.147 php4/ext/standard/file.c:1.148
--- php4/ext/standard/file.c:1.147  Mon Mar  5 20:42:04 2001
+++ php4/ext/standard/file.cSun Mar 11 02:08:27 2001
@@ -20,7 +20,7 @@
+--+
  */
 
-/* $Id: file.c,v 1.147 2001/03/06 04:42:04 elixer Exp $ */
+/* $Id: file.c,v 1.148 2001/03/11 10:08:27 sasha Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -918,6 +918,11 @@
buf = emalloc(sizeof(char) * (len + 1));
/* needed because recv doesnt put a null at the end*/
memset(buf,0,len+1);
+#ifdef HAVE_FLUSHIO
+   if (!issock) {
+   fseek((FILE*)what, 0, SEEK_CUR);
+   }
+#endif
if (FP_FGETS(buf, len, socketd, (FILE*)what, issock) == NULL) {
efree(buf);
RETVAL_FALSE;
@@ -961,6 +966,11 @@
socketd=*(int*)what;
}
 
+#ifdef HAVE_FLUSHIO
+   if (!issock) {
+   fseek((FILE*)what, 0, SEEK_CUR);
+   }
+#endif
buf = emalloc(sizeof(int));
if ((result = FP_FGETC(socketd, (FILE*)what, issock)) == EOF) {
efree(buf);
@@ -1159,6 +1169,9 @@
if (issock){
ret = SOCK_WRITEL((*arg2)->value.str.val,num_bytes,socketd);
} else {
+#ifdef HAVE_FLUSHIO
+   fseek((FILE*)what, 0, SEEK_CUR);
+#endif
ret = fwrite((*arg2)->value.str.val,1,num_bytes,(FILE*)what);
}
RETURN_LONG(ret);
@@ -1794,6 +1807,9 @@
/* needed because recv doesnt put a null at the end*/

if (!issock) {
+#ifdef HAVE_FLUSHIO
+   fseek((FILE*)what, 0, SEEK_CUR);
+#endif
return_value->value.str.len = fread(return_value->value.str.val, 1, 
len, (FILE*)what);
return_value->value.str.val[return_value->value.str.len] = 0;
} else {



-- 
PHP 

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4


zeevSun Mar 11 02:02:36 2001 EDT

  Modified files:  
/CVSROOTavail gen_acl_file.m4 
  Log:
  Add some karma to Sasha
  PR:
  Submitted by:
  Reviewed by:
  Obtained from:
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.112 CVSROOT/avail:1.113
--- CVSROOT/avail:1.112 Wed Mar  7 11:35:32 2001
+++ CVSROOT/avail   Sun Mar 11 02:02:35 2001
@@ -3,12 +3,12 @@
 unavail
 avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane|CVSROOT
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,andre,sniper,david,lyric,zimt,mk,goba,zak,jmcastagnetto|phpweb
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu,bkelly|php4/pear,pearweb,pear
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez|php4,php3,php31,phpfi
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,hholzgra|functable
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu,bkelly|php4/pear,pearweb,pear
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha|php4,php3,php31,phpfi
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
 
avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams,smasiello,dim,lucasr,cpereira,lagflores,kjh90,ernani,theseer,cevm,noribsd,eskaly,mctrash,berto,leobopp,tcr|phpdoc
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,sasha,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,

[PHP] Re: isset and multiple selects


Hi,

No, empty(), also does not apply, because it is not set.

It is NOT in the HTTO_POST_VARS Array!

Is this a usual behavior?

Greets,

Alex
-- 
___
Alexander Lohse
Human Touch Medienproduktion GmbH
Am See 1
17440 Klein Jasedow

Tel: (038374) 75211
Fax: (038374) 75223
eMail: [EMAIL PROTECTED]
http://www.humantouch.de

-- 
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] Retrieving data from multiple select list


try this:

in the form:

   Item 1
   Item 2
   Item 3


in the script:
$num = sizeof($CategoryID); // Number of array items
for($i=0;$i<$num;$i++)
  {
  // $CategoryID[$i] --> whatever you wanna do with it...
  }



"Ben Cheng" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:p05010402b6d0b285663b@[10.10.0.169]...
> I have a select box that allows the user to select and submit more
> than one selection at a time.  How do I retrieve all the selections
> in PHP?  For example, the select list is named CategoryID.  But when
> I select more than one item and then hit submit, $CategoryID only
> shows me the last value of the selected items.  How do I see all the
> values that have been selected?
>
> -Ben
>
> --
> 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 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]