Re: [PHP] Refresh particular browser while updating another browser

2001-01-14 Thread Chris Adams

On 13 Jan 2001 23:45:58 -0800, Hendry Sumilo <[EMAIL PROTECTED]> wrote:
>I would like how to refresh particular browser with a new updated data when 
>the user has updated it at another browser.
>Purpose of doing this is particular user won't user overwrite new value if 
>he uses another browser to update it.

I don't think there's a good way of doing this sort of something strange with a
Java applet. The easiest way of doing this would be to include a timestamp row 
in your database table; the edit form would be generated with the current value
of that field. When they submit the form, your code can check to see if the time
stamp that was current when the form was created is still valid and either 
process the request or give the user some sort of "Overwrite newer data (y/n)"
prompt.

-- 
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/vpopmail .cvsignore CREDITS Makefile.in config.m4 php_vpopmail.c php_vpopmail.h

2001-01-14 Thread David Croft

david   Sun Jan 14 00:54:00 2001 EDT

  Added files: 
/php4/ext/vpopmail  .cvsignore CREDITS Makefile.in config.m4 
php_vpopmail.c php_vpopmail.h 
  Log:
  vpopmail extension
  
  


Index: php4/ext/vpopmail/.cvsignore
+++ php4/ext/vpopmail/.cvsignore
Makefile
*.lo
*.la
libs
deps
libs.mk

Index: php4/ext/vpopmail/Makefile.in
+++ php4/ext/vpopmail/Makefile.in
# $Id: Makefile.in,v 1.1 2001/01/14 08:54:00 david Exp $

LTLIBRARY_NAME= libvpopmail.la
LTLIBRARY_SOURCES = php_vpopmail.c
LTLIBRARY_SHARED_NAME = vpopmail.la
LTLIBRARY_SHARED_LIBADD = $(VPOPMAIL_SHARED_LIBADD)

include $(top_srcdir)/build/dynlib.mk

Index: php4/ext/vpopmail/config.m4
+++ php4/ext/vpopmail/config.m4
dnl $Id: config.m4,v 1.1 2001/01/14 08:54:00 david Exp $
dnl config.m4 for extension vpopmail

PHP_ARG_WITH(vpopmail, whether to include vpopmail support,
[  --with-vpopmail[=DIR]  Include vpopmail support])

if test "$PHP_VPOPMAIL" != "no"; then

  for i in /home/vpopmail /home/popmail /var/qmail/vpopmail /var/qmail/popmail 
$PHP_VPOPMAIL; do
if test -r $i/vpopmail.h; then
  VPOPMAIL_INC_DIR=$i
elif test -r $i/include/vpopmail.h; then
  VPOPMAIL_INC_DIR=$i/include
fi

if test -r $i/libvpopmail.a; then
  VPOPMAIL_LIB_DIR=$i
elif test -r $i/lib/libvpopmail.a; then
  VPOPMAIL_LIB_DIR=$i/lib
fi
  done

  if test -z "$VPOPMAIL_INC_DIR"; then
AC_MSG_ERROR(Could not find vpopmail.h. Please make sure you have
 vpopmail installed. Use
 ./configure --with-vpopmail= if necessary)
  fi

  if test -z "$VPOPMAIL_LIB_DIR"; then
AC_MSG_ERROR(Could not find libvpopmail.a. Please make sure you have
 vpopmail installed. Use
 ./configure --with-vpopmail= if necessary)
  fi

  AC_MSG_RESULT(found in $VPOPMAIL_LIB_DIR)

  AC_ADD_INCLUDE($VPOPMAIL_INC_DIR)

  PHP_SUBST(VPOPMAIL_SHARED_LIBADD)
  AC_ADD_LIBRARY_WITH_PATH(vpopmail, $VPOPMAIL_LIB_DIR, VPOPMAIL_SHARED_LIBADD)

  AC_DEFINE(HAVE_VPOPMAIL, 1, [ ])

  PHP_EXTENSION(vpopmail, $ext_shared)
fi

Index: php4/ext/vpopmail/php_vpopmail.c
+++ php4/ext/vpopmail/php_vpopmail.c
/*
   +--+
   | PHP version 4.0  |
   +--+
   | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group |
   +--+
   | This source file is subject to version 2.02 of the PHP license,  |
   | that is bundled with this package in the file LICENSE, and is|
   | available at through the world-wide-web at   |
   | http://www.php.net/license/2_02.txt. |
   | If you did not receive a copy of the PHP license and are unable to   |
   | obtain it through the world-wide-web, please send a note to  |
   | [EMAIL PROTECTED] so we can mail you a copy immediately.   |
   +--+
   | Author: David Croft <[EMAIL PROTECTED]>   |
   +--+
*/

/* $Id: php_vpopmail.c,v 1.1 2001/01/14 08:54:00 david Exp $ */

#include "php.h"
#include "php_ini.h"
#include "php_vpopmail.h"

#include "vpopmail.h"

#include "ext/standard/php_string.h"

#ifdef ZTS
int vpopmail_globals_id;
#else
php_vpopmail_globals vpopmail_globals;
#endif

/* Function table */

function_entry vpopmail_functions[] = {
PHP_FE(vpopmail_auth_user, NULL)
PHP_FE(vpopmail_adddomain, NULL)
PHP_FE(vpopmail_deldomain, NULL)
PHP_FE(vpopmail_adduser, NULL)
PHP_FE(vpopmail_deluser, NULL)
PHP_FE(vpopmail_passwd, NULL)
PHP_FE(vpopmail_setuserquota, NULL)
{NULL, NULL, NULL}
};

zend_module_entry vpopmail_module_entry = {
"vpopmail",
vpopmail_functions,
PHP_MINIT(vpopmail),
PHP_MSHUTDOWN(vpopmail),
NULL,
NULL,
PHP_MINFO(vpopmail),
STANDARD_MODULE_PROPERTIES
};

#ifdef COMPILE_DL_VPOPMAIL
ZEND_GET_MODULE(vpopmail)
#endif


PHP_INI_BEGIN()
/*  STD_PHP_INI_ENTRY("pfpro.proxypassword","",
 PHP_INI_ALL, OnUpdateString,proxypassword,  
php_pfpro_globals,  pfpro_globals) */
PHP_INI_END()


PHP_MINIT_FUNCTION(vpopmail)
{
REGISTER_INI_ENTRIES();
return SUCCESS;
}

PHP_MSHUTDOWN_FUNCTION(vpopmail)
{
UNREGISTER_INI_ENTRIES();
return SUCCESS;
}

PHP_MINFO_FUNCTION(vpopmail)
{
php_info_print_table_start();
php_info_print_table_header(2, "vpopmail support", "enabled");
/*  php_info_print_table_row(2, "vpopmail version", "Who knows"); */
php_info_print_table_end();

DIS

[PHP-CVS] cvs: php4 /ext/vpopmail php_vpopmail.c

2001-01-14 Thread David Croft

david   Sun Jan 14 01:01:25 2001 EDT

  Modified files:  
/php4/ext/vpopmail  php_vpopmail.c 
  Log:
  # restored code for latest vpopmail version
  @ New extension for vpopmail - http://www.inter7.com/vpopmail (David Croft)
  
  
Index: php4/ext/vpopmail/php_vpopmail.c
diff -u php4/ext/vpopmail/php_vpopmail.c:1.1 php4/ext/vpopmail/php_vpopmail.c:1.2
--- php4/ext/vpopmail/php_vpopmail.c:1.1Sun Jan 14 00:54:00 2001
+++ php4/ext/vpopmail/php_vpopmail.cSun Jan 14 01:01:25 2001
@@ -16,8 +16,10 @@
+--+
 */
 
-/* $Id: php_vpopmail.c,v 1.1 2001/01/14 08:54:00 david Exp $ */
+/* $Id: php_vpopmail.c,v 1.2 2001/01/14 09:01:25 david Exp $ */
 
+#undef VPOPMAIL_IS_REALLY_OLD
+
 #include "php.h"
 #include "php_ini.h"
 #include "php_vpopmail.h"
@@ -110,9 +112,14 @@
convert_to_long_ex(gid);
 
retval = vadddomain(Z_STRVAL_PP(domain),
-   /* 
 Z_STRVAL_PP(dir),
-  
 Z_LVAL_PP(uid), */
-   Z_LVAL_PP(gid));
+#ifdef VPOPMAIL_IS_REALLY_OLD
+   Z_STRVAL_PP(dir),
+   Z_LVAL_PP(uid),
+   Z_LVAL_PP(gid)
+#else
+   0
+#endif
+   );
 
if (retval == VA_SUCCESS) {
RETURN_TRUE;



-- 
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/mysql php_mysql.c

2001-01-14 Thread Zeev Suraski

zeevSun Jan 14 01:30:17 2001 EDT

  Modified files:  
/php4/ext/mysql php_mysql.c 
  Log:
  Don't fetch numeric indices in mysql_fetch_object()
  
  
Index: php4/ext/mysql/php_mysql.c
diff -u php4/ext/mysql/php_mysql.c:1.62 php4/ext/mysql/php_mysql.c:1.63
--- php4/ext/mysql/php_mysql.c:1.62 Fri Jan 12 00:03:24 2001
+++ php4/ext/mysql/php_mysql.c  Sun Jan 14 01:30:17 2001
@@ -16,7 +16,7 @@
+--+
 */
  
-/* $Id: php_mysql.c,v 1.62 2001/01/12 08:03:24 rasmus Exp $ */
+/* $Id: php_mysql.c,v 1.63 2001/01/14 09:30:17 zeev Exp $ */
 
 
 /* TODO:
@@ -1442,7 +1442,7 @@
Fetch a result row as an object */
 PHP_FUNCTION(mysql_fetch_object)
 {
-   php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
+   php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MYSQL_ASSOC);
if (return_value->type==IS_ARRAY) {
return_value->type=IS_OBJECT;
return_value->value.obj.properties = return_value->value.ht;



-- 
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] logging page views, which method is better????

2001-01-14 Thread php3

Addressed to: "Dallas Kropka" <[EMAIL PROTECTED]>
  [EMAIL PROTECTED]

** Reply to note from "Dallas Kropka" <[EMAIL PROTECTED]> Sun, 14 Jan 2001 
00:57:10 -0600
>
>
>   I have a large site, with several hundred pages its a product
> listing and shopping cart and I want to log my page views I
> receive an average of 3000 hits per minute.
>
> Is it better (faster) to log my views to a database table? or to a
> flat file?


No need to re-invent the wheel, all accesses are already being logged.


If you are using Apache, take a look at the access log.  Every hit to
the server is already logged there.  I am not sure what the default
location for the file is, but you can find it with

   locate access_log

or by looking for the string  Log  in your httpd.conf file.  I believe
it may appear under either the AccessLog or CustomLog keywords.

You might want to look at Webalizer, or a couple of other programs to
analyze the contents.

   http://www.mrunix.net/webalizer/

There are others, but this is the one I use.





Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com

--
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] MSQL and php creating problem with date..

2001-01-14 Thread Dhaval Desai

Hiee Guys I am trying to do the following: but I get
an error saying:


*
You have an error in your SQL syntax near
'dayofmonth(date_add('', INTERVAL 7 DAY)))' at line 2
*









Can anybody help me out please


Thanx!
Dhaval Desai






__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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

2001-01-14 Thread Christoph Aigner

hello,

is it possible to use the socket-functions within a windows-environment, or
are they for linux-distributions only ...?


regards christoph


-- 
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] Wondering whats wrong?

2001-01-14 Thread Zabia Networks Webmaster

Yeah that was it exactly what was wrong. Thank you!


*** REPLY SEPARATOR  ***

On 13/01/2001 at 18:03 Sterling Hughes wrote:

>Toby Butzon wrote:
>>
>> This is a matter of figuring out why the variable isn't a
>> valid file handle resource. To do so, find where it should
>> be made such a resource (the line that says $fp =
>> fsockopen...etc... is probably it), and add some error
>> checking. I believe this function has its own way of
>> returning what's wrong; check php.net/fsockopen and take a
>> look at additional arguments... Then you must simply output
>> the resulting error message (which is assumed to be
>> resulting because the file handle is not being created).
>>
>> --Toby
>>
>
>That is good advice, but i don't think that's the poster's problem.
>
>The problem is the following code:
>
>fputs("$fp", "GROUP $groups[$i]\n");
>
>You cannot stringify a resource (with PHP 4).  Therefore the offending code must
>look like:
>
>fputs($fp, "GROUP $groups[$i]\n");
>
>In order to work...
>
>-Sterling
>
>
>> - Original Message -
>> From: "K.Simon" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Saturday, January 13, 2001 11:07 AM
>> Subject: [PHP] Wondering whats wrong?
>>
>> Hello,
>> running the following script (exec.php) on telnet account i
>> get this error:
>> Warning: Supplied argument is not a valid file handler
>> resource in exec.php on line 21
>> Can anybody tell me whats wrong with it? Normally it should
>> fetch the newsgroups on my local news server and insert them
>> into rows on a mysql database. This script is part of
>> myPHPusenet-0.9.9.
>> I hope the script was not too long.
>>
>> THE SCRIPT:
>> *
>>
>> #!/usr/bin/php -q
>>
>> >
>> $start = gettimeofday();
>>
>> include("conf.inc.php");
>> include("newsgroups.inc.php");
>>
>> @mysql_connect($hostname, $username, $password) OR DIE
>> ("Could not connect");
>> @mysql_select_db("$database") OR DIE ("Could not open
>> database");
>>
>> $i = 0;
>> $j = 0;
>>
>> while($i < sizeof($groups) ) {
>>
>> $fp = fsockopen("$server", 119);
>> set_socket_blocking($fp, true);
>> $response = fgets($fp, 256);
>> fputs("$fp", "GROUP $groups[$i]\n");
>> $gruppe = fgets($fp, 1024);
>> $range = split(" ", $gruppe);
>> $range_start = $range[2];
>> $range_end = $range[3];
>>
>> $db_ng_name[$i] = ereg_replace("\.","_", $groups[$i]);
>>
>> $query1 = "UPDATE last SET last.last = '$range_end' WHERE
>> newsgroup = '$db_ng_name[$i]'";
>> $query2 = "SELECT last FROM last WHERE (newsgroup LIKE
>> '$db_ng_name[$i]')";
>> $runit2 = MYSQL_QUERY($query2);
>> $result = @MYSQL_RESULT($runit2,0,last);
>>
>> IF (@MYSQL_NUMROWS($runit2) == 1) {
>>
>> $range_start = $result;
>>
>> while($range_start < $range_end) {
>>
>> system("parse.php $server $groups[$i] $range_start");
>>
>> $range_start++;
>> $j++;
>>
>> }
>>
>> }
>>
>> ELSE {
>> PRINT "No new posts in $groups[$i]\n";
>> }
>>
>> $runit1 = MYSQL_QUERY($query1);
>>
>> $i++;
>> }
>>
>> $tables = MYSQL_LIST_TABLES($database);
>> $k = 0;
>>
>> WHILE ($k < MYSQL_NUM_ROWS ($tables)) {
>> $area_names[$k] = MYSQL_TABLENAME ($tables, $k);
>> $query = "SELECT count(*) AS total_nr FROM $area_names[$k]";
>> $q_string = @MYSQL_QUERY($query);
>> $fundet = @MYSQL_RESULT($q_string,0,total_nr);
>>
>> $total += $fundet;
>> $k++;
>> }
>>
>> $date = date("d");
>> $month = date("F");
>> $shortmonth = date("M");
>> $year = date("Y");
>> $hour = date("H");
>> $min = date("i");
>> $sec = date("s");
>>
>> $end =  gettimeofday();
>>
>> $exec_time = number_format( (($end["sec"] +
>> $end["usec"]/100) - ($start["sec"] +
>> $start["usec"]/100)), 3);
>>
>> $contents = "Hi!\n\nThe newsparser was run $date $month
>> $year at $hour:$min:$sec, and it inserted $j posts in
>> the\ndatabasen, there are now $total posts in the
>> \n\nDatabase the update took $exec_time seconds.\n\n--
>> \n\nYours Truly.\n\tmyPHP usenet";
>>
>> mail("$email", "$subject", "$contents",
>> "From:$USER@$HOSTNAME\nReply-To: [EMAIL PROTECTED]");
>>
>> $fp = fopen($logname, "a") or die ("Could not open
>> logfile");
>> $logmess = "$shortmonth $date $hour:$min:$sec the newsparser
>> inserted $j posts, there are now $total total\n";
>> $write = fputs($fp, $logmess);
>> fclose($fp);
>>
>> ?>
>>
>> --
>> 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 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] Subdomain-Service

2001-01-14 Thread Bastian

Hello!

Are there any scripts to create an Subdomain-Service (yourname.domain.com)
without having Wildcards? I've got a danish-script, but it's not that, what
I expected, becuase it needs wildcars.

Thanks!!

Reagards,
Bastian



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

2001-01-14 Thread Bastian

Hello!

A requirement is a special server that sends them, but such a server costs
money, every message costs some.
Another way is to send the messages to the mailaddress. I only know it from
Germany: [EMAIL PROTECTED]

Bastian


--






//End of message
"Dhaval Desai" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> HI!
>
> I am trying to build a SMS(Short message service)
> mesaging system..can anybody tell me what are the
> requirements for this...
>
> Thanx a lot!
> Dhaval Desai
>
>
> __
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> --
> 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] Re: Is there an error??

2001-01-14 Thread Hrishi

$odate_sql is not initialized.

---
Yeah, there are more important things in life than money, but they won't go
out with you if you don't have any.
- Original Message -
From: "Dhaval Desai" <[EMAIL PROTECTED]>
To: "Hrishi" <[EMAIL PROTECTED]>
Sent: Sunday, January 14, 2001 4:59 PM
Subject: Is there an error??


