Re: [PHP] PHP Developer's Cookbook, Second Edition

2002-03-23 Thread Egon Schmid

From: Craig Westerman [EMAIL PROTECTED]

 Is the second edition much different from the 1st? If one has 1st
Edition,
 is it worth $39.95 to get the second?

I hope so. Sterling got a list of  errors from two German
translators for his 1st edition. Sterling haven´t said a word about
the second edition during his trip to Germany. You can see him at
http://www.php-ev.de/documents/phpdoc/protocol.html.

-Egon


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




Re: [PHP] Assignment operator proposal

2002-03-20 Thread Egon Schmid

From: Enrico Weigelt [EMAIL PROTECTED]

 On Thu, Mar 21, 2002 at 12:36:26AM +0200, Bogdan Stancescu wrote:

  Hi all!
 
  I'd like to hear from a single one of you who isn't tired of
code similar to

 i'm solving this with some little knowledge of shortcuts
evaluation ...

  ?
   if (!$whatever) {
 $whatever=something;
   }
  ?

 (($whatever) || ($whatever = something));

  or else
 
  ?
   if ($whatever)
   {
 $somethingelse=$whatever;
   }
  ?
 (($whatever)  ($somethingelse=$whatever));

  How about a new asignment operator which would shut up all those
Python
  enthusiasts - let's say the new operator would be caret - and we
could
  replace the first example with
 sounds interesting.

 IMHO you have to rewrite some stuff in the php language parser
 so it detects these expressions and generates an if-else-tree ...

Please note, there are many German PHP developers. Most of them are
not so stupid ...

-Egon


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




Re: [PHP] Book database (slightly OT)

2002-01-29 Thread Egon Schmid

From: Steve Edberg [EMAIL PROTECTED]

 Perhaps the Library of Congress??

 http://www.loc.gov/z3950/

 You could hack the web interface, but it would be more efficient
to
 query the database directly using the Z.39.50 stateful protocol:
see

 http://lcweb.loc.gov/z3950/gateway.html#about
 and
 http://www.niso.org/standards/resources/Z3950_Resources.html

 among other places. You could probably write a pretty decent
 interface using PHP's socket functions, but it would be more
 efficient to write a PHP extension for it - depending on how
intense
 your searches were. That was on my to-do list for a project a few
 years ago, but I'm no longer working on that.

It seems that you are or have been a librarian. Have you ever tried
http://php.net/yaz ?

-Egon


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

2001-12-13 Thread Egon Schmid

From: Duane Douglas [EMAIL PROTECTED]
 At 03:23 PM 12/13/2001 -0800, Nathan Cassano wrote:

 Went to www.google.com. Searched phplib. The first result
returned was
 http://sourceforge.net/projects/phplib.

 i went to the site and the description of phplib was rather
sparse.  i'm
 wondering if anyone can provide a more comprehensive description.
thanks.

It is a external library with useful PHP functions. It was designed
by some German guys, but you can now forget it. Main feature was the
session function and that function is now integrated in the PHP
extensions.

-Egon


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

2001-11-12 Thread Egon Schmid

From: Melih Onvural [EMAIL PROTECTED]

 I know this is a PHP news group, but i've seen some XML questions
before and
 I was
 wondering if anyone knew how to apply a DTD, or where to find one.
thanks
 for any
 help,

This is not a newsgroup it is a mailing list. We use the DocBook XML
DTD to produce the PHP manuals. You can find a copy of it at
http://www.oasis-open.org/ or http://nwalsh.com/

-Egon


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

2001-09-13 Thread Egon Schmid

Alexander Skwar wrote:
 
 So sprach »murat« am 2001-09-13 um 14:34:31 +0300 :
  how can i change variables that has two or more words to variables that
   has + instead of blanks in that variables.
  Like this: word1 word2 word3  = word1+word2+word3
 
 $word1 . $word2 . $word3
 
 Read the manual!

Alexander, please don't try to educate people with a RTFM. Your solution
to the above problem is obviously wrong.

-Egon

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

2001-09-02 Thread Egon Schmid

 I wish to learn php, but I was wondering if there is a better
resource( something
 like a guide) besides the php manual on php.net ?

Buy the the book from Sterling Hughes with contributions by Andrei
Zmievski PHP Developer´s Cookbook from Sams. I have been reading
every page the last two weeks and it will published by the German
publisher Markt+Technik in about 4 weeks.

