[PHP-DOC] cvs: phpdoc /en/reference/pcre/functions preg-split.xml

2003-07-11 Thread Andrioli Darvin
darvina Fri Jul 11 15:45:00 2003 EDT

  Modified files:  
/phpdoc/en/reference/pcre/functions preg-split.xml 
  Log:
  Added php tags in the examples
  
Index: phpdoc/en/reference/pcre/functions/preg-split.xml
diff -u phpdoc/en/reference/pcre/functions/preg-split.xml:1.6 
phpdoc/en/reference/pcre/functions/preg-split.xml:1.7
--- phpdoc/en/reference/pcre/functions/preg-split.xml:1.6   Mon Jun 16 16:03:02 
2003
+++ phpdoc/en/reference/pcre/functions/preg-split.xml   Fri Jul 11 15:45:00 2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -71,9 +71,11 @@
   preg_split example : Get the parts of a search 
string
   
 
   
  
@@ -83,9 +85,11 @@
   Splitting a string into component characters
   
 
   
  
@@ -95,9 +99,11 @@
   Splitting a string into matches and their offsets
   
 
   
   



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



[PHP-DOC] cvs: phpdoc /en/reference/fbsql/functions fbsql-pconnect.xml

2003-07-11 Thread Sebastian-H. Picklum
sp  Fri Jul 11 12:33:37 2003 EDT

  Modified files:  
/phpdoc/en/reference/fbsql/functionsfbsql-pconnect.xml 
  Log:
  Placed a para in a more logical order.
  
Index: phpdoc/en/reference/fbsql/functions/fbsql-pconnect.xml
diff -u phpdoc/en/reference/fbsql/functions/fbsql-pconnect.xml:1.2 
phpdoc/en/reference/fbsql/functions/fbsql-pconnect.xml:1.3
--- phpdoc/en/reference/fbsql/functions/fbsql-pconnect.xml:1.2  Wed Apr 17 02:37:54 
2002
+++ phpdoc/en/reference/fbsql/functions/fbsql-pconnect.xml  Fri Jul 11 12:33:37 
2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -28,12 +28,12 @@
  and password = empty password.
 
 
- fbsql_pconnect acts very much like
- fbsql_connect with two major differences.
-
-
  To set Frontbase server port number, use
  fbsql_select_db.
+
+
+ fbsql_pconnect acts very much like
+ fbsql_connect with two major differences.
 
  
  First, when connecting, the function would first try to find a



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



[PHP-DOC] cvs: phpdoc /chm make_chm_fancy.php

2003-07-11 Thread Moshe Doron
momoFri Jul 11 10:50:26 2003 EDT

  Modified files:  
/phpdoc/chm make_chm_fancy.php 
  Log:
   proper revert Hadar patch
  
Index: phpdoc/chm/make_chm_fancy.php
diff -u phpdoc/chm/make_chm_fancy.php:1.10 phpdoc/chm/make_chm_fancy.php:1.11
--- phpdoc/chm/make_chm_fancy.php:1.10  Fri Jul 11 10:47:16 2003
+++ phpdoc/chm/make_chm_fancy.php   Fri Jul 11 10:50:26 2003
@@ -1,15 +1,21 @@
  fancy HTML using CHtmlParser