> Hiee Guys I am trying to do the following: but I get
> an error saying:
>
>
> *
> You have an error in your SQL syntax near
> 'dayofmonth(date_add('', INTERVAL 7 DAY)))' at line 2
> *
>
>
>
> 
> $odate = date('Y m  d');
>
> $connect = mysql_connect("localhost");
>
>
> $query = "insert into list(odate,edate)
> values($odate,dayofmonth(date_add('$odate_sql',
> INTERVAL 7 DAY))";
>
> $execute = mysql_db_query("dubaiteenz",$query);
> if($execute)
> {
> echo "Success, you are thinking in the right
> direction";
> }
> else
> {
> echo mysql_error();
> }
>
>
> ?>
>
>
>
>
>
> Can anybody help me out please
>
>
> Thanx!
> Dhaval Desai
>
>
>
>
>
>
> __
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
>
>


-- 
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 file.c

2001-01-14 Thread Thies C. Arntzen

thies   Sun Jan 14 06:11:38 2001 EDT

  Modified files:  
/php4/ext/standard  file.c 
  Log:
  fixed readfile() fd-leak.
  
  guys, always remember that every function that *generates output* could cause a
  bailout if ignore_user_abort is set to false (and the user _aborts_ the
  connection). in this case a longjump will be performed and our function (in
  this case readfile) will have no chance to clean-up. having said that it's a
  good idea to register all opened files using REGISTER_RESOURCE - that way the
  engine will make sure they get closed on request end.
  
  
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.134 php4/ext/standard/file.c:1.135
--- php4/ext/standard/file.c:1.134  Sat Jan 13 15:49:44 2001
+++ php4/ext/standard/file.cSun Jan 14 06:11:38 2001
@@ -20,7 +20,7 @@
+--+
  */
 
-/* $Id: file.c,v 1.134 2001/01/13 23:49:44 zeev Exp $ */
+/* $Id: file.c,v 1.135 2001/01/14 14:11:38 thies Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -1395,6 +1395,7 @@
int size=0;
int use_include_path=0;
int issock=0, socketd=0;
+   int rsrc_id;

/* check args */
switch (ARG_COUNT(ht)) {
@@ -1429,14 +1430,21 @@
}
RETURN_FALSE;
}
-   if (php_header()) {
-   size = php_passthru_fd(socketd, fp, issock);
-   }
+
if (issock) {
-   SOCK_FCLOSE(socketd);
+   int *sock=emalloc(sizeof(int));
+   *sock = socketd;
+   rsrc_id = ZEND_REGISTER_RESOURCE(NULL,sock,php_file_le_socket());
} else {
-   fclose(fp);
+   rsrc_id = ZEND_REGISTER_RESOURCE(NULL,fp,php_file_le_fopen());
}
+
+   if (php_header()) {
+   size = php_passthru_fd(socketd, fp, issock);
+   }
+
+   zend_list_delete(rsrc_id);
+
RETURN_LONG(size);
 }
 



-- 
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] Refresh particular browser while updating another browser

2001-01-14 Thread Cal Evans

>From everything I know, this can't be done easily. The only way I can think
of to do it is to keep both sessions alive so that you still have a
connection to the browser from the server.  This is not real good.

I would instead, explore options using JavaScript.  I think I can see a
couple of ways that you could use JavaScript to force a refresh of a window
that it has a handle to, upon an event. (Like pressing the submit button in
a browser.)

Cal
http://www.calevans.com


-Original Message-
From: Hendry Sumilo [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 1:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Refresh particular browser while updating another browser


Dear Expert,

I would like how to refresh particular browser with a new updated data when
the user has updated it at another browser.
Purpose of doing this is particular user won't user overwrite new value if
he uses another browser to update it.

Thank you



Sincerely Yours

Hendry Sumilo
[EMAIL PROTECTED]
http://members.tripodasia.com.my/hsumilo

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


--
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] load balancing with php/apache?

2001-01-14 Thread Cal Evans

I agree. You've piqued my curiosity.  Can you go into details?

Cal
http://.calevans.com

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 10:19 PM
To: jeremy brand
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] load balancing with php/apache?


On Sat, 13 Jan 2001, jeremy brand wrote:

> Oh, BTW, we don't use PHP sessions, we use our own.  
That has got me hooked - what do you use?
do you mean you dont use 
1) PHP4 sessions 
OR
2) don't use PHP for session handling at all?

Tarique

-- 
=
   B2B Application Providers
http://www.sanisoft.com
 Vortal for Nagpur http://nagpurcity.net
=


-- 
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] RTFM me to IIF file format creation...

2001-01-14 Thread Rouvas Stathis

I find wotsit.org an excellent resource :

-Stathis.

Dallas Kropka wrote:
> 
> I need to create files and reports for importation into QuickBooks, but they
> need to be in the IIF file format that QuickBooks supports where can I
> find information for creating these files?
> 
> --
> 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-general Digest 14 Jan 2001 14:25:36 -0000 Issue 454

2001-01-14 Thread php-general-digest-help


php-general Digest 14 Jan 2001 14:25:36 - Issue 454

Topics (messages 34436 through 34470):

Re: rewriting the browser's url
34436 by: Cynic

$B=K!*$4@.?M(B**
34437 by: Over Twenty

Escape characters
34438 by: Jeremy Bowen
34439 by: Cynic

Re: Problem building php 3.0.18
34440 by: Michael A. Peters

Mixing PHP3 & SSI
34441 by: Scott Brown
34442 by: Rasmus Lerdorf
3 by: Scott Brown
34445 by: Rasmus Lerdorf
34446 by: Scott Brown
34447 by: Rasmus Lerdorf
34449 by: Scott Brown
34451 by: Rasmus Lerdorf

Re: load balancing with php/apache?
34443 by: tarique.sanisoft.com
34469 by: Cal Evans

Re: RTFM me to IIF file format creation...
34448 by: php3.developersdesk.com
34470 by: Rouvas Stathis

Re: problem using flock()
34450 by: Rasmus Lerdorf
34458 by: Mukul Sabharwal

Installing PHP in Windows Me and PWS4
34452 by: Statbat

SMs
34453 by: Dhaval Desai
34466 by: Bastian

file checking
34454 by: Huseyin

logging page views, which method is better
34455 by: Dallas Kropka
34461 by: php3.developersdesk.com

Refresh particular browser while updating another browser
34456 by: Hendry Sumilo
34460 by: Chris Adams
34468 by: Cal Evans

Easiest Way to Install PHP3 with MySQL support on RHL 6.2
34457 by: Neil Zanella

Re: cookie stopped working???
34459 by: Rasmus Lerdorf

MSQL and php creating problem with date..
34462 by: Dhaval Desai

socket-functions
34463 by: Christoph Aigner

Re: Wondering whats wrong?
34464 by: Zabia Networks Webmaster

Subdomain-Service
34465 by: Bastian

Re: Is there an error??
34467 by: Hrishi

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]


--



1) use POST method, not GET
2) don't output anything from the script that recieves the 
POST data, instead, redirect to another page. 
pseudocode follows:

if( post ) {
query the database ;
header( 'Location: result.php' ) ;
}

html form



At 03:23 14.1. 2001, Jared Howard wrote the following:
-- 
>I need to know how to be able to eliminate the querysting portion of the
>URL that is displayed on the users browser.  I don't want it possible to
>click refresh and reenter in the same querystring that was used previously
>(eg. php runs a mysql query of INSERT based on the querystring which only
>should be run once no matter how many times they click refresh).
>
>
>-- 
>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]
--end of quote-- 




Cynic:

A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.

[EMAIL PROTECTED]