Together with Sterling´s book, the PHP manual, and the excelent
function tables from Hartmut Holzgraefe
(http://www.zugeschaut-und-mitgebaut.de/php/ or
http://zend.com/phpfunc) you have the tools to learn PHP. If this is
hard to understand, you can try reading Julie Meloni´s book PHP
Essentials which is written for beginners.

-Egon


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

2001-03-29 Thread Egon Schmid (@work)

acleave wrote:
 
 I have tried the online documentation and it either errors out on me or cannot
 find anything when I search on case.  Can someone tell me if PHP supports case
 statements (or do I just need to do a series of ifs?) and if so where I can
 find them detailed in the online docs?

http://www.php.net/manual/en/control-structures.switch.php ?

-Egon

-- 
SIX Offene Systeme GmbH   Stuttgart  -  Berlin 
Sielminger Strae 63   D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164  Fax +49 711 9909199 http://www.six.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] Reversing htmlspecialchars()

2001-03-19 Thread Egon Schmid (@work)

Yev wrote:

 I encoded my HTML text via htmlspecialchars(), but now need to get the
 actual HTML.. I searched the docs, but couldn't find the reverse
 function.  How would I do this?

See also: htmlentities(), array_flip(), and get_translation_table().

-Egon

-- 
SIX Offene Systeme GmbH   Stuttgart  -  Berlin 
Sielminger Strae 63   D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164  Fax +49 711 9909199 http://www.six.de
Besuchen Sie uns auf der CeBIT 2001,  Halle 6,  Stand F62/4

-- 
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 /pear/Cache Output.php

2001-03-16 Thread Egon Schmid

eschmid Fri Mar 16 00:50:39 2001 EDT

  Modified files:  
/php4/pear/CacheOutput.php 
  Log:
  Ulf, you have a conflict.
  
Index: php4/pear/Cache/Output.php
diff -u php4/pear/Cache/Output.php:1.13 php4/pear/Cache/Output.php:1.14
--- php4/pear/Cache/Output.php:1.13 Fri Mar 16 00:40:39 2001
+++ php4/pear/Cache/Output.php  Fri Mar 16 00:50:39 2001
@@ -17,7 +17,7 @@
 // |  Vinai Kopp [EMAIL PROTECTED]   |
 // +--+
 //
-// $Id: Output.php,v 1.13 2001/03/16 08:40:39 uw Exp $
+// $Id: Output.php,v 1.14 2001/03/16 08:50:39 eschmid Exp $
 
 require_once 'Cache.php';
 
@@ -50,14 +50,10 @@
 *  //   "post" = $HTTP_POST_VAS"
 *  //   "cookie"  = $HTTP_COOKIE_VARS
 *  //);
- Output.php
 *  // But be warned, using all GET or POST Variables as a seed
 *  // can be used for a DOS attack. Calling 
http://www.example.com/example.php?whatever
 *  // where whatever is a random text might be used to flood your cache.
 *  $cache_handle = $cache-generateID($REQUEST_URI);
-===
-*  $cache_handle = $cache-generateID($REQUEST_URI);
- 1.12
 * 
 *  // now the magic happens: if cached call die() 
 *  // to end the time consumptiong script script execution and use the cached value!



-- 
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] using DTDs and XML

2001-02-23 Thread Egon Schmid (@work)

Mark Newnham wrote:
 
 Does anyone have examples of using DTD's with the xml_parse functions?

http://php.net/xml Example 4 uses an external DTD. Internal DTD's are
also possible.

-Egon

-- 
SIX Offene Systeme GmbH   Stuttgart  -  Berlin 
Sielminger Strae 63   D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164  Fax +49 711 9909199 http://www.six.de
Besuchen Sie uns auf der CeBIT 2001,  Halle 6,  Stand F62/4

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

2001-02-18 Thread Egon Schmid (@vacation)

Boaz Yahav wrote:
 
 Or maybe this is just the file name on the php.net site that
 got me confused?

The reason is, that the filenames are derived from refentry id's and
ther an underscore isn't allowed.
 
 The listing is for _ but the file name is with an -

Correct.

-Egon
 
 -Original Message-
 From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 18, 2001 7:31 PM
 To: PHP General (E-mail)
 Subject: [PHP] PHP functions
 
 Hi
 
 I guess I was sleeping when this had happened but I still have to ask :
 
 1. When were all of the php functions that hade a "_" in them renamed to
 have a "-" instead?
 For example "aspell-suggest" instead of "aspell_suggest".
 
 2. When were these functions removed :
 
 
 ada-commit,ada-connect,ada-exec,ada-fieldname,ada-fieldnum,ada-fieldtype,ada
 -freeresult,ada-numfields
 
 ada-numrows,ada-result,ada-resultall,ada-rollback,ada-afetch,ada-autocommit,
 ada-close,ada-fetchrow
 
 is-writeable,dir,set-socket-blocking,hw-Changeobject,hw-DocumentAttributes,h
 w-DocumentBodyTag
 hw-DocumentSize,hw-OutputDocument,hw-Username,ifx-free-slob
 
 Sincerely
 
   berber
 
 Visit http://www.weberdev.com Today!!!
 To see where PHP might take you tomorrow.
 
 
 --
 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]