+function fancy_parser_design($fname)
+{
+global $HTML_PATH, $FANCY_PATH, $LANGUAGE, $LANGUAGES, $counter, $original_index, 
$publication_date;
+
+global $EHType,$HEType;
+
+// Get the contents of the file from $HTML_PATH
+//TODO: iconv stuff, for when charset element > byte
+$content = file_get_contents("$HTML_PATH/$fname");
+$tree = new CHtmlExtParse($content);
+
+// CSS file linking
+$head = $HEType["head"];
+if(isset($tree->EBT[$head][0]))
+$tree->ATE[$tree->EBT[$head][0]]["chaintoend"] = '';
+
+// Charset:
+$meta = $HEType["meta"];
+if(isset($tree->EBT[$meta])){
+for($a=0;$aEBT[$meta]);$a++){
+$elem = &$tree->ATE[$tree->EBT[$meta][$a]];
+if(isset($elem["http-equiv"]) && $elem["http-equiv"]=="Content-type")
+$elem["content"] = "text/html; 
{$LANGUAGES[$LANGUAGE]['mime_charset_name']}";
+}
+}
+
+// No margins around
+$body = $HEType["body"];
+if(isset($tree->EBT[$body][0])){
+$tree->ATE[$tree->EBT[$body][0]]["TOPMARGIN"] ="0";
+$tree->ATE[$tree->EBT[$body][0]]["LEFTMARGIN"] ="0";
+}
+
+
+// HR dropout
+$tmp=0;
+do{
+if($tmp = 
$tree->get_element_id_by_rule(array("tag"=>"hr","properties"=>array("align","LEFT","width","100%"),"offset"=>($tmp+1{
+$tree->change_tag_type($tmp,__HTML_FREE_ENGLISH__);
+}
+} while($tmp);
+
+// Whole page table and backgrounds
+$wpbegin = '';
+$bnavt = '';
+$lnavt = '';
+$space = '';
+
+// Navheader backgound
+if($tmp = 
$tree->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","NAVHEADER"{
+$tree->ATE[$tmp]["data"] = "$wpbegin$bnavt";
+$tree->ATE[$tree->ECE[$tmp]]["data"] = 
"$lnavt$space";
+$tree->ATE[$tmp+1]["cellpadding"] = "3";
+$tree->change_tag_type($tmp,__HTML_FREE_ENGLISH__);
+}
+
+// Navfooter backgound
+if($tmp = 
$tree->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","NAVFOOTER"{
+$tree->ATE[$tmp]["data"] = "$space{$bnavt}{$lnavt}";
+$tree->ATE[$tree->ECE[$tmp]]["data"] = 
"";
+$tree->ATE[$tmp+1]["cellpadding"] = "3";
+$tree->change_tag_type($tmp,__HTML_FREE_ENGLISH__);
+}
+
+// Fix copyright page fault...
+if ($fname == "copyright.html") {
+// it just looks that no more need to fix the copyright.
+}
+
+// Fix the original manual index to look far better...
+elseif ($fname == "$original_index") {
+// Find out manual generation date
+if($tmp = 
$tree->get_element_id_by_rule(array("tag"=>"p","properties"=>array("class","pubdate"{
+$publication_date = $tree->ATE[$tmp+1]["data"];
+} else {
+$publication_date = 'n/a';
+}
+
+
+ // Modify the index file to meet our needs
+$tmp = 
$tree->get_element_id_by_rule(array("tag"=>"h1","properties"=>array("class","title")));
+$tit = isset($tree->ATE[$tmp+2]["data"])?$tree->ATE[$tmp+2]["data"]:"";
+$tit2 ="";
+   
+$tmp = 
$tree->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","BOOK")));
+$tree->ATE[$tmp-1]["chaintoend"] = 
+''.$tit2.' 
+';
+
+/** TODO complete this:
+$content = preg_replace("/(/Us", "", $content);
+preg_match('|(.*)|U', 
$content, $match);
+$content = 
preg_replace("|(CLASS=\"title\"\\s+>).*().*((.*)|U", "", 
$content);
+/**/
+}
+
+// Print out that new file to $FANCY_PATH
+$fp = fopen("$FANCY_PATH/$fname", "w");
+  
+$content = $tree->get();
+$tree->unsetme();
+//TODO: iconv stuff, for when charset element > byte
+fputs($fp, $content);
+fclose($fp);
+
+// Print out a message to see the progress
+echo "$FANCY_PATH/$fname ready...\n";
+$counter++;
+} // fancy_parser_design() function end
 
 ?>



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



[PHP-DOC] cvs: phpdoc /chm make_chm.php make_chm_fancy.php

2003-07-11 Thread Moshe Doron
momoFri Jul 11 10:47:16 2003 EDT

  Modified files:  
/phpdoc/chm make_chm.php make_chm_fancy.php 
  Log:
  revert Hadar patch
  Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.20 phpdoc/chm/make_chm.php:1.21
--- phpdoc/chm/make_chm.php:1.20Fri Jul 11 06:19:49 2003
+++ phpdoc/chm/make_chm.php Fri Jul 11 10:47:16 2003
@@ -28,21 +28,6 @@
 "appendixes.html"
 );
 
-if($LANGUAGE == "he") {
-// Header for index and toc 
-$HEADER = '
-
-
-  
-  
-
-
-  
-
-  
-  ';
-}
-else {
 // Header for index and toc 
 $HEADER = '
 
@@ -55,7 +40,6 @@
 
   
   ';
-}
 
 makeProjectFile();
 makeContentFiles();
Index: phpdoc/chm/make_chm_fancy.php
diff -u phpdoc/chm/make_chm_fancy.php:1.9 phpdoc/chm/make_chm_fancy.php:1.10
--- phpdoc/chm/make_chm_fancy.php:1.9   Fri Jul 11 06:19:35 2003
+++ phpdoc/chm/make_chm_fancy.php   Fri Jul 11 10:47:16 2003
@@ -10,12 +10,6 @@
 include_once('common.php');
 include_once('chm_settings.php');
 
-if($LANGUAGE == "he") {
-   include_once("./scripts/rtlpatch/HtmlParser.class.php");
-   include_once("./scripts/rtlpatch/HtmlExtParser.class.php");
-   
-}
-
 // This script takes much time to run
 set_time_limit(0);
 
@@ -29,11 +23,7 @@
 $handle = opendir($HTML_PATH);
 while (false !== ($filename = readdir($handle))) {
 if (strpos($filename, ".html") && ($filename != "fancy-index.html")) {
-if($LANGUAGE == "he") {
-   fancy_parser_design($filename);
-} else {
-   fancy_design($filename);
-}
+fancy_design($filename);
 }
 }
 closedir($handle);
@@ -85,21 +75,12 @@
 // HR dropout
 $content = preg_replace("//", '', 
$content);
 
-   if($LANGUAGE == "he") {
-// Whole page table and backgrounds
-$wpbegin = '';
-$bnavt = '';
-$lnavt = '';
-$space = '';
-   }
-   else {
 // Whole page table and backgrounds
 $wpbegin = '';
 $bnavt = '';
 $lnavt = '';
 $space = '';
-   }
-   
+
 // Navheader backgound
 $content = 
preg_replace("/<\\/DIV\\s*>/Us",
 $wpbegin . '' . $bnavt . 
'' . $lnavt . 
'' . $space . '', $content);
@@ -150,127 +131,5 @@
 $counter++;
 
 } // fancy_design() function end
-
-
-// Convert one file from HTML => fancy HTML using CHtmlParser
-function fancy_parser_design($fname)
-{
-global $HTML_PATH, $FANCY_PATH, $LANGUAGE, $LANGUAGES, $counter, $original_index, 
$publication_date;
-   
-global $EHType,$HEType;
-
-// Get the contents of the file from $HTML_PATH
-//TODO: iconv stuff, for when charset element > byte
-$content = file_get_contents("$HTML_PATH/$fname");
-   $tree = new CHtmlExtParse($content);
-   
-   // CSS file linking
-   $head = $HEType["head"];
-   if(isset($tree->EBT[$head][0]))
-   $tree->ATE[$tree->EBT[$head][0]]["chaintoend"] = '';
-   
-   // Charset:
-   $meta = $HEType["meta"];
-   if(isset($tree->EBT[$meta])){
-   for($a=0;$aEBT[$meta]);$a++){
-   $elem = &$tree->ATE[$tree->EBT[$meta][$a]];
-   if(isset($elem["http-equiv"]) && 
$elem["http-equiv"]=="Content-type")
-   $elem["content"] = "text/html; 
{$LANGUAGES[$LANGUAGE]['mime_charset_name']}";
-   }
-   }
-   
-// No margins around
-$body = $HEType["body"];
-   if(isset($tree->EBT[$body][0])){
-   $tree->ATE[$tree->EBT[$body][0]]["TOPMARGIN"] ="0";
-   $tree->ATE[$tree->EBT[$body][0]]["LEFTMARGIN"] ="0";
-   }
-   
-   
-// HR dropout
-$tmp=0;
-   do{
-   if($tmp = 
$tree->get_element_id_by_rule(array("tag"=>"hr","properties"=>array("align","LEFT","width","100%"),"offset"=>($tmp+1{
-   $tree->change_tag_type($tmp,__HTML_FREE_ENGLISH__);
-   }
-   } while($tmp);
-   
-   if($LANGUAGE == "he") {
-   // Whole page table and backgrounds
-$wpbegin = '';
-$bnavt = '';
-$lnavt = '';
-$space = '';
-   }
-   else {
-// Whole page table and backgrounds
-$wpbegin = '';
-$bnavt = '';
-$lnavt = '';
-$space = '';
-   }
-// Navheader backgound
-if($tmp = 
$tree->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","NAVHEADER"{
-   $tree->ATE[$tmp]["data"] = "$wpbegin$bnavt";
-   $tree->ATE[$tree->ECE[$tmp]]["data"] = 
"$lnavt$space";
-   $tree->ATE[$tmp+1]["cellpadding"] = "3";
-   $tree->change_tag_type($tmp,__HTML_FREE_ENGLISH__);
-   }
-
-   // Navfooter backgound
-if($tmp = 
$tree->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","NAVFOOTER"{
-   $tree->ATE[$tmp]["data"] = "$space{$bnavt}{$lnavt}";
-   $tree->ATE[$tree->ECE[$tmp]]["data"] = 
"";
-   $tree->ATE[$tmp+1]["cellpadding"] = "3";
-   

[PHP-DOC] Re: phpdoc /chm make_chm_fancy.php

2003-07-11 Thread moshe doron
worse idea.
most of the manual, speicialy still i'll play with the entities,  is still english. 
the way doing it have to be much more selective way.
did u build the manual before committing? anyway that should be discusses.

-- 
moshe

-- 


"Hadar Porat" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> hadar_p Fri Jul 11 06:19:35 2003 EDT
> 
>   Modified files:  
> /phpdoc/chm make_chm_fancy.php 
>   Log:
>   Another hebrew change
>   
> Index: phpdoc/chm/make_chm_fancy.php
> diff -u phpdoc/chm/make_chm_fancy.php:1.8 phpdoc/chm/make_chm_fancy.php:1.9
> --- phpdoc/chm/make_chm_fancy.php:1.8 Mon Jun 23 05:29:34 2003
> +++ phpdoc/chm/make_chm_fancy.php Fri Jul 11 06:19:35 2003
> @@ -85,12 +85,21 @@
>  // HR dropout
>  $content = preg_replace("//", '', 
> $content);
>  
> + if($LANGUAGE == "he") {
> +// Whole page table and backgrounds
> +$wpbegin = ' CELLPADDING="0" DIR="RTL">';
> +$bnavt = ' WIDTH="100%" DIR="RTL">';
> +$lnavt = ' HEIGHT="1">';
> +$space = '';
> + }
> + else {
>  // Whole page table and backgrounds
>  $wpbegin = ' CELLPADDING="0">';
>  $bnavt = ' WIDTH="100%">';
>  $lnavt = ' HEIGHT="1">';
>  $space = '';
> -
> + }
> + 
>  // Navheader backgound
>  $content = 
> preg_replace("/<\\/DIV\\s*>/Us",
>  $wpbegin . '' . $bnavt . 
> '' . $lnavt . 
> '' . $space . ' WIDTH="100%">', $content);
> @@ -186,12 +195,20 @@
>   }
>   } while($tmp);
>   
> + if($LANGUAGE == "he") {
> + // Whole page table and backgrounds
> +$wpbegin = ' CELLPADDING="0" DIR="RTL">';
> +$bnavt = ' WIDTH="100%" DIR="RTL">';
> +$lnavt = ' HEIGHT="1">';
> +$space = '';
> + }
> + else {
>  // Whole page table and backgrounds
>  $wpbegin = ' CELLPADDING="0">';
>  $bnavt = ' WIDTH="100%">';
>  $lnavt = ' HEIGHT="1">';
>  $space = '';
> -
> + }
>  // Navheader backgound
>  if($tmp = 
> $tree->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","NAVHEADER"{
>   $tree->ATE[$tmp]["data"] = "$wpbegin$bnavt";
> 
> 
> 

Re: [PHP-DOC] see also serialize/unserialize

2003-07-11 Thread Mehdi
Just a quick remark.

I really think that the manual sections on 'implode' and 'explode' 
should refer to 'serialize' and 'unserialize' in their see also lists.

Otherwise you have the best online manual I know. Keep up the good work.

Regards,
Oscar 


Hi Oscar,

I saw your note this morning 
(http://news.php.net/article.php?group=php.notes&article=51892). I've 
deleted it because there was already
a note saying the same thing posted by "kj at mendosus dot org".

I (or someone else) will have a look and a note will be integrated.

Thank you for helping us making the manual much better ;)

Regards,

Mehdi



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


[PHP-DOC] see also serialize/unserialize

2003-07-11 Thread Oscar Dijkhoff
Just a quick remark.

I really think that the manual sections on 'implode' and 'explode' should 
refer to 'serialize' and 'unserialize' in their see also lists.

Otherwise you have the best online manual I know. Keep up the good work.

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


[PHP-DOC] #23702 [Com]: Please add "Accept-encoding: gzip"/"--compressed" option to CURL functions

2003-07-11 Thread julian_bond at voidstar dot com
 ID:   23702
 Comment by:   julian_bond at voidstar dot com
 Reported By:  stephen at pierzchala dot com
 Status:   Analyzed
 Bug Type: Documentation problem
 Operating System: RedHat 8.0
 PHP Version:  4.3.2RC3
 New Comment:

Just done some analysis on this in two setups. Both 4.3.2
1. Win32 using php_curl.dll libcurl/7.10.5 OpenSSL/0.9.7b
2. redhat 7.3, compiled with '--with-curl', libcurl/7.10.2
OpenSSL/0.9.6 zlib/1.1.4

In both cases, CURLOPT_ENCODING is being ignored. no matter what
parameter is added, the Accept-Encoding: header is never generated. If
gzip content is forced to be returned, curl doesn't decode it.

Whether the problem is with curl or php I'm not sure.


Previous Comments:


[2003-06-07 13:45:28] julian_bond at voidstar dot com

As far as I can see this option is not working in Win32 4.3.2 
curl_setopt ($ch, CURLOPT_ENCODING,"") and 
curl_setopt ($ch, CURLOPT_ENCODING,"gzip") don't throw errors, but they
also don't generate the Accept-Encoding: header.

At a guess php_curl.dll is being built without zlib support.



[2003-05-19 22:33:08] stephen at pierzchala dot com

Thanks for this...I know it is a documentation issue and I know it
accepts a string value...but how do you activate this feature?

I am using cURL 7.10.5

Thanks



[2003-05-19 17:08:06] [EMAIL PROTECTED]

Better make this documentation problem, couple of other
options are also not documented.




[2003-05-19 17:06:54] [EMAIL PROTECTED]

It's already there: CURLOPT_ENCODING




[2003-05-19 12:48:17] stephen at pierzchala dot com

With the release of cURL 7.10.5, the ability to add the "--compressed"
option to the command line gives people the ability to request
compressed content if the server offers the option.

Will this feature be added to the curl_setopt() family of functions?

Thanks,
Stephen Pierzchala




-- 
Edit this bug report at http://bugs.php.net/?id=23702&edit=1


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



[PHP-DOC] cvs: phpdoc /chm make_chm.php

2003-07-11 Thread Hadar Porat
hadar_p Fri Jul 11 06:19:49 2003 EDT

  Modified files:  
/phpdoc/chm make_chm.php 
  Log:
  Another hebrew change
  
Index: phpdoc/chm/make_chm.php
diff -u phpdoc/chm/make_chm.php:1.19 phpdoc/chm/make_chm.php:1.20
--- phpdoc/chm/make_chm.php:1.19Tue May 13 17:24:15 2003
+++ phpdoc/chm/make_chm.php Fri Jul 11 06:19:49 2003
@@ -28,6 +28,21 @@
 "appendixes.html"
 );
 
+if($LANGUAGE == "he") {
+// Header for index and toc 
+$HEADER = '
+
+
+  
+  
+
+
+  
+
+  
+  ';
+}
+else {
 // Header for index and toc 
 $HEADER = '
 
@@ -40,6 +55,7 @@
 
   
   ';
+}
 
 makeProjectFile();
 makeContentFiles();



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



[PHP-DOC] cvs: phpdoc /chm make_chm_fancy.php

2003-07-11 Thread Hadar Porat
hadar_p Fri Jul 11 06:19:35 2003 EDT

  Modified files:  
/phpdoc/chm make_chm_fancy.php 
  Log:
  Another hebrew change
  
Index: phpdoc/chm/make_chm_fancy.php
diff -u phpdoc/chm/make_chm_fancy.php:1.8 phpdoc/chm/make_chm_fancy.php:1.9
--- phpdoc/chm/make_chm_fancy.php:1.8   Mon Jun 23 05:29:34 2003
+++ phpdoc/chm/make_chm_fancy.php   Fri Jul 11 06:19:35 2003
@@ -85,12 +85,21 @@
 // HR dropout
 $content = preg_replace("//", '', 
$content);
 
+   if($LANGUAGE == "he") {
+// Whole page table and backgrounds
+$wpbegin = '';
+$bnavt = '';
+$lnavt = '';
+$space = '';
+   }
+   else {
 // Whole page table and backgrounds
 $wpbegin = '';
 $bnavt = '';
 $lnavt = '';
 $space = '';
-
+   }
+   
 // Navheader backgound
 $content = 
preg_replace("/<\\/DIV\\s*>/Us",
 $wpbegin . '' . $bnavt . 
'' . $lnavt . 
'' . $space . '', $content);
@@ -186,12 +195,20 @@
}
} while($tmp);

+   if($LANGUAGE == "he") {
+   // Whole page table and backgrounds
+$wpbegin = '';
+$bnavt = '';
+$lnavt = '';
+$space = '';
+   }
+   else {
 // Whole page table and backgrounds
 $wpbegin = '';
 $bnavt = '';
 $lnavt = '';
 $space = '';
-
+   }
 // Navheader backgound
 if($tmp = 
$tree->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","NAVHEADER"{
$tree->ATE[$tmp]["data"] = "$wpbegin$bnavt";



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