$B$4@.?M%*%a%G%H%&%4%6%$%^%9(B
http://www.gem.hi-ho.ne.jp/p-head/tobi/infdex.htm
$B$4@.?M0J30$O:o=|$7$F$/$@$5$$(B



Hey All,

I am sending e-mail using the mail() command. My question is whenever
an ' is used in the e-mail it is escaped like this: don\'t. Is there any way to
prevent this??

Thanks,

Jeremy 




mail( 'email@address' , 'subject' , stripslashes( $body ) ) ;


At 04:22 14.1. 2001, Jeremy Bowen wrote the following:
-- 
>Hey All,
>
>I am sending e-mail using the mail() command. My question is whenever
>an ' is used in the e-mail it is escaped like this: don\'t. Is there any way to
>prevent this??
>
>Thanks,
>
>Jeremy 
>
>-- 
>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]
--end of quote-- 




Cynic:

A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.

[EMAIL PROTECTED]






I did that, and compiling those two modules as modules gives the same
error (as it would, of course).
I really would those compiled as seperate shared objects, not as part of
the libphp3.so.

These will be rpm's that are distributed, and the way users determin
what php functions they want to use is to uncomment certain shared
objects from their php3.ini file.

That way if they don't want certain php functions available, they don't
need to add to 

[PHP] Problems sending to several recipients with mail() using WIN NT and Apache

2001-01-14 Thread Trond Straume

Hi!

I'm using Apache 1.3.14 on WIN NT, and can't send mail to more than one
recipient using the PHP-mail command.

I've checked php.ini, and everything seems to be fine...

This is an example that won't work (but should have worked..?)

mail("[EMAIL PROTECTED], [EMAIL PROTECTED]","subject","content");

This one however turns out fine:

mail("[EMAIL PROTECTED]","subject","content");

I have also tried to "manipulate" the header with "cc:", but no copy
arrives, only the one in the "to:" field.

Any suggestions?

Trond Straume



-- 
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 vs JSP

2001-01-14 Thread hsmith

Hi all 

I'm busy working on a contract .. and we need to do some web based stuff .. but the 
client is intent on using jsp and not PHP.
Is there somewhere where I can get good comparists between the two pro and cons etc 
etc .. 

I would much rather use PHP  then JSP for the development

Thanks 
Henti Smith

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

2001-01-14 Thread Cal Evans

Greetings Henti,

While I personally prefer working I PHP after having just finished leading a
team of developers on a large JSP project, I would advise you to use the
technologies that your client is most comfortable with. Especially if they
understand that it will cost more and are willing to pay the extra.

It is my experience that while JSP is more powerful, you pay for that power
in development time.  Since the Java API is so broad, you sometimes have to
hunt around for a while to find the right commands to do the job.  PHP will
do 75% of the job, do it fast enough to please most clients and developers
can usually do it quicker in PHP.

Does your client have overriding technical concerns about PHP?
Do they have specific reasons why they are insisting on Java? (technical or
otherwise?)

I worked a job once where we had to deploy Solaris on Sun HW just because it
was in the medical industry and the client did not feel that Linux would be
accepted.  It did not matter that it would eventually cost the client over 1
million on HW just to do the job. (We could have distributed a lot of low
cost Linux boxes, done the same job for about 1/3 of that)

Bottom line is some people just don' get it. If you want the contract then I
would go JSP.  If you don't want' it/need it, walk away.

Cal
http://.calevans.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 9:35 PM
To: PHP list
Subject: [PHP] PHP vs JSP


Hi all

I'm busy working on a contract .. and we need to do some web based stuff ..
but the client is intent on using jsp and not PHP.
Is there somewhere where I can get good comparists between the two pro and
cons etc etc ..

I would much rather use PHP  then JSP for the development

Thanks
Henti Smith

--
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 cvsusers gen_acl_file.m4

2001-01-14 Thread Rasmus Lerdorf

rasmus  Sun Jan 14 08:07:32 2001 EDT

  Modified files:  
/CVSROOTavail cvsusers gen_acl_file.m4 
  Log:
  Fold generated extension karma into gen_acl script and add CVS account
  for Boian so he can play in the ext/vpopmail directory
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.34 CVSROOT/avail:1.35
--- CVSROOT/avail:1.34  Sat Jan 13 21:55:07 2001
+++ CVSROOT/avail   Sun Jan 14 08:07:31 2001
@@ -6,6 +6,7 @@
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon|php4,php3,php31,phpfi
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,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|phpdoc
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
 avail|NOBODY|php4/ext/calendar
@@ -90,5 +91,4 @@
 avail|sas|php4/sapi/thttpd
 avail|sas|php4/sapi/apache2filter
 avail|neotron|php4/sapi/caudium
-
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,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|phpdoc
+avail|david,bbonev|php4/ext/vpopmail
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.187 CVSROOT/cvsusers:1.188
--- CVSROOT/cvsusers:1.187  Thu Jan 11 22:15:30 2001
+++ CVSROOT/cvsusersSun Jan 14 08:07:32 2001
@@ -234,3 +234,4 @@
 uttam Uttam Ku Behera [EMAIL PROTECTED]
Documentation
 ag315 JongCheol Yu[EMAIL PROTECTED]   Korean 
translation
 ropik Jeong Hee Lee   [EMAIL PROTECTED] Korean 
translation
+bbonevBoian Bonev [EMAIL PROTECTED] vpopmail
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.34 CVSROOT/gen_acl_file.m4:1.35
--- CVSROOT/gen_acl_file.m4:1.34Sat Jan 13 21:55:07 2001
+++ CVSROOT/gen_acl_file.m4 Sun Jan 14 08:07:32 2001
@@ -20,7 +20,92 @@
 avail|php_dev|php4,php3,php31,phpfi
 avail|php_dev,hholzgra|functable
 avail|php_pres|pres
-esyscmd(/bin/sh gen_ext_sapi_list.sh)
 avail|php_dev,php_ext,php_doc|phpdoc
+dnl Access to individual dirs in the code tree
+avail|rasmus|php4/ext/aspell
+avail|andi|php4/ext/bcmath
+avail|NOBODY|php4/ext/calendar
+avail|zeev|php4/ext/com
+avail|steinm|php4/ext/cpdf
+avail|evan|php4/ext/cybercash
+avail|rasmus,jimw|php4/ext/db
+avail|sas|php4/ext/dba
+avail|jimw|php4/ext/dbase
+avail|steinm|php4/ext/domxml
+avail|rasmus|php4/ext/exif
+avail|steinm|php4/ext/fdf
+avail|chad|php4/ext/filepro
+avail|askalski|php4/ext/ftp
+avail|rasmus,ssb,jimw,jah|php4/ext/gd
+avail|alex|php4/ext/gettext
+avail|steinm|php4/ext/hyperwave
+avail|musone|php4/ext/icap
+avail|veebert,musone,rasmus,askalski,chagenbu|php4/ext/imap
+avail|danny,nyenyon|php4/ext/informix
+avail|jah|php4/ext/interbase
+avail|rubys|php4/ext/java
+avail|amitay,rasmus|php4/ext/ldap
+avail|musone,chagenbu|php4/ext/mcal
+avail|sas,derick|php4/ext/mcrypt
+avail|sas|php4/ext/mhash
+avail|zeev|php4/ext/msql
+avail|fmk|php4/ext/mssql
+avail|zeev|php4/ext/mysql
+avail|ssb,thies|php4/ext/oci8
+avail|ssb,kara,fmk|php4/ext/odbc
+avail|ssb,mitch,rasmus,kara,th

[PHP-CVS] cvs: CVSROOT / commitinfo

2001-01-14 Thread Rasmus Lerdorf

rasmus  Sun Jan 14 08:09:44 2001 EDT

  Modified files:  
/CVSROOTcommitinfo 
  Log:
  Use cvs_acls script from CVSROOT
  
  
Index: CVSROOT/commitinfo
diff -u CVSROOT/commitinfo:1.9 CVSROOT/commitinfo:1.10
--- CVSROOT/commitinfo:1.9  Sun Jan  7 21:20:42 2001
+++ CVSROOT/commitinfo  Sun Jan 14 08:09:44 2001
@@ -1,5 +1,5 @@
 #
-#ident "@(#)cvs/examples:$Name:  $:$Id: commitinfo,v 1.9 2001/01/08 05:20:42 rasmus 
Exp $"
+#ident "@(#)cvs/examples:$Name:  $:$Id: commitinfo,v 1.10 2001/01/14 16:09:44 rasmus 
+Exp $"
 #
 # The "commitinfo" file is used to control pre-commit checks.
 # The filter on the right is invoked with the repository and a list 
@@ -33,4 +33,4 @@
 .*distributions.*  /bin/true
 
 DEFAULT$CVSROOT/CVSROOT/commitinfo.pl
-ALL /usr/local/bin/cvs_acls $USER
+ALL $CVSROOT/CVSROOT/cvs_acls $USER



-- 
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 cvsusers gen_acl_file.m4

2001-01-14 Thread Rasmus Lerdorf

rasmus  Sun Jan 14 08:12:31 2001 EDT

  Modified files:  
/CVSROOTavail cvsusers gen_acl_file.m4 
  Log:
  phpdoc CVS account for Bokin Jung
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.35 CVSROOT/avail:1.36
--- CVSROOT/avail:1.35  Sun Jan 14 08:07:31 2001
+++ CVSROOT/avail   Sun Jan 14 08:12:31 2001
@@ -6,7 +6,7 @@
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon|php4,php3,php31,phpfi
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,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|phpdoc
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,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|phpdoc
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
 avail|NOBODY|php4/ext/calendar
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.188 CVSROOT/cvsusers:1.189
--- CVSROOT/cvsusers:1.188  Sun Jan 14 08:07:32 2001
+++ CVSROOT/cvsusersSun Jan 14 08:12:31 2001
@@ -235,3 +235,4 @@
 ag315 JongCheol Yu[EMAIL PROTECTED]   Korean 
translation
 ropik Jeong Hee Lee   [EMAIL PROTECTED] Korean 
translation
 bbonevBoian Bonev [EMAIL PROTECTED] vpopmail
+jbi1979   Bokin Jung  [EMAIL PROTECTED]Korean 
+translation
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.35 CVSROOT/gen_acl_file.m4:1.36
--- CVSROOT/gen_acl_file.m4:1.35Sun Jan 14 08:07:32 2001
+++ CVSROOT/gen_acl_file.m4 Sun Jan 14 08:12:31 2001
@@ -3,7 +3,7 @@
 dnl PHP Developers (full access to the source trees)
 define(`php_dev', 
`php_group,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon')
 dnl PHP Documentation Group
-define(`php_doc', 
`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')dnl
+define(`php_doc', 
+`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,

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

2001-01-14 Thread Rasmus Lerdorf

rasmus  Sun Jan 14 08:19:01 2001 EDT

  Modified files:  
/CVSROOTavail cvsusers gen_acl_file.m4 
  Log:
  Add CVS account for Sean Bright - I briefly skimmed his patch.  Looks ok.
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.36 CVSROOT/avail:1.37
--- CVSROOT/avail:1.36  Sun Jan 14 08:12:31 2001
+++ CVSROOT/avail   Sun Jan 14 08:19:01 2001
@@ -2,11 +2,11 @@
 unavail
 avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev|CVSROOT
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david|phpweb
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt|php4/pear,pearweb,pear
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon|php4,php3,php31,phpfi
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,hholzgra|functable
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt|php4/pear,pearweb,pear
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer|php4,php3,php31,phpfi
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,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|phpdoc
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,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|phpdoc
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
 avail|NOBODY|php4/ext/calendar
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.189 CVSROOT/cvsusers:1.190
--- CVSROOT/cvsusers:1.189  Sun Jan 14 08:12:31 2001
+++ CVSROOT/cvsusersSun Jan 14 08:19:01 2001
@@ -236,3 +236,4 @@
 ropik Jeong Hee Lee   [EMAIL PROTECTED] Korean 
translation
 bbonevBoian Bonev [EMAIL PROTECTED] vpopmail
 jbi1979   Bokin Jung  [EMAIL PROTECTED]Korean 
translation
+elixerSean Bright [EMAIL PROTECTED]locale 
+stuff
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.36 CVSROOT/gen_acl_file.m4:1.37
--- CVSROOT/gen_acl_file.m4:1.36Sun 

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

2001-01-14 Thread Rasmus Lerdorf

rasmus  Sun Jan 14 08:24:56 2001 EDT

  Modified files:  
/CVSROOTavail gen_acl_file.m4 
  Log:
  Give Boian access to phpdoc tree
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.37 CVSROOT/avail:1.38
--- CVSROOT/avail:1.37  Sun Jan 14 08:19:01 2001
+++ CVSROOT/avail   Sun Jan 14 08:24:56 2001
@@ -6,7 +6,7 @@
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer|php4,php3,php31,phpfi
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,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|phpdoc
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,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|phpdoc
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
 avail|NOBODY|php4/ext/calendar
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.37 CVSROOT/gen_acl_file.m4:1.38
--- CVSROOT/gen_acl_file.m4:1.37Sun Jan 14 08:19:01 2001
+++ CVSROOT/gen_acl_file.m4 Sun Jan 14 08:24:56 2001
@@ -3,7 +3,7 @@
 dnl PHP Developers (full access to the source trees)
 define(`php_dev', 
`php_group,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer')
 dnl PHP Documentation Group
-define(`php_doc', 
`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')dnl
+define(`php_doc', 
+`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')dnl
 dnl Quality Assurance Team
 define(`php_qa', `jalal,zak,waldschrott,ultrapingo,lyric,jmoore,ronabop,sbergmann')dnl
 dnl PEAR Team



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

2001-01-14 Thread mOrP

hello,

i need to debug php. usually i do this by using my own-written
debugger-class where i can turn off all output with a simple change of the
"on" variable.

well nevertheless now i need to trace the status and value of a variable
during runtime. this is impossible with this class. so i tried to use the
php debugger (php.ini: debugger.enabled =   True).

this leeds to some problems:
- what is a good tcp-listener (i tried tcpdump, but this gives to much
output)
- the debugger doesn't work: the command debugger_on("localhost"); leads to
the error-message shown below:

Fatal error: Call to undefined function: debugger_on() in index.php on line
2

... and the manual says, that the debugger is still under development.

does anyone know, how to debug php-scripts?

thanx for your help,

mOrP


-- 
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 exec.c

2001-01-14 Thread Rasmus Lerdorf

rasmus  Sun Jan 14 08:30:22 2001 EDT

  Modified files:  
/php4/ext/standard  exec.c 
  Log:
  Export _Exec for extensions to use
  
  
Index: php4/ext/standard/exec.c
diff -u php4/ext/standard/exec.c:1.47 php4/ext/standard/exec.c:1.48
--- php4/ext/standard/exec.c:1.47   Sat Jan 13 13:52:09 2001
+++ php4/ext/standard/exec.cSun Jan 14 08:30:22 2001
@@ -15,7 +15,7 @@
| Author: Rasmus Lerdorf   |
+--+
  */
-/* $Id: exec.c,v 1.47 2001/01/13 21:52:09 derick Exp $ */
+/* $Id: exec.c,v 1.48 2001/01/14 16:30:22 rasmus Exp $ */
 
 #include 
 #include "php.h"
@@ -39,7 +39,7 @@
  * If type==3, output will be printed binary, no lines will be saved or returned 
(passthru)
  *
  */
-static int _Exec(int type, char *cmd, pval *array, pval *return_value)
+int _Exec(int type, char *cmd, pval *array, pval *return_value)
 {
FILE *fp;
char *buf, *tmp=NULL;



-- 
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 / configure.in /ext/standard basic_functions.c php_string.h string.c /main config.w32.h

2001-01-14 Thread Sean Bright

elixer  Sun Jan 14 08:36:31 2001 EDT

  Modified files:  
/php4   configure.in 
/php4/ext/standard  basic_functions.c php_string.h string.c 
/php4/main  config.w32.h 
  Log:
  
  
  Added localeconv() function.  Operates similarly to localeconv() defined in
  locale.h.  Should work well under non-ZTS as well as ZTS.
  
  
  

Index: php4/configure.in
diff -u php4/configure.in:1.210 php4/configure.in:1.211
--- php4/configure.in:1.210 Sat Jan 13 03:48:47 2001
+++ php4/configure.in   Sun Jan 14 08:36:29 2001
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.210 2001/01/13 11:48:47 venaas Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.211 2001/01/14 16:36:29 elixer Exp $ -*- sh -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -379,6 +379,7 @@
 regcomp \
 setitimer \
 setlocale \
+localeconv \
 setsockopt \
 setvbuf \
 shutdown \
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.296 
php4/ext/standard/basic_functions.c:1.297
--- php4/ext/standard/basic_functions.c:1.296   Sat Jan 13 15:49:44 2001
+++ php4/ext/standard/basic_functions.c Sun Jan 14 08:36:30 2001
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: basic_functions.c,v 1.296 2001/01/13 23:49:44 zeev Exp $ */
+/* $Id: basic_functions.c,v 1.297 2001/01/14 16:36:30 elixer Exp $ */
 
 #include "php.h"
 #include "php_main.h"
@@ -182,6 +182,7 @@
PHP_FE(explode,
 NULL)
PHP_FE(implode,
 NULL)
PHP_FE(setlocale,  
 NULL)
+   PHP_FE(localeconv, 
+ NULL)
PHP_FE(soundex,
 NULL)
PHP_FE(levenshtein,
 NULL)
PHP_FE(chr,
 NULL)
@@ -713,6 +714,9 @@
PHP_MINIT(pack)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(browscap)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(lcg)(INIT_FUNC_ARGS_PASSTHRU);
+#ifdef ZTS
+   PHP_MINIT(localeconv)(INIT_FUNC_ARGS_PASSTHRU);
+#endif
 
 #if HAVE_CRYPT
PHP_MINIT(crypt)(INIT_FUNC_ARGS_PASSTHRU);
@@ -769,6 +773,9 @@
PHP_MSHUTDOWN(url_scanner_ex)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
 #endif
PHP_MSHUTDOWN(file)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
+#ifdef ZTS
+   PHP_MSHUTDOWN(localeconv)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
+#endif
 
return SUCCESS;
 }
Index: php4/ext/standard/php_string.h
diff -u php4/ext/standard/php_string.h:1.31 php4/ext/standard/php_string.h:1.32
--- php4/ext/standard/php_string.h:1.31 Tue Jan  9 07:11:23 2001
+++ php4/ext/standard/php_string.h  Sun Jan 14 08:36:30 2001
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: php_string.h,v 1.31 2001/01/09 15:11:23 hirokawa Exp $ */
+/* $Id: php_string.h,v 1.32 2001/01/14 16:36:30 elixer Exp $ */
 
 /* Synced with php 3.0 revision 1.43 1999-06-16 [ssb] */
 
@@ -65,6 +65,7 @@
 PHP_FUNCTION(ord);
 PHP_FUNCTION(nl2br);
 PHP_FUNCTION(setlocale);
+PHP_FUNCTION(localeconv);
 PHP_FUNCTION(stristr);
 PHP_FUNCTION(chunk_split);
 PHP_FUNCTION(parse_str);
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.182 php4/ext/standard/string.c:1.183
--- php4/ext/standard/string.c:1.182Tue Jan  9 07:11:23 2001
+++ php4/ext/standard/string.c  Sun Jan 14 08:36:30 2001
@@ -18,7 +18,7 @@
+--+
  */
 
-/* $Id: string.c,v 1.182 2001/01/09 15:11:23 hirokawa Exp $ */
+/* $Id: string.c,v 1.183 2001/01/14 16:36:30 elixer Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -36,6 +36,9 @@
 #include "php_globals.h"
 #include "basic_functions.h"
 #include "php_smart_str.h"
+#ifdef ZTS
+#include "TSRM.h"
+#endif
 
 #define STR_PAD_LEFT   0
 #define STR_PAD_RIGHT  1
@@ -53,6 +56,17 @@
REGISTER_LONG_CONSTANT("PATHINFO_BASENAME", PHP_PATHINFO_BASENAME, CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PATHINFO_EXTENSION", PHP_PATHINFO_EXTENSION, CONST_CS 
| CONST_PERSISTENT);
 
+#ifdef HAVE_LOCALECONV
+   /* If last members of struct lconv equal CHAR_MAX, no grouping is done */  
+ 
+
+/* This is bad, but since we are going to be hardcoding in the POSIX stuff anyway... 
+*/
+# ifndef HAVE_LIMITS_H
+# define CHAR_MAX 127
+# endif
+
+   REGISTER_LONG_CONSTANT("CHAR_MAX", CHAR_MAX, CONST_CS | CONST_PERSISTENT);
+#endif
+
 #ifdef HAVE_LOCALE_H
REGISTER_LONG_CONSTANT("LC_CTYPE", LC_CTYPE, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("LC_NUMERIC", LC_NUMERIC, CONST_C

[PHP] Ad management system

2001-01-14 Thread Ahmed

Hi all,
I think this is a repeated question but I need to get the best out of
it.
I am looking for an open source Ad management system, like PHPAds but
includes advanced targeting capabilities and advanced features like setting
a frequency cap on the number of impressions each visitors views for each
Ad, entering image series, allowing rich media ads, and allowing to host
many sites and many advertisers while only supplying a simple tag to the
sites to host the ads, in brief something like DART of doubleclick or
Adforce, of course I will not find all their feature for free, but anything
even near them out there ?

Thanks
Ahmed




-- 
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] Two little questions

2001-01-14 Thread James, Yz

OK, this will be laughably easy for you guys.

I want to write a function (until now, I have been heavily repeating code,
but it's time to trim everything down.)

The function basically needs to check that username and password have been
entered, and then check them against mysql data.  All I am unsure of is the
format for the function...  is it like this:

function CUP (
if ((!$alias) || (!$password)) {
header("Location: login.php");
exit;
}
);

And reference it later with CUP(); ?  Don't worry about the MySQL side of
things, I just need to know how to lay out the function.  Oh and if I can
put anything I want in the function.

Also, if I wanted to perform a search of a column in a mysql table for
"places", would the Syntax be something like this:

$sql = " SELECT * FROM table_name
WHERE place = LIKE \"$searched_word\" ";

?

Thanks in Advance,

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]




[PHP-CVS] cvs: php4 /ext/vpopmail config.m4

2001-01-14 Thread Boian Bonev

bbonev  Sun Jan 14 08:40:26 2001 EDT

  Modified files:  
/php4/ext/vpopmail  config.m4 
  Log:
  rewritten the whole logic of the script
  added VPOPMAIL_BIN_DIR to point to ~vpopmail/bin directory
  added checks for ALL files needed by the extension
  style fixes to the output
  
  
Index: php4/ext/vpopmail/config.m4
diff -u php4/ext/vpopmail/config.m4:1.1 php4/ext/vpopmail/config.m4:1.2
--- php4/ext/vpopmail/config.m4:1.1 Sun Jan 14 00:54:00 2001
+++ php4/ext/vpopmail/config.m4 Sun Jan 14 08:40:25 2001
@@ -1,45 +1,50 @@
-dnl $Id: config.m4,v 1.1 2001/01/14 08:54:00 david Exp $
+dnl $Id: config.m4,v 1.2 2001/01/14 16:40:25 bbonev Exp $
 dnl config.m4 for extension vpopmail
 
-PHP_ARG_WITH(vpopmail, whether to include vpopmail support,
-[  --with-vpopmail[=DIR]  Include vpopmail support])
+PHP_ARG_WITH(vpopmail, for vpopmail support,
+[  --with-vpopmail[=DIR]   Include vpopmail support.])
 
 if test "$PHP_VPOPMAIL" != "no"; then
+   AC_MSG_CHECKING(for vpopmail install directory)
+   for i in ~vpopmail /home/vpopmail /home/popmail /var/qmail/vpopmail 
+/var/qmail/popmail $PHP_VPOPMAIL; do
+   if test -r $i/vpopmail.h; then
+   VPOPMAIL_INC_DIR=$i
+   VPOPMAIL_DIR=$i
+   elif test -r $i/include/vpopmail.h; then
+   VPOPMAIL_INC_DIR=$i/include
+   VPOPMAIL_DIR=$i
+   fi
+
+   if test -r $i/libvpopmail.a; then
+   VPOPMAIL_LIB_DIR=$i
+   elif test -r $i/lib/libvpopmail.a; then
+   VPOPMAIL_LIB_DIR=$i/lib
+   fi
+
+   if test -r $i/vadddomain; then
+   VPOPMAIL_BIN_DIR=$i
+   elif test -r $i/bin/vadddomain; then
+   VPOPMAIL_BIN_DIR=$i/bin
+   fi
+   done
+
+   for i in "$VPOPMAIL_INC_DIR/vpopmail.h" "$VPOPMAIL_INC_DIR/vpopmail_config.h" 
+"$VPOPMAIL_LIB_DIR/libvpopmail.a" "$VPOPMAIL_BIN_DIR/vadddomain" 
+"$VPOPMAIL_BIN_DIR/vaddaliasdomain" "$VPOPMAIL_BIN_DIR/vdeldomain" ; do
+   if test ! -r "$i"; then
+   AC_MSG_ERROR(Could not find '$i'. Please make sure you have
+   vpopmail installed. Use
+   ./configure --with-vpopmail= if 
+necessary)
+   fi
+   done
+
+   AC_MSG_RESULT($VPOPMAIL_DIR)
+
+   AC_ADD_INCLUDE($VPOPMAIL_INC_DIR)
 
-  for i in /home/vpopmail /home/popmail /var/qmail/vpopmail /var/qmail/popmail 
$PHP_VPOPMAIL; do
-if test -r $i/vpopmail.h; then
-  VPOPMAIL_INC_DIR=$i
-elif test -r $i/include/vpopmail.h; then
-  VPOPMAIL_INC_DIR=$i/include
-fi
-
-if test -r $i/libvpopmail.a; then
-  VPOPMAIL_LIB_DIR=$i
-elif test -r $i/lib/libvpopmail.a; then
-  VPOPMAIL_LIB_DIR=$i/lib
-fi
-  done
-
-  if test -z "$VPOPMAIL_INC_DIR"; then
-AC_MSG_ERROR(Could not find vpopmail.h. Please make sure you have
- vpopmail installed. Use
- ./configure --with-vpopmail= if necessary)
-  fi
-
-  if test -z "$VPOPMAIL_LIB_DIR"; then
-AC_MSG_ERROR(Could not find libvpopmail.a. Please make sure you have
- vpopmail installed. Use
- ./configure --with-vpopmail= if necessary)
-  fi
-
-  AC_MSG_RESULT(found in $VPOPMAIL_LIB_DIR)
+   PHP_SUBST(VPOPMAIL_SHARED_LIBADD)
+   AC_ADD_LIBRARY_WITH_PATH(vpopmail, $VPOPMAIL_LIB_DIR, VPOPMAIL_SHARED_LIBADD)
 
-  AC_ADD_INCLUDE($VPOPMAIL_INC_DIR)
+   AC_DEFINE(HAVE_VPOPMAIL,1,[Whether you have vpopmail])
+   AC_DEFINE_UNQUOTED(VPOPMAIL_BIN_DIR,"$VPOPMAIL_BIN_DIR",[vpopmail bin path])
 
-  PHP_SUBST(VPOPMAIL_SHARED_LIBADD)
-  AC_ADD_LIBRARY_WITH_PATH(vpopmail, $VPOPMAIL_LIB_DIR, VPOPMAIL_SHARED_LIBADD)
-
-  AC_DEFINE(HAVE_VPOPMAIL, 1, [ ])
-
-  PHP_EXTENSION(vpopmail, $ext_shared)
+   PHP_EXTENSION(vpopmail, $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] filemtime or getlastmod

2001-01-14 Thread Christian Binder

Hello,

I would like to create a dynamic mulitple-choise - Form, in which the
filenames, included in a subdirectory (e.g. imgstand) are listed as the
Option-vale "value" and the modification-date of the file is shown in
the HTML-page as date for selection of the user.

If a user choise one or more values form the form and press the
"Submit-Button", the script "show.phtml" should show the selected
pictures. This runs very well at this time.

The only problem is, that my following script only shows one date (IMO:
of the first value (.)), and not create the date of each file.

My Developing-System is Winnt/Apache/PHP3x but the www.server is
linux/PHP4.x of course !

The error is on both systems the same.

Who can help ?

Thank`s

Here is my phtml-Page and the included script:
--



 

sachstandseite





Aktuelle Meldungen
Bilder von früher







>
";
// get unix-timestamp form each file in subdirectory
$unixdatum=getlastmod($datei[$i]);
// change date for normal people
$datum=date("j. F Y", $unixdatum);
echo "$datum";
 }
 ?>






--


-- 
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 exec.c

2001-01-14 Thread Rasmus Lerdorf

rasmus  Sun Jan 14 08:41:06 2001 EDT

  Modified files:  
/php4/ext/standard  exec.c 
  Log:
  Name this php_Exec instead
  
  
Index: php4/ext/standard/exec.c
diff -u php4/ext/standard/exec.c:1.48 php4/ext/standard/exec.c:1.49
--- php4/ext/standard/exec.c:1.48   Sun Jan 14 08:30:22 2001
+++ php4/ext/standard/exec.cSun Jan 14 08:41:06 2001
@@ -15,7 +15,7 @@
| Author: Rasmus Lerdorf   |
+--+
  */
-/* $Id: exec.c,v 1.48 2001/01/14 16:30:22 rasmus Exp $ */
+/* $Id: exec.c,v 1.49 2001/01/14 16:41:06 rasmus Exp $ */
 
 #include 
 #include "php.h"
@@ -39,7 +39,7 @@
  * If type==3, output will be printed binary, no lines will be saved or returned 
(passthru)
  *
  */
-int _Exec(int type, char *cmd, pval *array, pval *return_value)
+int php_Exec(int type, char *cmd, pval *array, pval *return_value)
 {
FILE *fp;
char *buf, *tmp=NULL;
@@ -223,13 +223,13 @@
}
switch (arg_count) {
case 1:
-   ret = _Exec(0, Z_STRVAL_PP(arg1), NULL,return_value);
+   ret = php_Exec(0, Z_STRVAL_PP(arg1), NULL,return_value);
break;
case 2:
if (!ParameterPassedByReference(ht,2)) {
php_error(E_WARNING,"Array argument to exec() not 
passed by reference");
}
-   ret = _Exec(2, Z_STRVAL_PP(arg1),*arg2,return_value);
+   ret = php_Exec(2, Z_STRVAL_PP(arg1),*arg2,return_value);
break;
case 3:
if (!ParameterPassedByReference(ht,2)) {
@@ -238,7 +238,7 @@
if (!ParameterPassedByReference(ht,3)) {
php_error(E_WARNING,"return_status argument to exec() 
not passed by reference");
}
-   ret = _Exec(2,Z_STRVAL_PP(arg1),*arg2,return_value);
+   ret = php_Exec(2,Z_STRVAL_PP(arg1),*arg2,return_value);
Z_TYPE_PP(arg3) = IS_LONG;
Z_LVAL_PP(arg3)=ret;
break;
@@ -260,13 +260,13 @@
}
switch (arg_count) {
case 1:
-   ret = _Exec(1, Z_STRVAL_PP(arg1), NULL,return_value);
+   ret = php_Exec(1, Z_STRVAL_PP(arg1), NULL,return_value);
break;
case 2:
if (!ParameterPassedByReference(ht,2)) {
php_error(E_WARNING,"return_status argument to 
system() not passed by reference");
}
-   ret = _Exec(1, Z_STRVAL_PP(arg1), NULL,return_value);
+   ret = php_Exec(1, Z_STRVAL_PP(arg1), NULL,return_value);
Z_TYPE_PP(arg2) = IS_LONG;
Z_LVAL_PP(arg2)=ret;
break;
@@ -287,13 +287,13 @@
}
switch (arg_count) {
case 1:
-   ret = _Exec(3, Z_STRVAL_PP(arg1), NULL,return_value);
+   ret = php_Exec(3, Z_STRVAL_PP(arg1), NULL,return_value);
break;
case 2:
if (!ParameterPassedByReference(ht,2)) {
php_error(E_WARNING,"return_status argument to 
system() not passed by reference");
}
-   ret = _Exec(3, Z_STRVAL_PP(arg1), NULL,return_value);
+   ret = php_Exec(3, Z_STRVAL_PP(arg1), NULL,return_value);
Z_TYPE_PP(arg2) = IS_LONG;
Z_LVAL_PP(arg2)=ret;
break;



-- 
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/vpopmail CREDITS

2001-01-14 Thread Boian Bonev

bbonev  Sun Jan 14 08:47:56 2001 EDT

  Modified files:  
/php4/ext/vpopmail  CREDITS 
  Log:
  updated
  
Index: php4/ext/vpopmail/CREDITS
diff -u php4/ext/vpopmail/CREDITS:1.1 php4/ext/vpopmail/CREDITS:1.2
--- php4/ext/vpopmail/CREDITS:1.1   Sun Jan 14 00:54:00 2001
+++ php4/ext/vpopmail/CREDITS   Sun Jan 14 08:47:55 2001
@@ -1,2 +1,3 @@
 Vpopmail
 David Croft
+Boian Bonev



-- 
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] Two little questions

2001-01-14 Thread mOrP

James,

> function CUP (
> if ((!$alias) || (!$password)) {
> header("Location: login.php");
> exit;
> }
> );
>

usually a function has the following structure:


function  (  ) {  }


of course you can put any whitspace inside:

function  (  )
{

}

which makes it easy to read.

You can put anything you want inside a function, but you must know, that you
cannot directly access a variable, that is defined outside the function.


$name = "mOrP";

function print_name()
{
echo $name;
}

print_name();

will not work.

Then you must 'get' the global variables (like $name):


$name = "mOrP";

function print_name()
{
global $name;
echo $name;
}

print_name();


But it's better to work with the function arguments:

$name = "mOrP"

function print_name($name_arg)
{
echo $name_arg;
}

print_name($name);


notice, that there is no ";" behind the { ... } and the ( ... ) block in the
definition of the function.

Hope it helps,

mOrP.


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

2001-01-14 Thread Phil Driscoll

>I'm busy working on a contract .. and we need to do some web based stuff ..
but the client is intent on using jsp and not PHP.
>Is there somewhere where I can get good comparists between the two pro and
cons etc etc ..
Try
http://www-4.ibm.com/software/developer/library/script-survey/?dwzone=linux-
web
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.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]




Re: [PHP] Two little questions

2001-01-14 Thread James, Yz

> Then you must 'get' the global variables (like $name):
>
> $name = "mOrP";
>
> function print_name()
> {
> global $name;
> echo $name;
> }
>
> print_name();
>
>
> But it's better to work with the function arguments:
>
> $name = "mOrP"
>
> function print_name($name_arg)
> {
> echo $name_arg;
> }
>
> print_name($name);

Ah, I see, so would something like this work:

$alias = "James";
$password = "MyPassword";

function check_alias_password($alias_arg, $password_arg)
{
if ((!$alias_arg) || (!$password_arg)) {
header("Location: login.php");
exit;
}
}

check_alias_password($alias, $password);

or

function check_alias_password()
global $alias, $password;
{
if ((!$alias) || (!$password)) {
header("Location: login.php");
exit;
}
}

check_alias_password();

work? Or would the last example need to be globals (variables) instead of
global?

> Hope it helps,

It does, and your help is greatly appreciated ;)

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]




[PHP-CVS] cvs: php4 /ext/vpopmail php_vpopmail.c php_vpopmail.h

2001-01-14 Thread Boian Bonev

bbonev  Sun Jan 14 09:04:22 2001 EDT

  Modified files:  
/php4/ext/vpopmail  php_vpopmail.c php_vpopmail.h 
  Log:
  merged my version with David Croft's
  removed unneccessary php.ini calls and defines
  removed module_init, shutdown, request_init declarations and references
  added request_shutdown to close mysql/other db connection
(a must in apache module)
  added defines for external binaries from vpopmail
  changed functions to present more consistent api from user's point of view
so that in one call more stuff is done
  added more comprehensive MINFO function helping users debug their case
  added static int vpopmail_exec(char *cmd) [will change to php_Exec soon]
  @ vpopmail extension updated to working alfa. give it a try but keep in 
  @ mind that it is not ready for production environments (Boian Bonev)
  
  

Index: php4/ext/vpopmail/php_vpopmail.c
diff -u php4/ext/vpopmail/php_vpopmail.c:1.2 php4/ext/vpopmail/php_vpopmail.c:1.3
--- php4/ext/vpopmail/php_vpopmail.c:1.2Sun Jan 14 01:01:25 2001
+++ php4/ext/vpopmail/php_vpopmail.cSun Jan 14 09:04:21 2001
@@ -12,48 +12,71 @@
| obtain it through the world-wide-web, please send a note to  |
| [EMAIL PROTECTED] so we can mail you a copy immediately.   |
+--+
-   | Author: David Croft <[EMAIL PROTECTED]>   |
+   | Authors: David Croft <[EMAIL PROTECTED]>  |
+   |  Boian Bonev <[EMAIL PROTECTED]>   |
+--+
 */
 
-/* $Id: php_vpopmail.c,v 1.2 2001/01/14 09:01:25 david Exp $ */
+/* $Id: php_vpopmail.c,v 1.3 2001/01/14 17:04:21 bbonev Exp $ */
 
-#undef VPOPMAIL_IS_REALLY_OLD
+// TODO: move to config.m4 when support for old versions is ready or just don't 
+support rather old vpopmail
+// current version must bail out if incompat option is specified and work for minimal 
+params
+//#undef VPOPMAIL_IS_REALLY_OLD
 
 #include "php.h"
 #include "php_ini.h"
 #include "php_vpopmail.h"
 
+#if HAVE_SYS_WAIT_H
+#include 
+#endif
+
+#if HAVE_VPOPMAIL
+
 #include "vpopmail.h"
 
+#include "ext/standard/exec.h"
 #include "ext/standard/php_string.h"
 
-#ifdef ZTS
-int vpopmail_globals_id;
-#else
-php_vpopmail_globals vpopmail_globals;
-#endif
+// keep this as the last include in order to destroy VERSION/PACKAGE only for the 
+rest of the code
+#undef VERSION
+#undef PACKAGE
+#include "vpopmail_config.h"
+#undef PACKAGE
+#include "vpopmail.h"
 
+// vpopmail does not export this, argh!
+#define MAX_BUFF 500
+
+#define VPOPSTR(x) #x
+
+/* removed by intent - will add when need to
+ZEND_DECLARE_MODULE_GLOBALS(vpop)
+*/
+
 /* Function table */
 
 function_entry vpopmail_functions[] = {
-   PHP_FE(vpopmail_auth_user, NULL)
+   // domain management
PHP_FE(vpopmail_adddomain, NULL)
PHP_FE(vpopmail_deldomain, NULL)
+   PHP_FE(vpopmail_addaliasdomain, NULL)
+   // user management
PHP_FE(vpopmail_adduser, NULL)
PHP_FE(vpopmail_deluser, NULL)
PHP_FE(vpopmail_passwd, NULL)
PHP_FE(vpopmail_setuserquota, NULL)
+   PHP_FE(vpopmail_auth_user, NULL)
{NULL, NULL, NULL}
 };
 
 zend_module_entry vpopmail_module_entry = {
"vpopmail",
vpopmail_functions,
-   PHP_MINIT(vpopmail),
-   PHP_MSHUTDOWN(vpopmail),
-   NULL,
-   NULL,
+   NULL, //PHP_MINIT(vpopmail),// do nothing upon
+   NULL, //PHP_MSHUTDOWN(vpopmail),//  these
+   NULL, //PHP_RINIT(vpopmail),//  events
+   PHP_RSHUTDOWN(vpopmail),// close vpopmail lib upon request 
+shutdown
PHP_MINFO(vpopmail),
STANDARD_MODULE_PROPERTIES
 };
@@ -62,276 +85,429 @@
 ZEND_GET_MODULE(vpopmail)
 #endif
 
+// removed by intent - will add when needed
+//PHP_INI_BEGIN()
+/* STD_PHP_INI_ENTRY("pfpro.proxypassword","",
+ PHP_INI_ALL, OnUpdateString,proxypassword,  
+php_pfpro_globals,  pfpro_globals) */
+//PHP_INI_END()
 
-PHP_INI_BEGIN()
-   /*  STD_PHP_INI_ENTRY("pfpro.proxypassword","",
 PHP_INI_ALL, OnUpdateString,proxypassword,  
php_pfpro_globals,  pfpro_globals) */
-PHP_INI_END()
 
-
-PHP_MINIT_FUNCTION(vpopmail)
-{
+// removed by intent - will add when needed
+/*PHP_MINIT_FUNCTION(vpopmail) {
REGISTER_INI_ENTRIES();
return SUCCESS;
-}
+}*/
 
-PHP_MSHUTDOWN_FUNCTION(vpopmail)
+// removed by intent - will add when needed
+/*PHP_MSHUTDOWN_FUNCTION(vpopmail)
 {
UNREGISTER_INI_ENTRIES();
return SUCCESS;
+}*/
+
+/* at request end we close the connection to any databases open by the lib */
+PHP_RSHUTDOWN_FUNCTION(vpopmail) {
+   vclose();
+   return SUCCESS;
 }
 
-PHP_MINFO_

RE: [PHP] Two little questions

2001-01-14 Thread mOrP


> function check_alias_password()
> global $alias, $password;

better:

global $alias;
global $password;

> {
> if ((!$alias) || (!$password)) {
> header("Location: login.php");
> exit;
> }
> }
>
> check_alias_password();
>
> work? Or would the last example need to be globals (variables) instead of
> global?


Yes, this will work - with the correction I've made, 'cause I'm not sure, if
you can assign two variables to 'global'...

But you can see, that it is not good to use the 'global' keyword, because
you must know the name of the variable, you use.

Look:


$name_1 = "Jan";
$name_2 = "Fritz";

function print_name($name_arg)
{
echo $name_arg;
}

print_name($name_1);
print_name($name_2);


You see, how flexible it is...

CU
mOrP


-- 
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/vpopmail README

2001-01-14 Thread Boian Bonev

bbonev  Sun Jan 14 09:38:29 2001 EDT

  Added files: 
/php4/ext/vpopmail  README 
  Log:
  #added simple minimum survival readme
  



-- 
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] O Reilly PHP conference

2001-01-14 Thread Dallas Kropka

Posted on the home page of PHP.net is a blurb about an open source PHP
conference where can I find information regarding signup for this??? I
see nothing posted on the site... and found nothing at O Reilly???


-- 
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] O Reilly PHP conference

2001-01-14 Thread Rasmus Lerdorf

It's still 6 months away.  Attendee registration is not open yet.  Right
now we are just looking for speakers.

-Rasmus

On Sun, 14 Jan 2001, Dallas Kropka wrote:

> Posted on the home page of PHP.net is a blurb about an open source PHP
> conference where can I find information regarding signup for this??? I
> see nothing posted on the site... and found nothing at O Reilly???
>
>
> --
> 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] compiling PHP with jpeg-support

2001-01-14 Thread Joakim Bomelin

Hi.
I'm trying to compile PHP with jpeg-support, but it doesn't seem to work.
my configure-line looks like this: "./configure 
--with-apxs=/usr/local/apache/bin/apxs --with-ldap --with-mysql --with-gd 
--with-jpeg-dir=/usr --with-png --with-zlib --with-ttf" and when I run it I 
get:
checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... yes
checking for gdImageCreateFromJpeg in -lgd... no

imagePng() and imagettftext() is working, so PNG and Freetype is compiled 
in. imageJpeg(), how ever, does NOT work.

Any ideas on how I can solve this problem?

/Joakim


-- 
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] filemtime or getlastmod

2001-01-14 Thread Christian Reiniger

On Sunday 14 January 2001 17:54, Christian Binder wrote:

> The only problem is, that my following script only shows one date (IMO:
> of the first value (.)), and not create the date of each file.

> // get unix-timestamp form each file in subdirectory
> $unixdatum=getlastmod($datei[$i]);

Read again through the getlastmod() docs. That function returns the 
modification time of the *currently executed PHP script*.
Use filemtime() instead and it will work


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

Install once, run forever. Linux.

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

2001-01-14 Thread rodrigo

I recently came across this problem and I am sure that there is a quick
fix for it. I need a solution to the quotes problem when sending
queries. I use single quotes to construct my SQL queries. This worked
fine since the data entered into the DB was all in spanish.

However, yesterday I was typing in an English name that had a single
quote (say, like O'reilly) and the SQL querie was all wrong.

What is the solution to this? Thanks in advance.
-- 

Ivan R. Quintero E.* (507)228-3477  
Aptdo 1263 * (507)228-9105
Balboa, Ancon  * 640-0370
Republic of Panama * 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP vs. qmail

2001-01-14 Thread Tino Hendricks

Hi Nicklas,

sorry, I do not have an answer to your question, but I was wondering if you
could give me a short hint on how to trigger the execution of a PHP-Script
if a mail arrives for a non-existing _mailbox_ (instead of the domain-thing
in your question).

Thank you very much in advance!


Tino

www.interpool.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] Quotes

2001-01-14 Thread James Moore

addslashes()

James
--  
James Moore
PHP Quality Assurance Team
[EMAIL PROTECTED] 

> -Original Message-
> From: rodrigo [mailto:[EMAIL PROTECTED]]
> Sent: 14 January 2001 21:41
> To: php php
> Subject: [PHP] Quotes
> 
> 
> I recently came across this problem and I am sure that there is a quick
> fix for it. I need a solution to the quotes problem when sending
> queries. I use single quotes to construct my SQL queries. This worked
> fine since the data entered into the DB was all in spanish.
> 
> However, yesterday I was typing in an English name that had a single
> quote (say, like O'reilly) and the SQL querie was all wrong.
> 
> What is the solution to this? Thanks in advance.
> -- 
> 
> Ivan R. Quintero E.* (507)228-3477
> Aptdo 1263   * (507)228-9105
> Balboa, Ancon* 640-0370
> Republic of Panama * 
> 
> 
> -- 
> 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] Quotes

2001-01-14 Thread Philip Olson

Look into functions stripslashes() and addslashes() as well as the setting
magic_quotes_gpc :

 http://www.php.net/manual/en/function.addslashes.php

 http://www.php.net/manual/en/configuration.php#ini.magic-quotes-gpc

But quite simple, addslashes($foo); will addslashes before the quotes
within $foo which will put it into the database nicely.  If you have
magic_quotes_gpc on then this should be automatic (see manual for when).

Philip


On Sun, 14 Jan 2001, rodrigo wrote:

> I recently came across this problem and I am sure that there is a quick
> fix for it. I need a solution to the quotes problem when sending
> queries. I use single quotes to construct my SQL queries. This worked
> fine since the data entered into the DB was all in spanish.
> 
> However, yesterday I was typing in an English name that had a single
> quote (say, like O'reilly) and the SQL querie was all wrong.
> 
> What is the solution to this? Thanks in advance.
> -- 
> 
> Ivan R. Quintero E.* (507)228-3477
> Aptdo 1263   * (507)228-9105
> Balboa, Ancon* 640-0370
> Republic of Panama * 
> 
> 
> -- 
> 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] load balancing with php/apache?

2001-01-14 Thread jeremy brand

Like I said, we use our own.  It is home grown, but not opensource --
sorry, if it was my choice it would be ;)

Jeremy

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
Get your own Free, Private email at http://www.smackdown.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   ""   -- Quoted from Yahoo! homepage, http://www.yahoo.com

On Sun, 14 Jan 2001, [EMAIL PROTECTED] wrote:

> Date: Sun, 14 Jan 2001 09:49:03 +0530 (IST)
> From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> To: jeremy brand <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] load balancing with php/apache?
> 
> On Sat, 13 Jan 2001, jeremy brand wrote:
> 
> > Oh, BTW, we don't use PHP sessions, we use our own.  
> That has got me hooked - what do you use?
> do you mean you dont use 
> 1) PHP4 sessions 
> OR
> 2) don't use PHP for session handling at all?
> 
> Tarique
> 
> -- 
> =
>B2B Application Providers
> http://www.sanisoft.com
>  Vortal for Nagpur http://nagpurcity.net
> =
> 
> 


-- 
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] load balancing with php/apache?

2001-01-14 Thread jeremy brand

unfortunately not because it is not opensource.  I did want to make it
clear that sessions is a gereric word.  Thus, when it is said, it
shouldn't be mis-understood as to be PHP Sessions, which obviously is
not a generic word.

Jeremy

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
Get your own Free, Private email at http://www.smackdown.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   ""   -- Quoted from Yahoo! homepage, http://www.yahoo.com

On Sun, 14 Jan 2001, Cal Evans wrote:

> Date: Sun, 14 Jan 2001 08:26:46 -0600
> From: Cal Evans <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], jeremy brand <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] load balancing with php/apache?
> 
> I agree. You've piqued my curiosity.  Can you go into details?
> 
> Cal
> http://.calevans.com
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 13, 2001 10:19 PM
> To: jeremy brand
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] load balancing with php/apache?
> 
> 
> On Sat, 13 Jan 2001, jeremy brand wrote:
> 
> > Oh, BTW, we don't use PHP sessions, we use our own.  
> That has got me hooked - what do you use?
> do you mean you dont use 
> 1) PHP4 sessions 
> OR
> 2) don't use PHP for session handling at all?
> 
> Tarique
> 
> -- 
> =
>B2B Application Providers
> http://www.sanisoft.com
>  Vortal for Nagpur http://nagpurcity.net
> =
> 
> 
> -- 
> 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] Quotes

2001-01-14 Thread Chris Adams

On 14 Jan 2001 10:38:12 -0800, rodrigo <[EMAIL PROTECTED]> wrote:
>However, yesterday I was typing in an English name that had a single
>quote (say, like O'reilly) and the SQL querie was all wrong.

You need to escape the special characters (' becomes '' or \' depending on
database flavor). PHP's built-in addslashes() function does this nicely. If
your database complains about something addslashes() doesn't catch, there may
also be a db-specific function like mysql_escape_string() which ensures that
the string is safe to use in a query. 

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

2001-01-14 Thread n e t b r a i n

Hi all,
anyone know something more about the future Zend IDE? e.g price, etc ..

many thanks in advance
max

-- 
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] compiling PHP with jpeg-support

2001-01-14 Thread Rasmus Lerdorf

Your GD library probably wasn't compiled with jpeg support.

-Rasmus

On Sun, 14 Jan 2001, Joakim Bomelin wrote:

> Hi.
> I'm trying to compile PHP with jpeg-support, but it doesn't seem to work.
> my configure-line looks like this: "./configure
> --with-apxs=/usr/local/apache/bin/apxs --with-ldap --with-mysql --with-gd
> --with-jpeg-dir=/usr --with-png --with-zlib --with-ttf" and when I run it I
> get:
> checking for libjpeg (needed by gd-1.8+)... yes
> checking for jpeg_read_header in -ljpeg... yes
> checking for gdImageCreateFromJpeg in -lgd... no
>
> imagePng() and imagettftext() is working, so PNG and Freetype is compiled
> in. imageJpeg(), how ever, does NOT work.
>
> Any ideas on how I can solve this problem?
>
> /Joakim
>
>
> --
> 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] Templates

2001-01-14 Thread Michael Kimsal

Not too similar to the caching issue of template output -
I maybe missing something, but at least in our case, *every* page
made with templates has custom info re: the client (name, etc) which
can't, imo, be cached, unless we started caching multiple bits of the templates
then assembling them - potentially lots more disk access than we'd want.

We *do* cache query results for queries that we know will have
similar results for a long time ('customers not on credit hold' for example -
for one client in particular the results of this query would only change daily, as
they only updated 'credit hold' info daily, so we cache this for a few hours, saving
db hits).



andrew wrote:

> Yup, I believe so - I've been wrestling with this idea for a while and
> trying to figure out how to integrate it into the parser explained in a
> PHPBuilder Article on Cached Modules:
>
> http://www.phpbuilder.net/columns/jprins2201.php3
>
> In the above, I think the point is to create little block templates on a
> page, that can essentially return html.  Now, the article mostly covers how
> to cache this for peformance reasons, but integrating FastTemplates with it
> in the manner below makes sense.
>
> Are you doing something similar?
>
> regards,
> andrew


-- 
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] compiling PHP with jpeg-support

2001-01-14 Thread Joakim Bomelin


>Your GD library probably wasn't compiled with jpeg support.

When I try to use gdImageJpeg() in a C program I get no errors. Is there a 
way of telling wheter GD has jpeg support or not?

/Joakim


-- 
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] compiling PHP with jpeg-support

2001-01-14 Thread Rasmus Lerdorf

nm -o libgd.a | grep -i jpeg

Triple-check that you don't have multiple versions of libgd.a on your
system.

-Rasmus

On Sun, 14 Jan 2001, Joakim Bomelin wrote:

>
> >Your GD library probably wasn't compiled with jpeg support.
>
> When I try to use gdImageJpeg() in a C program I get no errors. Is there a
> way of telling wheter GD has jpeg support or not?
>
> /Joakim
>
>
> --
> 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] submit opens two windows/pages

2001-01-14 Thread Tom Beidler

Is there a way to have two windows open after a submit. I have a client that
would like to add a "thank you" pop up window after submitting an order. So
after entering there billing info and hitting the submit button the form is
directed to a summary page that summarizes the sale. I would also like a pop
up or junior window to open.

Thanks for any assistance,
Tom

>>.>>.>>>.>.>
Tom Beidler
Orbit Tech Services
805.455.7119 (cell)
805.682.8972 (phone)
805.682.5833 (fax)
[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] variable size limit?

2001-01-14 Thread Andrew Threlfall

I'm generating a page of HTML by reading an entire page of HTML source into
a variable, and then doing various functions and str_replace on the
variable.

However when I finialy write this out to a file the variable containing the
HTML source is truncated, at about 5800-ish bytes.

Is there a limit of the amount of data a variable can store? Or is there a
better way to manipulate the text in file?

Thanks

--
Andrew


-- 
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] Netscape differences?

2001-01-14 Thread Joel Dossey

Greetings,
I have a php script that generates a random image. All
images are kept in a mysql table. It works fine when
viewed by IE, but Netscape, and Lynx, always show the
same image. The database information, however, is
changed as it should be (correctly incrementing the
times seen column for the image), and on refresh all
information goes as it should, except for randomly
selecting an image.
 This may be an apache caching problem, but I was
wondering if anyone has run into this working with php
in general, and what solutions I need to explore.

Thanks much,
Joel Dossey


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
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] template API for standard PHP

2001-01-14 Thread Maciek Uhlig

In Tobias Ratschiller & Till Gerken book (Web Application Development)
the authors mention at least two times about Andrei Zmievski plan to
incorporate template API in standard PHP.

I'd like to ask if the plan is in the works and if it will be implemented.

Maciek


-- 
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] submit opens two windows/pages

2001-01-14 Thread Cal Evans

I'd do it with JavaScript. Dynamically composed JavaScript if need be. But
it seems to me that it would be easier to do this on the client side.

Cal
http://www.calevans.com


-Original Message-
From: Tom Beidler [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 2:33 PM
To: php list
Subject: [PHP] submit opens two windows/pages


Is there a way to have two windows open after a submit. I have a client that
would like to add a "thank you" pop up window after submitting an order. So
after entering there billing info and hitting the submit button the form is
directed to a summary page that summarizes the sale. I would also like a pop
up or junior window to open.

Thanks for any assistance,
Tom

>>.>>.>>>.>.>
Tom Beidler
Orbit Tech Services
805.455.7119 (cell)
805.682.8972 (phone)
805.682.5833 (fax)
[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]




[PHP] Searching a MySQL database?

2001-01-14 Thread James, Yz

Can anyone tell me what I would use to query a MySQL database in a search?

If the search field, was for example, a variable like "town", would the
results page use something like this? :

$sql = " SELECT * FROM table_name
WHERE towns = \"$town\" ";

I remember seeing someone post something like this:

$sql = " SELECT * FROM table_name
WHERE towns LIKE \"$town\" ";

so if the search word is not EXACTLY like a row in the database, it may
return results to partial words.

Thanks in advance,

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]




[PHP] Another q, this time eregi_replace

2001-01-14 Thread James, Yz

I'd like to be able to trim out some html tags, but only certain ones.  I've
used eregi_replace before and have some replacements running on some
scripts...

Some of the help pages and user notes on the quick reference functions have
given me good examples of how to go about it.  One thing I'm interested in,
though, is the syntax that's used to determine what the link URL is and the
link name...  I think I saw it as:

//0 for the URL and then //1 for the link.  Like this (poor code, I
dunno whether I've even got the right delimiters):

eregi_replace("///1/\","//1",$string);

I'd like to strip out everything but the link name, so if someone inputs:

http://www.php.net">PHP!

It replaces it with:

PHP!

Thanks, again.  I seem to be asking a lot of questions today, hehe ;)

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] Another q, this time eregi_replace

2001-01-14 Thread Maciek Uhlig

check http://www.php.net/strip_tags

> -Original Message-
> From: James, Yz [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 14, 2001 11:05 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Another q, this time eregi_replace

> I'd like to strip out everything but the link name, so if someone inputs:
> 
> http://www.php.net">PHP!
> 
> It replaces it with:
> 
> 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] Searching a MySQL database?

2001-01-14 Thread Toby Butzon

You've basically got it... the advantage of LIKE is that you can add
wildcards to specify what can be different...

towns = '$town'
...and...
towns LIKE '$town'

...are essentially the same without the % wildcard character. Thus,

towns = '$town'
...is much different than...
towns LIKE '%$town%'

--Toby



-- 
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] Searching a MySQL database?

2001-01-14 Thread James, Yz

> You've basically got it... the advantage of LIKE is that you can add
> wildcards to specify what can be different...
>
> towns = '$town'
> ...and...
> towns LIKE '$town'
>
> ...are essentially the same without the % wildcard character. Thus,
>
> towns = '$town'
> ...is much different than...
> towns LIKE '%$town%'

How different are they?  I'm not even sure what a wildcard is?

And thanks ;)

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] Another q, this time eregi_replace

2001-01-14 Thread James, Yz

Sweet!  Thanks ;)

> > I'd like to strip out everything but the link name, so if someone
inputs:
> >
> > http://www.php.net">PHP!
> >
> > It replaces it with:
> >
> > 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]
>



-- 
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] Searching a MySQL database?

2001-01-14 Thread Toby Butzon

> > towns = '$town'
> > ...and...
> > towns LIKE '$town'
> >
> > ...are essentially the same without the % wildcard character. Thus,
> >
> > towns = '$town'
> > ...is much different than...
> > towns LIKE '%$town%'
>
> How different are they?  I'm not even sure what a wildcard is?

A wildcard is a character that can be used to represent any character (or
any set of any character). For instance, on many operating systems the *
wildcard represents what you could call "anything". So * is anything from
the empty string ('') to anything ('Toby Butzon'). '*zon', however, would
match only strings ending in 'zon'; thus, 'Toby Butzon' would match but
'Joe Smith' would not.

In SQL, the % symbol is used as the * wildcard.

Consider the following:
(id) bases
-
(1) Ft. Worth
(2) Ft. Benning

Here are some queries of the above table with their results
bases='Ft. Worth' returns record 1
bases LIKE '%Worth%' returns record 1
bases LIKE '%Ft.%' returns 1 & 2
bases LIKE '%' returns all records (in this case, 1 & 2)

See?

> And thanks ;)

Of course.

--Toby


-- 
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] Searching a MySQL database?

2001-01-14 Thread James, Yz

> Here are some queries of the above table with their results
> bases='Ft. Worth' returns record 1
> bases LIKE '%Worth%' returns record 1
> bases LIKE '%Ft.%' returns 1 & 2
> bases LIKE '%' returns all records (in this case, 1 & 2)
>
> See?

That makes perfect sense.  Thank you!



-- 
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/vpopmail config.m4

2001-01-14 Thread David Croft

david   Sun Jan 14 14:21:15 2001 EDT

  Modified files:  
/php4/ext/vpopmail  config.m4 
  Log:
  vpopmail's bin dir is unnecessary as the library exports these functions
  
  
Index: php4/ext/vpopmail/config.m4
diff -u php4/ext/vpopmail/config.m4:1.2 php4/ext/vpopmail/config.m4:1.3
--- php4/ext/vpopmail/config.m4:1.2 Sun Jan 14 08:40:25 2001
+++ php4/ext/vpopmail/config.m4 Sun Jan 14 14:21:15 2001
@@ -1,50 +1,45 @@
-dnl $Id: config.m4,v 1.2 2001/01/14 16:40:25 bbonev Exp $
+dnl $Id: config.m4,v 1.3 2001/01/14 22:21:15 david Exp $
 dnl config.m4 for extension vpopmail
 
-PHP_ARG_WITH(vpopmail, for vpopmail support,
-[  --with-vpopmail[=DIR]   Include vpopmail support.])
+PHP_ARG_WITH(vpopmail, whether to include vpopmail support,
+[  --with-vpopmail[=DIR]  Include vpopmail support])
 
 if test "$PHP_VPOPMAIL" != "no"; then
-   AC_MSG_CHECKING(for vpopmail install directory)
-   for i in ~vpopmail /home/vpopmail /home/popmail /var/qmail/vpopmail 
/var/qmail/popmail $PHP_VPOPMAIL; do
-   if test -r $i/vpopmail.h; then
-   VPOPMAIL_INC_DIR=$i
-   VPOPMAIL_DIR=$i
-   elif test -r $i/include/vpopmail.h; then
-   VPOPMAIL_INC_DIR=$i/include
-   VPOPMAIL_DIR=$i
-   fi
-
-   if test -r $i/libvpopmail.a; then
-   VPOPMAIL_LIB_DIR=$i
-   elif test -r $i/lib/libvpopmail.a; then
-   VPOPMAIL_LIB_DIR=$i/lib
-   fi
-
-   if test -r $i/vadddomain; then
-   VPOPMAIL_BIN_DIR=$i
-   elif test -r $i/bin/vadddomain; then
-   VPOPMAIL_BIN_DIR=$i/bin
-   fi
-   done
-
-   for i in "$VPOPMAIL_INC_DIR/vpopmail.h" "$VPOPMAIL_INC_DIR/vpopmail_config.h" 
"$VPOPMAIL_LIB_DIR/libvpopmail.a" "$VPOPMAIL_BIN_DIR/vadddomain" 
"$VPOPMAIL_BIN_DIR/vaddaliasdomain" "$VPOPMAIL_BIN_DIR/vdeldomain" ; do
-   if test ! -r "$i"; then
-   AC_MSG_ERROR(Could not find '$i'. Please make sure you have
-   vpopmail installed. Use
-   ./configure --with-vpopmail= if 
necessary)
-   fi
-   done
-
-   AC_MSG_RESULT($VPOPMAIL_DIR)
-
-   AC_ADD_INCLUDE($VPOPMAIL_INC_DIR)
 
-   PHP_SUBST(VPOPMAIL_SHARED_LIBADD)
-   AC_ADD_LIBRARY_WITH_PATH(vpopmail, $VPOPMAIL_LIB_DIR, VPOPMAIL_SHARED_LIBADD)
+  for i in /home/vpopmail /home/popmail /var/qmail/vpopmail /var/qmail/popmail 
+$PHP_VPOPMAIL; do
+if test -r $i/vpopmail.h; then
+  VPOPMAIL_INC_DIR=$i
+elif test -r $i/include/vpopmail.h; then
+  VPOPMAIL_INC_DIR=$i/include
+fi
+
+if test -r $i/libvpopmail.a; then
+  VPOPMAIL_LIB_DIR=$i
+elif test -r $i/lib/libvpopmail.a; then
+  VPOPMAIL_LIB_DIR=$i/lib
+fi
+  done
+
+  if test -z "$VPOPMAIL_INC_DIR"; then
+AC_MSG_ERROR(Could not find vpopmail.h. Please make sure you have
+ vpopmail installed. Use
+ ./configure --with-vpopmail= if necessary)
+  fi
+
+  if test -z "$VPOPMAIL_LIB_DIR"; then
+AC_MSG_ERROR(Could not find libvpopmail.a. Please make sure you have
+ vpopmail installed. Use
+ ./configure --with-vpopmail= if necessary)
+  fi
+
+  AC_MSG_RESULT(found in $VPOPMAIL_LIB_DIR)
 
-   AC_DEFINE(HAVE_VPOPMAIL,1,[Whether you have vpopmail])
-   AC_DEFINE_UNQUOTED(VPOPMAIL_BIN_DIR,"$VPOPMAIL_BIN_DIR",[vpopmail bin path])
+  AC_ADD_INCLUDE($VPOPMAIL_INC_DIR)
 
-   PHP_EXTENSION(vpopmail, $ext_shared)
+  PHP_SUBST(VPOPMAIL_SHARED_LIBADD)
+  AC_ADD_LIBRARY_WITH_PATH(vpopmail, $VPOPMAIL_LIB_DIR, VPOPMAIL_SHARED_LIBADD)
+
+  AC_DEFINE(HAVE_VPOPMAIL, 1, [ ])
+
+  PHP_EXTENSION(vpopmail, $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] using ssh via popen

2001-01-14 Thread Julia A . Case

Can anyone shed any light on why the following code doesn't work?  I'm 
trying to interact with ssh through PHP's popen function.

Julia

";

maxpsi(0);

?>

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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] session cookie authentication

2001-01-14 Thread Jason Murray

> is it possible to write a script that can screen scrape a 
> site that uses session cookies for authentication? the reasoning 
> for this is so that i can add check boxes to a list so i can reset 
> more then one port on my isp router at a time. thanks

You could have cURL make POST and GET requests to the remote server,
show headers (thus displaying the cookies), and parse the output
so that you can find the cookie values in your script.

cURL: http://curl.haxx.se/

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!

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

2001-01-14 Thread Donald Goodwill

There is an interesting ZD Net comparison of several
scripting languages at
http://www.zdnet.com/enterprise/stories/linux/0,12249,2646052,00.html
Some time ago I did the comparison of JSP to PHP and
JSP turned out to be much, much slower.

Now I'm just learning CodeCharge generator and so far
it seems really helpful. I even started redoing one
project from scratch using it. Maybe surprise your
client and create both PHP and JSP versions...


- Original Message -
From: <[EMAIL PROTECTED]>
To: PHP list <[EMAIL PROTECTED]>
Sent: Sunday, January 14, 2001 7:35 PM
Subject: [PHP] PHP vs JSP


> Hi all
>
> I'm busy working on a contract .. and we need to do
some web based 
stuff
.. but the client is intent on using jsp and not PHP.
> Is there somewhere where I can get good comparists
between the two 
pro and
cons etc etc ..
>
> I would much rather use PHP  then JSP for the
development
>
> Thanks
> Henti Smith
>


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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

2001-01-14 Thread Donald Goodwill

There is an interesting ZD Net comparison of several
scripting languages at
http://www.zdnet.com/enterprise/stories/linux/0,12249,2646052,00.html
Some time ago I did the comparison of JSP to PHP and
JSP turned out to be much, much slower.

Now I'm just learning CodeCharge generator and so far
it seems really helpful. I even started redoing one
project from scratch using it. Maybe surprise your
client and create both PHP and JSP versions...


- Original Message -
From: <[EMAIL PROTECTED]>
To: PHP list <[EMAIL PROTECTED]>
Sent: Sunday, January 14, 2001 7:35 PM
Subject: [PHP] PHP vs JSP


> Hi all
>
> I'm busy working on a contract .. and we need to do
some web based 
stuff
.. but the client is intent on using jsp and not PHP.
> Is there somewhere where I can get good comparists
between the two 
pro and
cons etc etc ..
>
> I would much rather use PHP  then JSP for the
development
>
> Thanks
> Henti Smith
>


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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

2001-01-14 Thread Philip M. Gollucci

PHP has a function called file_exits I belive... you can read about it on
the php manual at php.net  under file functions.



*
Philip M. Gollucci (p6m7g8)
Web-site: http://www.p6m7g8.com
E-mail  : [EMAIL PROTECTED] 
  [EMAIL PROTECTED] 
Phone   : 301.249.6261 (Home)
  301.314.3118 (College)
Major   : Computer Science 
  Electrical Engineering 
Minor   : Classical & Jazz Performance
Current Job : Science, Discovery, & the Universe Webmaster
  URL: http://www.sdu.umd.edu 
Resume  : http://www.wam.umd.edu/~gollucci/resume.html
*


On Sun, 14 Jan 2001, Huseyin wrote:

> i am trying to write a function that checks the file to see if it is still
> availabla to download
> if not it will return link is broken
> this is what i have
> if(!($connection = @fopen ($row[url], "r"))) {
> $broken=1;}
> else {
> $broken=0;
> }
> but the problem is that it sometimes display broken link even thoug it is
> not
> if someone can help me thats wonderful
> thanks in advance
> 
> 
> 
> -- 
> 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] SMs

2001-01-14 Thread Iván Sánchez Ortega \"MR\"

""Bastian"" ...
> Hello!
>
> A requirement is a special server that sends them, but such a server costs
> money, every message costs some.

I read somewhere that you could send SMs if you had your mobile phone linked
to your computer, and special software to needful to make the PC-mobile
interaction...

That way, you could send SMs by your mobile phone... but they should cost as
if you were sending 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] using ssh via popen

2001-01-14 Thread Jeff P


probably because ssh requires an interactive
login; i.e. it expects STDIN as well.  try adding
a command after the login parameter such as "ls"
and see what you get.

-jeff

> Can anyone shed any light on why the following code doesn't work?  I'm
> trying to interact with ssh through PHP's popen function.
>
> Julia
>
> 
> function maxpsi($d) {
>$fp = popen("/usr/bin/ssh -l julie summit.magenet.com", "w");
>while ($string = fgets($fp,80)) {
>   echo $string;
>}
>pclose($fp);
> }
>
> echo "running ssh";
>
> maxpsi(0);
>
> ?>
>
>


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

2001-01-14 Thread Josh G

yeah you can do that, don't know about other phones, but for nokia
you need the cable, a phone with the appropriate plugs (ie a 5xx0 /
6xx0 / 7xx0 / 9xx0 model phone, not a 8xx0 or 3xx0 model), and
the nokia data suite or free alternative if they exist for your operating
system.

Gfunk

   My name was Brian McGee,
   I stayed up listening to Queen,
   When I was seventeen.

http://www.gfunk007.com/


- Original Message -
From: "Iv?n S?nchez Ortega "MR"" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 15, 2001 10:21 AM
Subject: Re: [PHP] SMs


> ""Bastian"" ...
> > Hello!
> >
> > A requirement is a special server that sends them, but such a server
costs
> > money, every message costs some.
>
> I read somewhere that you could send SMs if you had your mobile phone
linked
> to your computer, and special software to needful to make the PC-mobile
> interaction...
>
> That way, you could send SMs by your mobile phone... but they should cost
as
> if you were sending 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]
>


-- 
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-01-14 Thread Rasmus Lerdorf

rasmus  Sun Jan 14 16:28:10 2001 EDT

  Modified files:  
/CVSROOTavail gen_acl_file.m4 
  Log:
  All sorts of karma for Shane
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.38 CVSROOT/avail:1.39
--- CVSROOT/avail:1.38  Sun Jan 14 08:24:56 2001
+++ CVSROOT/avail   Sun Jan 14 16:28:09 2001
@@ -1,12 +1,12 @@
 
 unavail
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev|CVSROOT
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david|phpweb
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt|php4/pear,pearweb,pear
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer|php4,php3,php31,phpfi
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,hholzgra|functable
+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,waldschrott,sniper,david|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,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|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,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,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|phpdoc
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
 avail|NOBODY|php4/ext/calendar
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.38 CVSROOT/gen_acl_file.m4:1.39
--- CVSROOT/gen_acl_file.m4:1.38Sun Jan 14 08:24:56 2001
+++ CVSROOT/gen_acl_file.m4 Sun Jan 14 16:28:09 2001
@@ -1,5 +1,5 @@
 dnl The PHP Group
-define(`php_group', `andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev')dnl
+define(`php_group', `andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane')dnl
 dnl PHP Developers (full access to the source trees)
 define(`p

[PHP-CVS] cvs: php4 /sapi/isapi/stresstest notes.txt stresstest.cpp stresstest.dsp

2001-01-14 Thread Shane Caraveo

shane   Sun Jan 14 16:29:49 2001 EDT

  Modified files:  
/php4/sapi/isapi/stresstest notes.txt stresstest.cpp stresstest.dsp 
  Log:
  Multithreaded stress test program for isapi module now supports phpt files
  still stuff to do before it's realy done, but does run the tests, just need
  to get it to compare results right now.
  
  
  

Index: php4/sapi/isapi/stresstest/notes.txt
diff -u php4/sapi/isapi/stresstest/notes.txt:1.1 
php4/sapi/isapi/stresstest/notes.txt:1.2
--- php4/sapi/isapi/stresstest/notes.txt:1.1Sun Jan  7 16:10:06 2001
+++ php4/sapi/isapi/stresstest/notes.txtSun Jan 14 16:29:49 2001
@@ -1,11 +1,13 @@
 This stress test program is for debugging threading issues with the isapi module.
 
-Create a file that contains a list of php script files, one per line.  If you need to 
provide input, you can create an input file for each script file.  File contents would 
look like:
+2 ways to use it.
 
-e:\inetpub\pages\index.php
-e:\inetpub\pages\info.php
-e:\inetpub\pages\posttest.php e:\inetpub\pages\postdata.txt
+1: test any php script file on multiple threads
+2: run the php test scripts bundled with the source code
+
 
+GLOBAL SETTINGS
+
 If you need to set special environement variables, in addition to your regular 
environment, create a file that contains them, one setting per line:
 
 MY_ENV_VAR=
@@ -13,6 +15,35 @@
 This can be used to simulate isapi environment variables if need be.
 
 By default, stress test uses 10 threads.  To change this, change the define 
NUM_THREADS in stresstest.cpp.
+
+1: test any php script file on multiple threads
+
+Create a file that contains a list of php script files, one per line.  If you need to 
+provide input, place the GET data, or Query String, after the filename.  File 
+contents would look like:
+
+e:\inetpub\pages\index.php
+e:\inetpub\pages\info.php
+e:\inetpub\pages\test.php a=1&b=2
+
+run: stresstest L files.txt
+
+2: run the php test scripts bundled with the source code
+
+supply the path to the parent of the "tests" directory
+(expect a couple long pauses for a couple of the larger tests)
+
+run: stresstest T c:\php4-source
+
+
+
+TODO:
+
+Make an apropriate test of the output against the EXPECT data for the test files, 
+right now it simply doesn't work since I'm burnt (tired that is).
+
+Make more options configurable: number of threads, itterations, etc.
+
+Improve stdout output to make it more usefull
+
+Log totals for each test.
 
-This test program is a work in progress, no garauntees on it working right.
+Implement support for SKIPIF
 
Index: php4/sapi/isapi/stresstest/stresstest.cpp
diff -u php4/sapi/isapi/stresstest/stresstest.cpp:1.3 
php4/sapi/isapi/stresstest/stresstest.cpp:1.4
--- php4/sapi/isapi/stresstest/stresstest.cpp:1.3   Sun Jan  7 17:14:49 2001
+++ php4/sapi/isapi/stresstest/stresstest.cpp   Sun Jan 14 16:29:49 2001
@@ -29,11 +29,24 @@
 //
 // The mandatory exports from the ISAPI DLL
 //
+#define NUM_THREADS 10
+#define ITERATIONS 1
+HANDLE terminate[NUM_THREADS];
+HANDLE StartNow;
+// quick and dirty environment
+typedef CMapStringToString TEnvironment;
+TEnvironment IsapiEnvironment;
+CStringArray IsapiFileList;  // list of filenames
+CStringArray TestNames;  // --TEST--
+CStringArray IsapiGetData;   // --GET--
+CStringArray IsapiPostData;  // --POST--
+CStringArray IsapiMatchData; // --EXPECT--
 
 typedef struct _TIsapiContext {
HANDLE in;
HANDLE out;
DWORD tid;
+   TEnvironment env;
 } TIsapiContext;
 
 //
@@ -57,77 +70,52 @@
 char * GetEnv(char *);
 
 
-#define NUM_THREADS 10
-#define ITERATIONS 1
-HANDLE terminate[NUM_THREADS];
-HANDLE StartNow;
-// quick and dirty environment
-CMapStringToString IsapiEnvironment;
-CStringArray IsapiFileList;
-CStringArray IsapiArgList;
 
 
 DWORD CALLBACK IsapiThread(void *);
-int stress_main(const char *filename, const char *arg);
-
-
+int stress_main(const char *filename, 
+   const char *arg, 
+   const char *postfile, 
+   const char *matchdata,
+   const char *testname);
 
-int main(int argc, char* argv[]) {
-   LPVOID lpMsgBuf;
-   char *filelist, *environment;
-
-   if (argc < 2) {
-   printf("Usage: stress filelist.txt env.txt\r\n");
-   return 0;
-   }
-   filelist = argv[1];
-   environment = argv[2];
-
-   hDll = LoadLibrary("php4isapi.dll"); // Load our DLL
 
-   if (!hDll) {
-   FormatMessage( 
-  FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
-   NULL,
-   GetLastError(),
-   MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
-   (LPTSTR) &lpMsgBuf,
-   0,
-   NULL 
-   );
-   fprintf(stderr,"Error: Dll 'php4isapi.dll' not found -%d\n%s\n", 
GetLastError(),

[PHP] DocBook Editors?

2001-01-14 Thread Alex Black

hi all,

anyone found a good graphical SGML editor for any platform that's no a
fortune?

http://www.adobe.com/store/products/framemakersgml.html

It would be really annoying to have to write a bunch of documentation for
binarycloud inside an plaintext xml document.

I'm surprised DocBook has gained so much support given the apparent lack of
good tools for authoring.

?

_alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522





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

2001-01-14 Thread Gabor Gludovatz

Hi,

I have to write a schedule program, for which I need the following:
I have to calculate the date from a given week and vice versa.

For example: the week number is 26, and I have to know which was its first
day (the date, not the day of the week), say 06/21/2001, monday.


Thanks to Bignose, I've found a very interesting FAQ, the Calendar FAQ but
even this FAQ couldn't help me.


-- 
 Gabor Gludovatz <[EMAIL PROTECTED]> http://www.sopron.hu/~ggabor/



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

2001-01-14 Thread Jason Murray

> I have to write a schedule program, for which I need the following:
> I have to calculate the date from a given week and vice versa.
> 
> For example: the week number is 26, and I have to know which 
> was its first day (the date, not the day of the week), say 06/21/2001, 
> monday.

If the week number is 26, then thats 26 x 7 = 182 days into the year.

$unixtime = mktime(0, 0, 1, 1, 182, 2001); // January 182, 2001.
$dayofweek = date("l", $unixtime);

Somehow I think that this isn't *quite* what you were getting at,
though - but maybe it'll help.

Jason
(since this was a PHP solution, I've taken the Debian ml off the response)

-- 
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!

-- 
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] DocBook Editors?

2001-01-14 Thread Rasmus Lerdorf

A lot of technical people aren't keen on WYSIWYG editors.  Especially when
dealing with something like docbook that is designed to generate
documentation in dozens of formats.  vim with its syntax colouring or
emacs with its validation mode really do a good job.  I have been writing
a lot of docbook stuff lately for work and I find I am an order of
magnitude more productive than I ever was using something like Word.

-Rasmus

On Sun, 14 Jan 2001, Alex Black wrote:

> hi all,
>
> anyone found a good graphical SGML editor for any platform that's no a
> fortune?
>
> http://www.adobe.com/store/products/framemakersgml.html
>
> It would be really annoying to have to write a bunch of documentation for
> binarycloud inside an plaintext xml document.
>
> I'm surprised DocBook has gained so much support given the apparent lack of
> good tools for authoring.
>
> ?
>
> _alex
>
>
> --
> Alex Black, Head Monkey
> [EMAIL PROTECTED]
>
> The Turing Studio, Inc.
> http://www.turingstudio.com
>
> vox+510.666.0074
> fax+510.666.0093
>
> Saul Zaentz Film Center
> 2600 Tenth St Suite 433
> Berkeley, CA 94710-2522
>
>
>
>
>
> --
> 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 /sapi/isapi/stresstest stresstest.cpp

2001-01-14 Thread Shane Caraveo

shane   Sun Jan 14 16:56:23 2001 EDT

  Modified files:  
/php4/sapi/isapi/stresstest stresstest.cpp 
  Log:
  fix file reading, add results
  
Index: php4/sapi/isapi/stresstest/stresstest.cpp
diff -u php4/sapi/isapi/stresstest/stresstest.cpp:1.4 
php4/sapi/isapi/stresstest/stresstest.cpp:1.5
--- php4/sapi/isapi/stresstest/stresstest.cpp:1.4   Sun Jan 14 16:29:49 2001
+++ php4/sapi/isapi/stresstest/stresstest.cpp   Sun Jan 14 16:56:23 2001
@@ -36,11 +36,18 @@
 // quick and dirty environment
 typedef CMapStringToString TEnvironment;
 TEnvironment IsapiEnvironment;
+
+typedef struct _TResults {
+   LONG ok;
+   LONG bad;
+} TResults;
+
 CStringArray IsapiFileList;  // list of filenames
 CStringArray TestNames;  // --TEST--
 CStringArray IsapiGetData;   // --GET--
 CStringArray IsapiPostData;  // --POST--
 CStringArray IsapiMatchData; // --EXPECT--
+CArray Results;
 
 typedef struct _TIsapiContext {
HANDLE in;
@@ -207,6 +214,10 @@
enum state {none, test, skipif, post, get, file, expect} parsestate = none;
 
FILE *fp = fopen(filename, "r");
+   char *tn = _tempnam(temppath,"pht.");
+   char *en = _tempnam(temppath,"exp.");
+   FILE *ft = fopen(tn, "w+");
+   FILE *fe = fopen(en, "w+");
if (fp) {
while (fgets(line,sizeof(line)-1,fp)) {
if (line[0]=='-') {
@@ -245,36 +256,25 @@
cGet += line;
break;
case file:
-   cFile += line;
+   fputs(line, ft);
break;
case expect:
-   cExpect += line;
+   fputs(line, fe);
break;
}
}   
 
fclose(fp);
+   fclose(ft);
+   fclose(fe);
 
-   if (!cTest.IsEmpty() && !cFile.IsEmpty() && !cExpect.IsEmpty()) {
-   BOOL created = FALSE;
-   char *fn = _tempnam(temppath,"pht.");
-   char *en = _tempnam(temppath,"exp.");
-   FILE *fp = fopen(fn, "w+");
-   FILE *fe = fopen(en, "w+");
-   if (fp && en) {
-   fwrite(cFile, cFile.GetLength(), 1, fp);
-   fwrite(cExpect, cExpect.GetLength(), 1, fe);
-   IsapiFileList.Add(fn);
-   TestNames.Add(cTest);
-   IsapiGetData.Add(cGet);
-   IsapiPostData.Add(cPost);
-   IsapiMatchData.Add(en);
-   created = TRUE;
-   }
-   if (fp) fclose(fp);
-   if (fe) fclose(fe);
-
-   return created;
+   if (!cTest.IsEmpty()) {
+   IsapiFileList.Add(tn);
+   TestNames.Add(cTest);
+   IsapiGetData.Add(cGet);
+   IsapiPostData.Add(cPost);
+   IsapiMatchData.Add(en);
+   return TRUE;
}
}
return FALSE;
@@ -322,9 +322,19 @@
return;
}
 
+   Results.SetSize(IsapiFileList.GetSize());
+
ReadGlobalEnvironment(environment);
 
DoThreads();
+
+   printf("\r\nRESULTS:\r\n");
+   // show results:
+   DWORD r = Results.GetSize();
+   for (DWORD i=0; i< r; i++) {
+   TResults result = Results.GetAt(i);
+   printf("%s\r\nOK: %d FAILED: %d\r\n", TestNames.GetAt(i), result.ok, 
+result.bad);
+   }
 }
 
 int main(int argc, char* argv[]) {
@@ -409,11 +419,15 @@
for (DWORD i=0; ihttp://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 vs JSP

2001-01-14 Thread Alex Black

http://www.zdnet.com/enterprise/stories/linux/0,12249,2646052,00.html

gah:

"Also, any organization doing clustering or failover with PHP is in largely
uncharted waters. "

what _bull_!

what does loadbalancing and clustering have to do with any scripting
language? this guy is obviously one of those dilettantes that things CFML is
the holy grail :P

anyway, that article is wrong, _except_ the part about JSP:
-slow
-extremely time consuming
-friggin annoying :)

I've worked on a couple of projects with JSP, and decided to use PHP to
build binarycloud. 'nuff said :)

_alex



--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] (Donald Goodwill)
> Newsgroups: php.general
> Date: 14 Jan 2001 15:13:12 -0800
> Subject: Re: [PHP] PHP vs JSP
> 
> There is an interesting ZD Net comparison of several
> scripting languages at
> http://www.zdnet.com/enterprise/stories/linux/0,12249,2646052,00.html
> Some time ago I did the comparison of JSP to PHP and
> JSP turned out to be much, much slower.
> 
> Now I'm just learning CodeCharge generator and so far
> it seems really helpful. I even started redoing one
> project from scratch using it. Maybe surprise your
> client and create both PHP and JSP versions...
> 
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: PHP list <[EMAIL PROTECTED]>
> Sent: Sunday, January 14, 2001 7:35 PM
> Subject: [PHP] PHP vs JSP
> 
> 
>> Hi all
>> 
>> I'm busy working on a contract .. and we need to do
> some web based 
> stuff
> .. but the client is intent on using jsp and not PHP.
>> Is there somewhere where I can get good comparists
> between the two 
> pro and
> cons etc etc ..
>> 
>> I would much rather use PHP  then JSP for the
> development
>> 
>> Thanks
>> Henti Smith
>> 
> 
> 
> __
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
> 
> -- 
> 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] logging page views, which method is better????

2001-01-14 Thread Alex Black

the problem with that is as soon as you run a load-baanced installation,
collecting apache logs start to be a pain in the a$$ :)

I have given some thought to the logging thing, but am still undecided re:
letting apache do its thing, and writing scripts to aggregate the logs, or
turning off apache logging and going to the DB.

problem is this puts an annoying amount of stress on the production DB, so
there you have it, the dilemma :)

-a


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED]
> Newsgroups: php.general
> Date: 14 Jan 2001 01:58:33 -0800
> Subject: Re: [PHP] logging page views, which method is better
> 
> Addressed to: "Dallas Kropka" <[EMAIL PROTECTED]>
> [EMAIL PROTECTED]
> 
> ** Reply to note from "Dallas Kropka" <[EMAIL PROTECTED]> Sun, 14 Jan 2001
> 00:57:10 -0600
>> 
>> 
>> I have a large site, with several hundred pages its a product
>> listing and shopping cart and I want to log my page views I
>> receive an average of 3000 hits per minute.
>> 
>> Is it better (faster) to log my views to a database table? or to a
>> flat file?
> 
> 
> No need to re-invent the wheel, all accesses are already being logged.
> 
> 
> If you are using Apache, take a look at the access log.  Every hit to
> the server is already logged there.  I am not sure what the default
> location for the file is, but you can find it with
> 
> locate access_log
> 
> or by looking for the string  Log  in your httpd.conf file.  I believe
> it may appear under either the AccessLog or CustomLog keywords.
> 
> You might want to look at Webalizer, or a couple of other programs to
> analyze the contents.
> 
> http://www.mrunix.net/webalizer/
> 
> There are others, but this is the one I use.
> 
> 
> 
> 
> 
> Rick Widmer
> Internet Marketing Specialists
> http://www.developersdesk.com
> 
> --
> 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] Templates

2001-01-14 Thread Alex Black

well, I suppose it could, but it's pretty weird...

why would you want to directly hook up presentation w/sql queries ? :)

-a


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] (andrew)
> Newsgroups: php.general
> Date: 13 Jan 2001 17:06:48 -0800
> Subject: Re: [PHP] Templates
> 
> Sure,
> 
> My understanding of templating engines
> 1.array or item is assigned to a variable
> 2.php placeholders in a html page match in name to above variable.
> 3.a parser separate from php subsitutes the variable values set in (1)
> into (2)
> 
> I've seen plenty of examples where there is a file containing lists of
> variable to item assignment, and thase files are passed to a one of a few
> template pages for layout.
> 
> There must be a way to pass the result set of an SQL query into the set of
> placeholders - the end result would be that you could call whole sites via
> simple queries. All you have to pass in would be the SQL parameter.
> 
> i.e. Table named 'Pvalues'
> 
> Pvalues Sample Row
> --
> page_id contactus.html
> page_name   Contact Us
> page_title  Contact US
> header_text Please send an email
> body_text   [EMAIL PROTECTED]
> footer_text thanks!
> 
> 
> You can even generate a list of links dynamically for nav bar via:
> 
> "select page_name, page_id from Pvalues", if you account for performance
> issues.
> 
> If the usre clicks on the "contact us" link, it returns a page_id value of
> contactus.html.  So then:
> 
> "select * from Pvalues where page_id = "contactus.html"
> 
> Then call a templating parser and pass it the values of the select statement
> and which template to use.
> 
> Can this be done, or I am way off base on this?
> 
> regards,
> andrew
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On 1/13/01 7:27 PM, "Michael Kimsal" <[EMAIL PROTECTED]> wrote:
> 
>> I thought I understood your question, but I think I need a clarification.
>> Can you elaborate a bit?  I think I have an answer, but I'm not 100% what
>> you're meaning here.
>> 
>> Thanks.
>> 
>> 
>> andrew wrote:
>> 
>>> Michael,
>>> 
>>> Wouldn't a benefit be that you could pass a database query in via that
>>> variable, either via form submit or value of a clicked link?
>>> 
>>> I know PHP can do this without a separate templating engine, but if you do
>>> use one then you can submit an array to a specific template.  Is there a way
>>> to do this via built in functions without constructing the set of page
>>> object's first, or can you only do this in templates?
>>> 
>>> regards,
>>> andrew
>>> 
>>> On 1/13/01 7:06 PM, "Michael Kimsal" <[EMAIL PROTECTED]> wrote:
>>> 
 
 
 [EMAIL PROTECTED] wrote:
 
> I looked around the web for templates and founf FastTemplates. Not exactly
> what i was looking for thoug
> lets say I have
> $file = "111"
> and there is a template "template.txt"
> and it contains
> "file #$file is blahlah"
> 
> how can I make that a template?
> 
> Thanks
> - Peter
> 
 
 Any reason 'template.txt' couldn't just say
 
 file $ is blahlah
 
 then include('template.txt'); in your main file?
 
 Not sure why you'd want to complicate things with
 something like FastTemplates - I understand it has a use
 and purpose, but the only long term benefit I see from
 involved schemes like that won't be realized anyway
 (discussion for another day).
 
 
 
>> 
> 
> 
> -- 
> 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 /sapi/isapi/stresstest stresstest.cpp

2001-01-14 Thread Shane Caraveo

shane   Sun Jan 14 16:57:16 2001 EDT

  Modified files:  
/php4/sapi/isapi/stresstest stresstest.cpp 
  Log:
  check files open
  
Index: php4/sapi/isapi/stresstest/stresstest.cpp
diff -u php4/sapi/isapi/stresstest/stresstest.cpp:1.5 
php4/sapi/isapi/stresstest/stresstest.cpp:1.6
--- php4/sapi/isapi/stresstest/stresstest.cpp:1.5   Sun Jan 14 16:56:23 2001
+++ php4/sapi/isapi/stresstest/stresstest.cpp   Sun Jan 14 16:57:16 2001
@@ -218,7 +218,7 @@
char *en = _tempnam(temppath,"exp.");
FILE *ft = fopen(tn, "w+");
FILE *fe = fopen(en, "w+");
-   if (fp) {
+   if (fp && ft && fe) {
while (fgets(line,sizeof(line)-1,fp)) {
if (line[0]=='-') {
if (_strnicmp(line, "--TEST--", 8)==0) {



-- 
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/tests/odbc .cvsignore 001.phpt 002.phpt 003.phpt 004.phpt 006.phpt 007.phpt 010.phpt connect.inc dsn.inc mktable.inc skipif.inc

2001-01-14 Thread Stig Bakken

ssb Sun Jan 14 17:10:14 2001 EDT

  Added files: 
/php4/pear/DB/tests/odbc.cvsignore 002.phpt 003.phpt 004.phpt 
006.phpt 007.phpt 010.phpt connect.inc 
dsn.inc mktable.inc 

  Modified files:  
/php4/pear/DB/tests/odbc001.phpt skipif.inc 
  Log:
  * defined a bunch of ODBC tests
  # unfortunately MyODBC 2.50.36 crashes on me as soon as I do a query
  # so these tests need to be run in another environment :-P
  
  
Index: php4/pear/DB/tests/odbc/001.phpt
diff -u php4/pear/DB/tests/odbc/001.phpt:1.1 php4/pear/DB/tests/odbc/001.phpt:1.2
--- php4/pear/DB/tests/odbc/001.phpt:1.1Tue Dec  5 18:53:15 2000
+++ php4/pear/DB/tests/odbc/001.phptSun Jan 14 17:10:14 2001
@@ -5,15 +5,7 @@
 --FILE--
 
--FILE--

--EXPECT--
testing fetchrow default default
0 1 2 3
testing fetchinto default default
0 1 2 3
testing fetchrow ordered default
0 1 2 3
testing fetchrow assoc default
a b c d
testing fetchrow ordered default with assoc specified
a b c d
testing fetchrow assoc default with ordered specified
0 1 2 3
testing fetchinto ordered default
0 1 2 3
testing fetchinto assoc default
a b c d
testing fetchinto ordered default with assoc specified
a b c d
testing fetchinto assoc default with ordered specified
0 1 2 3

Index: php4/pear/DB/tests/odbc/003.phpt
+++ php4/pear/DB/tests/odbc/003.phpt
--TEST--
DB_odbc::simpleQuery test
--SKIPIF--

--FILE--

--EXPECT--
resource

Index: php4/pear/DB/tests/odbc/004.phpt
+++ php4/pear/DB/tests/odbc/004.phpt
--TEST--
DB_odbc::numCols test
--SKIPIF--

--FILE--

--EXPECT--
1
2
3
4

Index: php4/pear/DB/tests/odbc/006.phpt
+++ php4/pear/DB/tests/odbc/006.phpt
--TEST--
DB_odbc::prepare/execute test
--SKIPIF--

--FILE--

--EXPECT--
sth1,sth2,sth3 created
sth1 executed
sth2 executed
sth3 executed
results:
72 -  -  - 
72 - bing -  - 
72 - gazonk - opaque
placeholder
test - 

Index: php4/pear/DB/tests/odbc/007.phpt
+++ php4/pear/DB/tests/odbc/007.phpt
--TEST--
DB_odbc::errorNative test
--SKIPIF--

--FILE--
query("syntax error please");
print "error code " . $dbh->errorNative() . "\n";
?>
--EXPECT--
error code 1064

Index: php4/pear/DB/tests/odbc/010.phpt
+++ php4/pear/DB/tests/odbc/010.phpt
--TEST--
DB_mysql error mapping
--SKIPIF--

--FILE--

--EXPECT--
Trying to provoke DB_ERROR_NOSUCHTABLE
  DB Error: no such table
Trying to provoke DB_ERROR_ALREADY_EXISTS
  DB Error: already exists
Trying to provoke DB_ERROR_NOSUCHTABLE
  DB Error: no such table
Trying to provoke DB_ERROR_CONSTRAINT
Trying to provoke DB_ERROR_DIVZERO
Trying to provoke DB_ERROR_INVALID_NUMBER
Trying to provoke DB_ERROR_NOSUCHFIELD
  DB Error: no such field
Trying to provoke DB_ERROR_SYNTAX
  DB Error: syntax error

Index: php4/pear/DB/tests/odbc/connect.inc
+++ php4/pear/DB/tests/odbc/connect.inc
getMessage());
}
?>

Index: php4/pear/DB/tests/odbc/dsn.inc
+++ php4/pear/DB/tests/odbc/dsn.inc


Index: php4/pear/DB/tests/odbc/mktable.inc
+++ php4/pear/DB/tests/odbc/mktable.inc
setErrorHandling(PEAR_ERROR_RETURN);
$dbh->query("DROP TABLE phptest");

$dbh->setErrorHandling(PEAR_ERROR_TRIGGER);
$dbh->query("CREATE TABLE phptest (a INTEGER, b VARCHAR(40), c TEXT, d DATE)");
$dbh->query("INSERT INTO phptest VALUES(42, 'bing', 'This is a test', '1999-11-21')");

$dbh->setErrorHandling(PEAR_ERROR_RETURN);

?>



-- 
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] mixing HTML and PHP code

2001-01-14 Thread Alex Black

the horse is back from the dead!

I can't resist:




> From: [EMAIL PROTECTED] ("Iván Sánchez Ortega \"MR\"")
> Newsgroups: php.general
> Date: 13 Jan 2001 14:17:35 -0800
> Subject: Re: [PHP] mixing HTML and PHP code
> 
> "Alex Black" ...
>>> >> connect_to_database();
>>> parse_query();
>>> execute_query();
>>> 
>>> echo "";
>>> 
>>> while (fetch_row_from_query())
>>> {
>>> $output = data_from_fetched_row();
>>> $more_output = more_data_from_fetched_row();
>>> 
>>> echo " $output  $more_output ";
>>> 
>>> }
>>> echo "";
>>> ?>
>> 
>> Well, this may be a bit specific, but that is probably part of your
> problem.
>> You have no structure associated with your application design:
>> 
>> what are you doing making a connection to a database on the same page you
>> spit out the results from?
> 
> Nonononono... that was just an example. My real code looks more like this
> example:
> 
> -
>  include "common_head.php";
> 
> echo "Welcome to blah blah section";
> 
> echo "NameEmail";
> 
> $query=ociparse($conection,"select name,email from people where blah blah
> blah");
> ociexecute($query);
> while (ocifetch($query))
> {
> $name=ociresult($query,"NAME");
> $email=ociresult($query,"EMAIL");
> 
> echo "$name$email";
> 
> }
> 
> ocifreecursor($query);   // optional
> 
> 
> include "common_footer.php";
> ?>
> --
> 
> 
> In common_head.php i have the conect-to-database functions, and because the
> way include() works, i can happily use $connection in the main code. It also
> makes a login&password comprobation, getting data from cookies and the
> stuff.
> common_head.php also has a main component: the UPPER WEB DESIGN. That means
> that the upper logo, left-side menus, CSS links, common javascript code and
> stuff is also stored there.
> 
> common_footer just has the bottom part of the design - bottom common links,
> and lots of well measured  closings.
> 
> The trick is tell the web designer to work the main common design in
> dreamweaver or so, then pick the HTML code, and separate it in "upper" and
> "bottom"... in the middle of that you have the space to put whatever you are
> spitting out from the DB.
> 
> And aside from that, i don't have a one and only common_head.php ... i have
> a separate plain common head, in plain HTML... the real common_head.php
> should look like (definitively not real PHP sintax):

right, and though this is not directly related to templating:

I thik you would benefit greatly by introducing some system design (i.e.
separate "layers" doing separate tasks)

I don't like to do database connections when I've already output markup,
what if something goes wrong, or I want to do a redirect, etc?

I like to access functions in "DB Object" files - those functions return
results in arrays which I can pass into markup.

Makes the code a _helluvuh_ lot more maintainable.

> 
>  connect_to_database();
> do_cookie_stuff();   // First of spitting any HTML,
> // you get from cookies, make comprobations,
> // and re-store cookies or whatever...
> // This do_cookie_stuff can be a little hard.
> 
> include "plain_html_head.php";
> ?>
> 
> 
> 
> That way, your dreamweaver expert can design the main design (better with
> some stupid test text in the place of the spitted-out-from-database-data),
> and you as PHPer only have to cut out the HTML code (not a really hard work)
> into two parts.
> 
> As i see, it can work perfectly this way.
> 
> 
> How you format the spitted data and stuff is another matter but anyway,
> getting the code that dreamweaver generates and implementing it shouldn't be
> a real hard task.

True, but why not just bitch at macromedia until they include support for
PHP in ultradev?

(plegh, visual authoring tools: a necessary evil)

:)

_a


-- 
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] load balancing with php/apache?

2001-01-14 Thread Alex Black

what?

you use an utterly completely stateless model?

craziness!

so you set cookies, and store the sig in the db?

agh! :)


I'm using this box from "coyote systems" called, wait for it:

"THE EQUALIZER"

which is a really obnoxious name, but it sticks clients with a particular
server intelligently, so we can be ever-so-slightly-lazy about that.

do you _like_ that system? (that isn't a challenge, it's real interest)

_a


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] (jeremy brand)
> Newsgroups: php.general
> Date: 13 Jan 2001 13:41:19 -0800
> Subject: RE: [PHP] load balancing with php/apache?
> 
> we store the sessions in the DB.
> 
> Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
> http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
> Get your own Free, Private email at http://www.smackdown.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> ""   -- Quoted from Yahoo! homepage, http://www.yahoo.com
> 
> On Sat, 13 Jan 2001, Cal Evans wrote:
> 
>> Date: Sat, 13 Jan 2001 14:43:19 -0600
>> From: Cal Evans <[EMAIL PROTECTED]>
>> To: jeremy brand <[EMAIL PROTECTED]>
>> Cc: [EMAIL PROTECTED]
>> Subject: RE: [PHP] load balancing with php/apache?
>> 
>> When you say "handled by us" do you mean you:
>> 
>> 1) Write the sess_* files to a shared drive
>> 2) Store them in the database
>> 3) ignore them totally, who needs users anyhow?
>> 4) some other option?
>> 
>> Cal
>> http://www.calevans.com
>> 
>> 
>> -Original Message-
>> From: jeremy brand [mailto:[EMAIL PROTECTED]]
>> Sent: Saturday, January 13, 2001 2:20 PM
>> To: Cal Evans
>> Cc: [EMAIL PROTECTED]
>> Subject: RE: [PHP] load balancing with php/apache?
>> 
>> 
>> We have a centralized DB server.  Sessions are handled by us, the
>> programmers, not the cluster.
>> 
>> Jeremy
>> 
>> Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
>> http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
>> Get your own Free, Private email at http://www.smackdown.com/
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> ""   -- Quoted from Yahoo! homepage, http://www.yahoo.com
>> 
>> On Sat, 13 Jan 2001, Cal Evans wrote:
>> 
>>> Date: Sat, 13 Jan 2001 11:51:01 -0600
>>> From: Cal Evans <[EMAIL PROTECTED]>
>>> To: [EMAIL PROTECTED]
>>> Subject: RE: [PHP] load balancing with php/apache?
>>> 
>>> How does it deal with sessions? Or do use store sessions in the database?
>>> 
>>> Cal
>>> 
>>> -Original Message-
>>> From: Joe Stump [mailto:[EMAIL PROTECTED]]
>>> Sent: Saturday, January 13, 2001 11:22 AM
>>> To: Rasmus Lerdorf
>>> Cc: [EMAIL PROTECTED]
>>> Subject: Re: [PHP] load balancing with php/apache?
>>> 
>>> 
 http://www.linuxvirtualserver.org/
>>> 
>>> We use LVS on our website - it works great! We have 2 load balancers with
>>> the
>>> HA package and 6 PHP webservers running behind it (with a central DB
>>> server).
>>> 
>>> In short, it's possible and works quite well. BTW We user FreeBSD for
>>> webservers
>>> if that's any help (though linux, NT, solaris, etc would all work)
>>> 
>>> --Joe
>>> 
>>> 
>>> 
>>> 
 http://linas.org/linux/load.html
 
 -Rasmus
 
 
 --
 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]
>>> 
>>> --
>>> 
>>> Joe Stump, PHP Hacker
>>> [EMAIL PROTECTED]
>>> http://www.miester.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 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 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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT

Re: [PHP] load balancing with php/apache?

2001-01-14 Thread Alex Black

> Whoever said NFS is slow hasn't used a NetApp

amen brother.

-a


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

2001-01-14 Thread Alex Black

can people give me opinions as to why http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] (Philip Olson)
> Newsgroups: php.general
> Date: 13 Jan 2001 12:18:08 -0800
> Subject: Re: [PHP] Use  
> My understanding is :
> 
> 1.  2. Will not work if short_tags_open setting is off (in php.ini) because of
> the fact that  
> Regarding its relation to the ASP counterpart, it is not directly related
> to <%= as that is an ASP tag which refers to the asp_tags setting which if
> on, <%= will work, if not on, it will not.  Information and references to
> this can be found here :
> 
> http://www.php.net/manual/language.basic-syntax.php
> http://www.php.net/manual/en/configuration.php#ini.asp-tags
> http://www.php.net/manual/en/configuration.php#ini.short-open-tag
> 
> I've personally never tried asp tags.  Earlier within this thread , the
> following php internals were posted by Jim Winstead :
> 
> http://cvs.php.net/viewcvs.cgi/php3/language-scanner.lex.diff?r1=1.3&r2=1.4
> http://cvs.php.net/viewcvs.cgi/php3/language-scanner.lex.diff?r1=1.6&r2=1.7
> 
> All in all, if others will be playing with your scripts, don't use asp
> style as usually this is usually turned off.  Use of  dangerous (and debated, my view is 'bad') to use given the reasons above.
> 
> 
> Philip Olson
> http://www.cornado.com/
> 
> On 13 Jan 2001, Arcady Genkin wrote:
> 
>> I have noticed that > in documentation, how safe is it to use it?
>> 
>> Many thanks,
>> -- 
>> Arcady Genkin
>> Don't read everything you believe.
>> 
>> -- 
>> 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 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] load balancing with php/apache?

2001-01-14 Thread Alex Black

check out 

http://www.coyotepoint.com/

only $4000!

does 512 clients!

can even stick clients through the famous AOHell proxies!

cheap!

:)


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] (jeremy brand)
> Newsgroups: php.general
> Date: 13 Jan 2001 12:16:09 -0800
> Subject: Re: [PHP] load balancing with php/apache?
> 
>>> We use LVS on our website - it works great! We have 2 load balancers with
>>> the
>>> HA package and 6 PHP webservers running behind it (with a central DB
>>> server).
>> 
>> Yes, I have heard very good things about LVS.  Haven't had a chance to set
>> it up myself yet.  Definitely something for the TODO list.
> 
> LVS with linux-ha is a win-win situation.  Even if you loose a LVS,
> the failover is transparent. The connections hang for about 5-15
> seconds, then transfer over to the other machine.
> 
> With the traffic that we have, we opted to use direct
> routing, this way there is no translation (thus no additional CPU on
> the LVS machine) needed for the answers; the web servers talk directly
> back to the client themselves.
> 
> We were planning on using Local Directors, then cost became a major
> issue.  I'm actually glad we did it this way, because personally I
> like envesting my knowledge in open solutions rather than learning
> proprietary OSs and strategies.
> 
> Jeremy
> 
> Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
> http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
> Get your own Free, Private email at http://www.smackdown.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> ""   -- Quoted from Yahoo! homepage, http://www.yahoo.com
> 
> 
> -- 
> 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/odbc php_odbc.c php_odbc.h

2001-01-14 Thread Stig Bakken

ssb Sun Jan 14 17:11:06 2001 EDT

  Modified files:  
/php4/ext/odbc  php_odbc.c php_odbc.h 
  Log:
  @- Added odbc_error() and odbc_errormsg() functions (Stig)
  
  

Index: php4/ext/odbc/php_odbc.c
diff -u php4/ext/odbc/php_odbc.c:1.69 php4/ext/odbc/php_odbc.c:1.70
--- php4/ext/odbc/php_odbc.c:1.69   Fri Jan  5 14:01:22 2001
+++ php4/ext/odbc/php_odbc.cSun Jan 14 17:11:06 2001
@@ -18,7 +18,7 @@
+--+
  */
 
-/* $Id: php_odbc.c,v 1.69 2001/01/05 22:01:22 fmk Exp $ */
+/* $Id: php_odbc.c,v 1.70 2001/01/15 01:11:06 ssb Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -66,6 +66,8 @@
 static unsigned char a3_arg3_force_ref[] = { 3, BYREF_NONE, BYREF_ALLOW, BYREF_FORCE 
};
 
 function_entry odbc_functions[] = {
+PHP_FE(odbc_error, NULL)
+PHP_FE(odbc_errormsg, NULL)
PHP_FE(odbc_setoption, NULL)
PHP_FE(odbc_autocommit, NULL)
PHP_FE(odbc_close, NULL)
@@ -319,7 +321,7 @@
 {
ODBCLS_D;
 #ifdef SQLANY_BUG
-   HDBCfoobar;
+   ODBC_SQL_CONN_T foobar;
RETCODE rc;
 #endif
 
@@ -420,6 +422,8 @@

ODBCG(defConn) = -1;
ODBCG(num_links) = ODBCG(num_persistent);
+memset(ODBCG(laststate), '\0', 6);
+memset(ODBCG(lasterrormsg), '\0', SQL_MAX_MESSAGE_LENGTH);
return SUCCESS;
 }
 
@@ -466,22 +470,38 @@
charerrormsg[SQL_MAX_MESSAGE_LENGTH];
SWORD   errormsgsize; /* Not used */
RETCODE rc;
+ODBC_SQL_ENV_T henv;
+ODBC_SQL_CONN_T conn;
ODBCLS_FETCH();
 
+if (conn_resource) {
+henv = conn_resource->henv;
+conn = conn_resource->hdbc;
+} else {
+henv = SQL_NULL_HENV;
+conn = SQL_NULL_HDBC;
+}
+
/* This leads to an endless loop in many drivers! 
 *
   while(henv != SQL_NULL_HENV){
do {
 */
-   rc = SQLError(henv, conn, stmt, state,
-   &error, errormsg, sizeof(errormsg)-1, &errormsgsize);
-   if (func) {
-   php_error(E_WARNING, "SQL error: %s, SQL state %s in %s",
-  errormsg, state, func);
-   } else {
-   php_error(E_WARNING, "SQL error: %s, SQL state %s",
-   errormsg, state);
-   }
+rc = SQLError(henv, conn, stmt, state,
+  &error, errormsg, sizeof(errormsg)-1, &errormsgsize);
+if (conn_resource) {
+memcpy(conn_resource->laststate, state, sizeof(state));
+memcpy(conn_resource->lasterrormsg, errormsg, sizeof(errormsg));
+}
+memcpy(ODBCG(laststate), state, sizeof(state));
+memcpy(ODBCG(lasterrormsg), errormsg, sizeof(errormsg));
+if (func) {
+php_error(E_WARNING, "SQL error: %s, SQL state %s in %s",
+  errormsg, state, func);
+} else {
+php_error(E_WARNING, "SQL error: %s, SQL state %s",
+  errormsg, state);
+}
/*  
} while (SQL_SUCCEEDED(rc));
}
@@ -591,7 +611,7 @@

rc = SQLTransact(conn->henv, conn->hdbc, 
(UWORD)((type)?SQL_COMMIT:SQL_ROLLBACK));
if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) {
-   odbc_sql_error(conn->henv, conn->hdbc, SQL_NULL_HSTMT, "SQLTransact");
+   odbc_sql_error(conn, SQL_NULL_HSTMT, "SQLTransact");
RETURN_FALSE;
}
 
@@ -710,6 +730,7 @@
 }
 /* }}} */
 
+
 /* {{{ proto int odbc_prepare(int connection_id, string query)
Prepares a statement for execution */
 PHP_FUNCTION(odbc_prepare)
@@ -748,7 +769,7 @@
}
 
if (rc == SQL_ERROR) {
-   odbc_sql_error(conn->henv, conn->hdbc, SQL_NULL_HSTMT, "SQLAllocStmt");
+   odbc_sql_error(conn, SQL_NULL_HSTMT, "SQLAllocStmt");
efree(result);
RETURN_FALSE;
}
@@ -764,7 +785,7 @@
*/
if (SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, 
SQL_CURSOR_DYNAMIC)
== SQL_ERROR) {
-   odbc_sql_error(conn->henv, conn->hdbc, result->stmt, " 
SQLSetStmtOption");
+   odbc_sql_error(conn, result->stmt, " 
+SQLSetStmtOption");
SQLFreeStmt(result->stmt, SQL_DROP);
efree(result);
RETURN_FALSE;
@@ -780,10 +801,10 @@
 case SQL_SUCCESS:
 break;
 case SQL_SUCCESS_WITH_INFO:
-odbc_sql_error(conn->henv, conn->hdbc, result->stmt, "SQLPrepare");
+odbc_sql_error(conn, result->stmt, "SQLPrepare");
 break;
 default:
-odbc_sql_error(conn->henv, conn->hdbc, result->stmt, "SQLPrepare");
+odbc_sql_error(conn, result->stmt, "SQLPrepare");
 RETU

[PHP-CVS] cvs: php4 /sapi/isapi/stresstest stresstest.cpp

2001-01-14 Thread Shane Caraveo

shane   Sun Jan 14 17:13:51 2001 EDT

  Modified files:  
/php4/sapi/isapi/stresstest stresstest.cpp 
  Log:
  clean up temp files
  
Index: php4/sapi/isapi/stresstest/stresstest.cpp
diff -u php4/sapi/isapi/stresstest/stresstest.cpp:1.6 
php4/sapi/isapi/stresstest/stresstest.cpp:1.7
--- php4/sapi/isapi/stresstest/stresstest.cpp:1.6   Sun Jan 14 16:57:16 2001
+++ php4/sapi/isapi/stresstest/stresstest.cpp   Sun Jan 14 17:13:51 2001
@@ -315,6 +315,25 @@
return IsapiFileList.GetSize() > 0;
 }
 
+void DeleteTempFiles(const char *mask)
+{
+   char FindPath[MAX_PATH];
+   WIN32_FIND_DATA fd;
+   memset(&fd, 0, sizeof(WIN32_FIND_DATA));
+
+   _snprintf(FindPath, sizeof(FindPath)-1, "%s\\%s",temppath, mask);
+   HANDLE fh = FindFirstFile(FindPath, &fd);
+   if (fh != INVALID_HANDLE_VALUE) {
+   do {
+   char NewFindPath[MAX_PATH];
+   _snprintf(NewFindPath, sizeof(NewFindPath)-1, 
+"%s\\%s",temppath, fd.cFileName);
+   DeleteFile(NewFindPath);
+   memset(&fd, 0, sizeof(WIN32_FIND_DATA));
+   } while (FindNextFile(fh, &fd) != 0);
+   FindClose(fh);
+   }
+}
+
 void DoTestFiles(const char *filelist, const char *environment)
 {
if (!GetTestFiles(filelist)) {
@@ -335,6 +354,12 @@
TResults result = Results.GetAt(i);
printf("%s\r\nOK: %d FAILED: %d\r\n", TestNames.GetAt(i), result.ok, 
result.bad);
}
+
+   // delete temp files
+   printf("Deleting Temp Files\r\n");
+   DeleteTempFiles("exp.*");
+   DeleteTempFiles("pht.*");
+   printf("Done\r\n");
 }
 
 int main(int argc, char* argv[]) {



-- 
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 odbc.php

2001-01-14 Thread Stig Bakken

ssb Sun Jan 14 17:14:59 2001 EDT

  Modified files:  
/php4/pear/DB   odbc.php 
  Log:
  * DB_odbc: added native error support
  
  
Index: php4/pear/DB/odbc.php
diff -u php4/pear/DB/odbc.php:1.24 php4/pear/DB/odbc.php:1.25
--- php4/pear/DB/odbc.php:1.24  Tue Jan  9 17:01:53 2001
+++ php4/pear/DB/odbc.php   Sun Jan 14 17:14:59 2001
@@ -118,24 +118,12 @@
} else {
$connect_function = 'odbc_connect';
}
-   if ($dbhost && $user && $pw) {
-   $conn = $connect_function($dbhost, $user, $pw);
-   } elseif ($dbhost && $user) {
-   $conn = $connect_function($dbhost, $user);
-   } elseif ($dbhost) {
-   $conn = $connect_function($dbhost);
-   } else {
-   $conn = false;
+$conn = @$connect_function($dbhost, $user, $pw);
+   if (!is_resource($conn)) {
+   return $this->raiseError();
}
-   if ($conn == false) {
-   return $this->raiseError(); // XXX ERRORMSG
-   }
$this->connection = $conn;
return DB_OK;
-
-
-
-   $this->connection = odbc_connect($dsn, $user, $pw);
}
 
 // }}}
@@ -253,6 +241,27 @@
 }
 
 // }}}
+// {{{ errorNative()
+
+/**
+ * Get the native error code of the last error (if any) that
+ * occured on the current connection.
+ *
+ * @access public
+ *
+ * @return int ODBC error code
+ */
+
+function errorNative()
+{
+if (is_resource($this->connection)) {
+return odbc_error($this->connection);
+} else {
+return odbc_error();
+}
+}
+
+// }}}
 // {{{ autoCommit()
 
 function autoCommit($onoff = false)
@@ -286,23 +295,24 @@
 }
 
 // }}}
-
 // {{{ odbcRaiseError()
 
 function odbcRaiseError($errno = null)
 {
-if (is_string($errno) &&
-ereg('SQL error: (\[.*\])(.*), SQL state (.)'
- $errormsg, &$data)) {
-list($foo, $source, $message, $codecode) = $data;
+if (is_resource($this->connection)) {
+$message = odbc_errormsg($this->connection);
+$code = odbc_error($this->connection);
+} else {
+$message = odbc_errormsg();
+$code = odbc_error();
+}
 if ($errno === null) {
-return 
$this->raiseError($this->errorCode(mysql_errno($this->connection)));
+return $this->raiseError($this->errorCode($code));
 }
 return $this->raiseError($this->errorCode($errno));
 }
 
 // }}}
-
 }
 
 // Local variables:



-- 
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] mixing HTML and PHP code

2001-01-14 Thread Alex Black

> There are things that can be done to speed things up though...cacheing files
> at the page level, or even cacheing templated components at the sub-page
> level where possible can overcome much of the overhead of using templates.

but that doesn't do you any good on pages that are getting results from a
DB, unless you're doing straight content queries. in which case, why not
just use a cache in front of your webservers that filters urls?

oh, and for good measure, tim:

"binarycloud"

b i n a r y c l o u d

binrcld

I believe that's three times :)

_a


-- 
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 /sapi/isapi/stresstest stresstest.cpp

2001-01-14 Thread Shane Caraveo

shane   Sun Jan 14 17:17:45 2001 EDT

  Modified files:  
/php4/sapi/isapi/stresstest stresstest.cpp 
  Log:
  dont do results if not using test files
  
Index: php4/sapi/isapi/stresstest/stresstest.cpp
diff -u php4/sapi/isapi/stresstest/stresstest.cpp:1.7 
php4/sapi/isapi/stresstest/stresstest.cpp:1.8
--- php4/sapi/isapi/stresstest/stresstest.cpp:1.7   Sun Jan 14 17:13:51 2001
+++ php4/sapi/isapi/stresstest/stresstest.cpp   Sun Jan 14 17:17:44 2001
@@ -450,9 +450,9 @@
IsapiPostData.GetAt(i),
IsapiMatchData.GetAt(i),
TestNames.GetAt(i)))
-   InterlockedIncrement(&Results[i].ok);
+   if (test) InterlockedIncrement(&Results[i].ok);
else
-   InterlockedIncrement(&Results[i].bad);
+   if (test) InterlockedIncrement(&Results[i].bad);
Sleep(10);
}
}



-- 
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] DocBook Editors?

2001-01-14 Thread Alex Black

> A lot of technical people aren't keen on WYSIWYG editors.  Especially when

I'm technical, and I'm not looking for WYSIWYG. I'm looking for something
that doesn't require me to memorize yet another large set of tags. :)

> dealing with something like docbook that is designed to generate
> documentation in dozens of formats.  vim with its syntax colouring or
> emacs with its validation mode really do a good job.  I have been writing
> a lot of docbook stuff lately for work and I find I am an order of
> magnitude more productive than I ever was using something like Word.

Well, word is a terrible example being a terrible app, especially for
structured content.

Nothing?

No options?

No SGML editors out there with a tag catalog, etc?

and yes, WYSINWYG = what you see is _never_ what you get


_a



> -Rasmus
> 
> On Sun, 14 Jan 2001, Alex Black wrote:
> 
>> hi all,
>> 
>> anyone found a good graphical SGML editor for any platform that's no a
>> fortune?
>> 
>> http://www.adobe.com/store/products/framemakersgml.html
>> 
>> It would be really annoying to have to write a bunch of documentation for
>> binarycloud inside an plaintext xml document.
>> 
>> I'm surprised DocBook has gained so much support given the apparent lack of
>> good tools for authoring.
>> 
>> ?
>> 
>> _alex
>> 
>> 
>> --
>> Alex Black, Head Monkey
>> [EMAIL PROTECTED]
>> 
>> The Turing Studio, Inc.
>> http://www.turingstudio.com
>> 
>> vox+510.666.0074
>> fax+510.666.0093
>> 
>> Saul Zaentz Film Center
>> 2600 Tenth St Suite 433
>> Berkeley, CA 94710-2522
>> 
>> 
>> 
>> 
>> 
>> --
>> 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 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]




  1   2   >