-- 
SIX Offene Systeme GmbH   Stuttgart  -  Berlin 
Sielminger Strae 63   D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164  Fax +49 711 9909199 http://www.six.de
Besuchen Sie uns auf der CeBIT 2001,  Halle 6,  Stand F62/4

-- 
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-02-16 Thread Egon Schmid

eschmid Fri Feb 16 05:13:53 2001 EDT

  Modified files:  
/php4/ext/standard  file.c 
  Log:
  Wrong return type.
  
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.140 php4/ext/standard/file.c:1.141
--- php4/ext/standard/file.c:1.140  Thu Feb 15 06:48:58 2001
+++ php4/ext/standard/file.cFri Feb 16 05:13:52 2001
@@ -20,7 +20,7 @@
+--+
  */
 
-/* $Id: file.c,v 1.140 2001/02/15 14:48:58 thies Exp $ */
+/* $Id: file.c,v 1.141 2001/02/16 13:13:52 eschmid Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -1729,7 +1729,7 @@
 
 
 
-/* {{{ proto int fread(int fp, int length)
+/* {{{ proto string fread(int fp, int length)
Binary-safe file read */
 
 PHP_FUNCTION(fread)



-- 
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: php3 /functions file.c

2001-02-16 Thread Egon Schmid

eschmid Fri Feb 16 05:14:24 2001 EDT

  Modified files:  
/php3/functions file.c 
  Log:
  Wrong return type.
  
Index: php3/functions/file.c
diff -u php3/functions/file.c:1.234 php3/functions/file.c:1.235
--- php3/functions/file.c:1.234 Thu Dec 14 06:41:52 2000
+++ php3/functions/file.c   Fri Feb 16 05:14:24 2001
@@ -26,7 +26,7 @@
| Authors: Rasmus Lerdorf [EMAIL PROTECTED]   |
+--+
  */
-/* $Id: file.c,v 1.234 2000/12/14 14:41:52 hholzgra Exp $ */
+/* $Id: file.c,v 1.235 2001/02/16 13:14:24 eschmid Exp $ */
 #include "php.h"
 
 #include stdio.h
@@ -1384,7 +1384,7 @@
 }
 /* }}} */
 
-/* {{{ proto int fread(int fp, int length)
+/* {{{ proto string fread(int fp, int length)
Binary-safe file read */
 void php3_fread(INTERNAL_FUNCTION_PARAMETERS)
 {



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




Re: [PHP] PHP Book Recommendations

2001-02-16 Thread Egon Schmid (@vacation)

Brian V Bonini wrote:
 
 Can I get some recommendations on some good PHP
 books. Something broad but with good novice
 concepts

There are many at http://php.net/books.php. Maybe Leon Atkinsons Core
PHP (second edition) or Sterling Hughes Developer's Cookbook.

-Egon

-- 
SIX Offene Systeme GmbH   Stuttgart  -  Berlin 
Sielminger Strae 63   D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164  Fax +49 711 9909199 http://www.six.de
Besuchen Sie uns auf der CeBIT 2001,  Halle 6,  Stand F62/4

-- 
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] Is there a MOD function in PHP

2001-02-15 Thread Egon Schmid (@vacation)

Randall Perry wrote:
 
 Couldn't find one in the manual under arithmetic functions.

%

-Egon

-- 
SIX Offene Systeme GmbH   Stuttgart  -  Berlin 
Sielminger Strae 63   D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164  Fax +49 711 9909199 http://www.six.de
Besuchen Sie uns auf der CeBIT 2001,  Halle 6,  Stand F62/4

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

2001-02-15 Thread Egon Schmid

eschmid Thu Feb 15 12:33:09 2001 EDT

  Modified files:  
/php4/ext/standard  filestat.c 
  Log:
  Small typo.
  
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.52 php4/ext/standard/filestat.c:1.53
--- php4/ext/standard/filestat.c:1.52   Sun Jan 21 09:26:43 2001
+++ php4/ext/standard/filestat.cThu Feb 15 12:33:09 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: filestat.c,v 1.52 2001/01/21 17:26:43 rasmus Exp $ */
+/* $Id: filestat.c,v 1.53 2001/02/15 20:33:09 eschmid Exp $ */
 
 #include "php.h"
 #include "safe_mode.h"
@@ -650,7 +650,7 @@
 FileFunction(PHP_FN(fileowner),3)
 /* }}} */
 
-/* {{{ proto nt filegroup(string filename)
+/* {{{ proto int filegroup(string filename)
Get file group */
 FileFunction(PHP_FN(filegroup),4)
 /* }}} */



-- 
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] converting a date to a string format

2001-02-13 Thread Egon Schmid (@vacation)

Don wrote:
 
 Does someone have a snippet of code that retrieves today's date,
 subtracts 14 days and converts the result to a string in the form
 "MMDD"?

See http://php.net/mktime and http://php.net/date

-Egon

-- 
SIX Offene Systeme GmbH   Stuttgart  -  Berlin 
Sielminger Strae 63   D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164  Fax +49 711 9909199 http://www.six.de
Besuchen Sie uns auf der CeBIT 2001,  Halle 6,  Stand F62/4

-- 
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/mnogosearch php_mnogo.c

2001-02-02 Thread Egon Schmid

eschmid Fri Feb  2 07:49:59 2001 EDT

  Modified files:  
/php4/ext/mnogosearch   php_mnogo.c 
  Log:
  Fixed protos.
  
Index: php4/ext/mnogosearch/php_mnogo.c
diff -u php4/ext/mnogosearch/php_mnogo.c:1.4 php4/ext/mnogosearch/php_mnogo.c:1.5
--- php4/ext/mnogosearch/php_mnogo.c:1.4Fri Feb  2 04:54:14 2001
+++ php4/ext/mnogosearch/php_mnogo.cFri Feb  2 07:49:58 2001
@@ -1,11 +1,11 @@
 /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.4 2001/02/02 12:54:14 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.5 2001/02/02 15:49:58 eschmid Exp $ */
 
 /*
+--+
| PHP version 4.0  |
+--+
-   | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group   |
+   | 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|
@@ -233,7 +233,7 @@
 /* }}} */
 
 
-/* {{{ proto int udm_set_agent_param(agent,var,val)
+/* {{{ proto int udm_set_agent_param(string agent, int var, string val)
Set mnoGoSearch agent session parameters */
 DLEXPORT PHP_FUNCTION(udm_set_agent_param)
 {
@@ -363,8 +363,8 @@
 /* }}} */
 
 
-/* {{{ proto int udm_find(int agent_identifier,string query)
-   perform search */
+/* {{{ proto int udm_find(int agent_identifier, string query)
+   Perform search */
 DLEXPORT PHP_FUNCTION(udm_find)
 {
pval ** yyquery, ** yyagent;
@@ -391,7 +391,7 @@
 /* }}} */
 
 
-/* {{{ proto int udm_get_res_field(int res_identifier,int row_num,const int 
field_name)
+/* {{{ proto int udm_get_res_field(int res_identifier, int row_num, int field_name)
Fetch mnoGoSearch result field */
 DLEXPORT PHP_FUNCTION(udm_get_res_field){
pval **yyres, **yyrow_num, **yyfield_name;
@@ -440,8 +440,8 @@
 /* }}} */
 
 
-/* {{{ proto int udm_get_res_param(int res_identifier, const int param_id)
-mnoGoSearch result parameters */
+/* {{{ proto int udm_get_res_param(int res_identifier, int param_id)
+   mnoGoSearch result parameters */
 DLEXPORT PHP_FUNCTION(udm_get_res_param)
 {
pval ** yyres, ** yyparam;
@@ -474,7 +474,7 @@
 
 
 /* {{{ proto int udm_free_res(int res_identifier)
-mnoGoSearch free result */
+   mnoGoSearch free result */
 DLEXPORT PHP_FUNCTION(udm_free_res)
 {
pval ** yyres;
@@ -498,7 +498,7 @@
 
 
 /* {{{ proto int udm_errno(int agent_identifier)
-mnoGoSearch error number */
+   mnoGoSearch error number */
 DLEXPORT PHP_FUNCTION(udm_errno)
 {
pval ** yyagent;
@@ -521,7 +521,7 @@
 
 
 /* {{{ proto int udm_error(int agent_identifier)
-mnoGoSearch error message */
+   mnoGoSearch error message */
 DLEXPORT PHP_FUNCTION(udm_error)
 {
pval ** yyagent;



-- 
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-31 Thread Egon Schmid

eschmid Wed Jan 31 15:35:37 2001 EDT

  Modified files:  
/php4/ext/mysql php_mysql.c 
  Log:
  Only two lines are allowed here.
  
Index: php4/ext/mysql/php_mysql.c
diff -u php4/ext/mysql/php_mysql.c:1.67 php4/ext/mysql/php_mysql.c:1.68
--- php4/ext/mysql/php_mysql.c:1.67 Wed Jan 31 14:04:30 2001
+++ php4/ext/mysql/php_mysql.c  Wed Jan 31 15:35:37 2001
@@ -1,4 +1,4 @@
-/*
+3/*
+--+
| PHP version 4.0  |
+--+
@@ -16,7 +16,7 @@
+--+
 */
  
-/* $Id: php_mysql.c,v 1.67 2001/01/31 22:04:30 elixer Exp $ */
+/* $Id: php_mysql.c,v 1.68 2001/01/31 23:35:37 eschmid Exp $ */
 
 
 /* TODO:
@@ -714,8 +714,7 @@
 /* }}} */
 
 /* {{{ proto string mysql_get_host_info([int link_identifier])
-   Returns a string describing the type of connection in use, including the
-   server host name */
+   Returns a string describing the type of connection in use, including the server 
+host name */
 PHP_FUNCTION(mysql_get_host_info)
 {
zval **mysql_link;



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

2001-01-27 Thread Egon Schmid (@work)

Ralph Roberts wrote:
 
 At the risk of appearing immodest (a risk I am willing to acceptg), I
 think my current book project, PHP4 FOR DUMMIES (out this summer) will prove
 helpful in learning PHP.

I can't see it at Amazon.com. When you have a cover picture I will put
that book on http://php.net/books.php. Right now I update that page.

-Egon

-- 
SIX Offene Systeme GmbH   Stuttgart  -  Berlin 
Sielminger Strae 63   D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164  Fax +49 711 9909199 http://www.six.de
Besuchen Sie uns auf der CeBIT 2001,  Halle 6,  Stand F62/4

-- 
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/mssql php_mssql.c

2001-01-27 Thread Egon Schmid

eschmid Sat Jan 27 11:48:58 2001 EDT

  Modified files:  
/php4/ext/mssql php_mssql.c 
  Log:
  Fixed some protos.
  
Index: php4/ext/mssql/php_mssql.c
diff -u php4/ext/mssql/php_mssql.c:1.36 php4/ext/mssql/php_mssql.c:1.37
--- php4/ext/mssql/php_mssql.c:1.36 Thu Jan  4 09:29:50 2001
+++ php4/ext/mssql/php_mssql.c  Sat Jan 27 11:48:58 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: php_mssql.c,v 1.36 2001/01/04 17:29:50 fmk Exp $ */
+/* $Id: php_mssql.c,v 1.37 2001/01/27 19:48:58 eschmid Exp $ */
 
 #ifdef COMPILE_DL_MSSQL
 #define HAVE_MSSQL 1
@@ -796,7 +796,7 @@
 }
 
 /* {{{ proto int mssql_fetch_batch(string result_index)
-   returns the next batch of records*/
+   Returns the next batch of records */
 PHP_FUNCTION(mssql_fetch_batch) {
zval **mssql_result_index;
mssql_result *result;
@@ -836,7 +836,7 @@
 }
 /* }}} */
 
-/* {{{ proto int mssql_query(string query [, int conn_id [, int batch_size = 0]])
+/* {{{ proto int mssql_query(string query [, int conn_id [, int batch_size]])
Perform an SQL query on a MS-SQL server database */
 PHP_FUNCTION(mssql_query)
 {
@@ -969,7 +969,7 @@
 /* }}} */
 
 /* {{{ proto int mssql_rows_affected(int conn_id)
-   returns the number of records affected by the query*/
+   Returns the number of records affected by the query */
 PHP_FUNCTION(mssql_rows_affected) {
zval **mssql_link_index;
mssql_link *mssql_ptr;



-- 
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/pdf pdf.c php_pdf.h

2001-01-26 Thread Egon Schmid

eschmid Fri Jan 26 10:52:37 2001 EDT

  Modified files:  
/php4/ext/pdf   php_pdf.h pdf.c 
  Log:
  Fixed some protos.
  

Index: php4/ext/pdf/php_pdf.h
diff -u php4/ext/pdf/php_pdf.h:1.12 php4/ext/pdf/php_pdf.h:1.13
--- php4/ext/pdf/php_pdf.h:1.12 Fri Jan 26 00:20:23 2001
+++ php4/ext/pdf/php_pdf.h  Fri Jan 26 10:52:37 2001
@@ -16,7 +16,7 @@
+--+
 */
 
-/* $Id: php_pdf.h,v 1.12 2001/01/26 08:20:23 steinm Exp $ */
+/* $Id: php_pdf.h,v 1.13 2001/01/26 18:52:37 eschmid Exp $ */
 
 #ifndef PHP_PDF_H
 #define PHP_PDF_H
@@ -89,7 +89,7 @@
 PHP_FUNCTION(pdf_setrgbcolor_stroke);
 PHP_FUNCTION(pdf_setrgbcolor);
 PHP_FUNCTION(pdf_open_image_file);  /* new parameters: [char *stringpram, int 
intparam] */
-PHP_FUNCTION(pdf_open_CCITT);  /* new function */
+PHP_FUNCTION(pdf_open_ccitt);  /* new function */
 PHP_FUNCTION(pdf_open_image);  /* new function: checkit not yet completeted :( */
 PHP_FUNCTION(pdf_close_image);
 PHP_FUNCTION(pdf_place_image);
Index: php4/ext/pdf/pdf.c
diff -u php4/ext/pdf/pdf.c:1.66 php4/ext/pdf/pdf.c:1.67
--- php4/ext/pdf/pdf.c:1.66 Fri Jan 26 00:20:23 2001
+++ php4/ext/pdf/pdf.c  Fri Jan 26 10:52:37 2001
@@ -16,7 +16,7 @@
+--+
 */
 
-/* $Id: pdf.c,v 1.66 2001/01/26 08:20:23 steinm Exp $ */
+/* $Id: pdf.c,v 1.67 2001/01/26 18:52:37 eschmid Exp $ */
 
 /* pdflib 2.02 ... 3.0x is subject to the ALADDIN FREE PUBLIC LICENSE.
Copyright (C) 1997-1999 Thomas Merz. 2000-2001 PDFlib GmbH */
@@ -115,7 +115,7 @@
PHP_FE(pdf_setrgbcolor_stroke, NULL)
PHP_FE(pdf_setrgbcolor, NULL)
PHP_FE(pdf_open_image_file, NULL)  /* new parameters: [char *stringpram, int 
intparam] */
-   PHP_FE(pdf_open_CCITT, NULL)/* new function */
+   PHP_FE(pdf_open_ccitt, NULL)/* new function */
PHP_FE(pdf_open_image, NULL)/* new function */
PHP_FE(pdf_close_image, NULL)
PHP_FE(pdf_place_image, NULL)
@@ -375,9 +375,7 @@
 
 
 /* {{{ proto int pdf_open([int filedesc])
-   Opens a new pdf document. If filedesc is NULL, document is created in memory.
-   This is the old interface, only for compatibility 
-   use pdf_new + pdf_open_file instead */
+   Opens a new pdf document. If filedesc is NULL, document is created in memory. This 
+is the old interface, only for compatibility use pdf_new + pdf_open_file instead */
 PHP_FUNCTION(pdf_open) 
 {
zval **file;
@@ -506,7 +504,7 @@
 }
 /* }}} */
 
-/* {{{ proto int pdf_show_boxed(int pdfdoc, string text, double x-koor, double 
y-koor, double width, double height, string mode, [string feature])
+/* {{{ proto int pdf_show_boxed(int pdfdoc, string text, double x-koor, double 
+y-koor, double width, double height, string mode [, string feature])
Output text formated in a boxed */
 PHP_FUNCTION(pdf_show_boxed) 
 {
@@ -781,7 +779,7 @@
 /* }}} */
 
 /* {{{ proto void pdf_set_text_pos(int pdfdoc, double x, double y)
-   Set the position of text for the next pdf_show call */
+   Sets the position of text for the next pdf_show call */
 PHP_FUNCTION(pdf_set_text_pos) 
 {
zval **arg1, **arg2, **arg3;
@@ -820,7 +818,7 @@
 /* }}} */
 
 /* {{{ proto double pdf_stringwidth(int pdfdoc, string text [, int font, double size])
-   Returns width of text in current font*/
+   Returns width of text in current font */
 PHP_FUNCTION(pdf_stringwidth)
 {
zval **arg1, **arg2, **arg3, **arg4;
@@ -1515,7 +1513,7 @@
 /* }}} */
 
 /* {{{ proto void pdf_setrgbcolor_fill(int pdfdoc, double red, double green, double 
blue)
-   Sets filling color to rgb color value */
+   Sets filling color to RGB color value */
 PHP_FUNCTION(pdf_setrgbcolor_fill)
 {
zval **arg1, **arg2, **arg3, **arg4;
@@ -1536,7 +1534,7 @@
 /* }}} */
 
 /* {{{ proto void pdf_setrgbcolor_stroke(int pdfdoc, double red, double green, double 
blue)
-   Sets drawing color to rgb color value */
+   Sets drawing color to RGB color value */
 PHP_FUNCTION(pdf_setrgbcolor_stroke)
 {
zval **arg1, **arg2, **arg3, **arg4;
@@ -1557,7 +1555,7 @@
 /* }}} */
 
 /* {{{ proto void pdf_setrgbcolor(int pdfdoc, double red, double green, double blue)
-   Sets drawing and filling color to rgb color value */
+   Sets drawing and filling color to RGB color value */
 PHP_FUNCTION(pdf_setrgbcolor)
 {
zval **arg1, **arg2, **arg3, **arg4;
@@ -1577,8 +1575,8 @@
 }
 /* }}} */
 
-/* {{{ proto int pdf_add_bookmark(int pdfdoc, string text [, int parent, int open]);
-   Add bookmark for current page */
+/* {{{ proto int pdf_add_bookmark(int pdfdoc, string text [, int parent, int open])
+   Adds bookmark for current page */
 PHP_FUNCTION(pdf_add_bookmark)
 {
zval **arg1, **arg2, **arg3, **arg4;
@@ -1725,7 +1723,7 @@
 }
 
 /* {{{ proto int pdf_open_gif(int pdf, string giffile)
-   Opens a gif file and returns an image for placement in a pdf document */
+   Opens a GIF file and returns an 

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

2001-01-26 Thread Egon Schmid

eschmid Fri Jan 26 12:42:51 2001 EDT

  Modified files:  
/php4/ext/openssl   openssl.c 
  Log:
  Fixed some protos.
  
Index: php4/ext/openssl/openssl.c
diff -u php4/ext/openssl/openssl.c:1.7 php4/ext/openssl/openssl.c:1.8
--- php4/ext/openssl/openssl.c:1.7  Sat Jan 13 01:16:35 2001
+++ php4/ext/openssl/openssl.c  Fri Jan 26 12:42:50 2001
@@ -16,7 +16,7 @@
+--+
  */
  
-/* $Id: openssl.c,v 1.7 2001/01/13 09:16:35 venaas Exp $ */
+/* $Id: openssl.c,v 1.8 2001/01/26 20:42:50 eschmid Exp $ */
 
 #include "php.h"
 #include "php_openssl.h"
@@ -106,7 +106,7 @@
 }
 
 /* {{{ proto int openssl_get_privatekey(string key [, string passphrase])
-Get private key */
+   Get private key */
 PHP_FUNCTION(openssl_get_privatekey)
 {
zval **key, **passphrase;
@@ -333,8 +333,7 @@
 }
 /* }}} */
 
-/* {{{ proto int openssl_seal(string data, string sealdata, array ekeys,
-  array pubkeys)
+/* {{{ proto int openssl_seal(string data, string sealdata, array ekeys, array 
+pubkeys)
Seal data */
 PHP_FUNCTION(openssl_seal)
 {
@@ -472,8 +471,7 @@
 }
 /* }}} */
 
-/* {{{ proto bool openssl_open(string data, string opendata, string ekey,
-   int privkey)
+/* {{{ proto bool openssl_open(string data, string opendata, string ekey, int privkey)
Open data */
 PHP_FUNCTION(openssl_open)
 {



-- 
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/satellite php_orbit.c

2001-01-26 Thread Egon Schmid

eschmid Fri Jan 26 12:46:22 2001 EDT

  Modified files:  
/php4/ext/satellite php_orbit.c 
  Log:
  Whitespace change for funclist.txt.
  
Index: php4/ext/satellite/php_orbit.c
diff -u php4/ext/satellite/php_orbit.c:1.2 php4/ext/satellite/php_orbit.c:1.3
--- php4/ext/satellite/php_orbit.c:1.2  Fri Sep  1 15:29:00 2000
+++ php4/ext/satellite/php_orbit.c  Fri Jan 26 12:46:22 2001
@@ -17,7 +17,7 @@
  */
 
 /*
- * $Id: php_orbit.c,v 1.2 2000/09/01 22:29:00 eriksson Exp $
+ * $Id: php_orbit.c,v 1.3 2001/01/26 20:46:22 eschmid Exp $
  * vim: syntax=c tabstop=2 shiftwidth=2
  */
 
@@ -56,8 +56,7 @@
 /*
  * functions in module
  */
-static function_entry satellite_functions[] = 
-{
+static function_entry satellite_functions[] = {
PHP_FE(satellite_load_idl,  NULL)
PHP_FE(satellite_get_repository_id, NULL)
PHP_FE(satellite_caught_exception,  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 /ext/hyperwave hw.c

2001-01-26 Thread Egon Schmid

eschmid Fri Jan 26 13:22:32 2001 EDT

  Modified files:  
/php4/ext/hyperwave hw.c 
  Log:
  Fixed another proto.
  
Index: php4/ext/hyperwave/hw.c
diff -u php4/ext/hyperwave/hw.c:1.73 php4/ext/hyperwave/hw.c:1.74
--- php4/ext/hyperwave/hw.c:1.73Fri Dec 22 04:57:05 2000
+++ php4/ext/hyperwave/hw.c Fri Jan 26 13:22:32 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: hw.c,v 1.73 2000/12/22 12:57:05 zeev Exp $ */
+/* $Id: hw.c,v 1.74 2001/01/26 21:22:32 eschmid Exp $ */
 
 #include stdlib.h
 #include errno.h
@@ -2285,12 +2285,8 @@
 }
 /* }}} */
 
-/* {{{ proto hwdoc hw_pipedocument(int link, int objid [, array urlprefixes ] )
-   Returns document with links inserted. Optionally a array with five urlprefixes
-   may be passed, which will be inserted for the different types of anchors. This 
should
-   be a named array with the following keys: HW_DEFAULT_LINK, HW_IMAGE_LINK, 
HW_BACKGROUND_LINK, 
-   HW_INTAG_LINK, and HW_APPLET_LINK.
-*/
+/* {{{ proto hwdoc hw_pipedocument(int link, int objid [, array urlprefixes])
+   Returns document with links inserted. Optionally a array with five urlprefixes may 
+be passed, which will be inserted for the different types of anchors. This should be 
+a named array with the following keys: HW_DEFAULT_LINK, HW_IMAGE_LINK, 
+HW_BACKGROUND_LINK, HW_INTAG_LINK, and HW_APPLET_LINK */
 PHP_FUNCTION(hw_pipedocument) {
pval *arg1, *arg2, *arg3;
int i, link, id, type, argc, mode;



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




Re: [PHP] ? PHP vs. ?

2001-01-17 Thread Egon Schmid (@work)

"Karl J. Stubsjoen" wrote:
 
 Is PHP the implied script, so that it is okay to begin PHP code like this ?
 vs. like this ?php
 When is it not implied?

You should use ?php. In future versions the open short tag would be
dropped or your administrator can disable the open short tag.

-Egon

-- 
SIX Offene Systeme GmbH  Stuttgart  -  Berlin  -  New York
Sielminger Strae 63   D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164  Fax +49 711 9909199 http://www.six.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]




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

2001-01-15 Thread Egon Schmid

eschmid Mon Jan 15 04:01:35 2001 EDT

  Modified files:  
/php4/ext/mhash mhash.c 
  Log:
  Some protos fixed.
  
Index: php4/ext/mhash/mhash.c
diff -u php4/ext/mhash/mhash.c:1.24 php4/ext/mhash/mhash.c:1.25
--- php4/ext/mhash/mhash.c:1.24 Wed Nov 22 13:52:53 2000
+++ php4/ext/mhash/mhash.c  Mon Jan 15 04:01:34 2001
@@ -75,8 +75,8 @@
return SUCCESS;
 }
 
-/* {{{ proto int mhash_count()
-   get the number of available hashes */
+/* {{{ proto int mhash_count(void)
+   Gets the number of available hashes */
 PHP_FUNCTION(mhash_count)
 {
RETURN_LONG(mhash_count());
@@ -85,7 +85,7 @@
 /* }}} */
 
 /* {{{ proto int mhash_get_block_size(int hash)
-   get the block size of hash */
+   Gets the block size of hash */
 PHP_FUNCTION(mhash_get_block_size)
 {
pval **hash;
@@ -103,7 +103,7 @@
 /* }}} */
 
 /* {{{ proto string mhash_get_hash_name(int hash)
-   get the name of hash */
+   Gets the name of hash */
 PHP_FUNCTION(mhash_get_hash_name)
 {
pval **hash;
@@ -127,8 +127,8 @@
 
 /* }}} */
 
-/* {{{ proto string mhash(int hash, string data, [string key])
-   hash data with hash */
+/* {{{ proto string mhash(int hash, string data [, string key])
+   Hash data with hash */
 PHP_FUNCTION(mhash)
 {
pval **hash, **data, **key;
@@ -194,7 +194,7 @@
 /* }}} */
 
 /* {{{ proto string mhash_keygen_s2k(int hash, string input_password, string salt, 
int bytes)
-   generate a key using hash functions */
+   Generates a key using hash functions */
 /* SALTED S2K uses a fixed salt */
 #define SALT_SIZE 8
 PHP_FUNCTION(mhash_keygen_s2k)



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