[PHP-DEV] CVS Account Request: class007

2002-07-15 Thread Xiaoyu Huang

Translating the PHP manual into chinese:
phpdoc-zh/

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




[PHP-DEV] passing variables need help

2002-07-15 Thread John Flanagan

Lo,

I am a just starting with PHP and I am in the middle of building a site. What my 
question is;

If I pass a variable to a page by www.mysite.com/index.php?page=support how do I grab 
that variable and use it in the index.php.

I want to use the same index.php for the whole site and when I get the variable eg 
support pass it in to a variable like pages/{$page}.php;   to stop any directory 
transversal attacks.

I would appreciate it if anyone could tell me how to get the variable from the URL.


Cheers,

John F
[EMAIL PROTECTED]




[PHP-DEV] ob_implict_flush()

2002-07-15 Thread Dejan Markic

Hello!

If output_buffering in PHP is set and you issue ob_implict_flush() it does
not work. I guess it will still buffer those 4096 bytes. Is this a bug or a
feature? I think it would be better if this ob_implict_flush() would work
even if output_buffering is set since this is what you're explictly trying
to set with this function. Just a tought maybe.

Cheers,
Dejan
--
 Change TLD From .is to .si
~
 

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




Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring config.m4

2002-07-15 Thread Edin Kadribasic

 I asked to php-dev and nobody objects enabling mbstirng by
 default. This allow some modules (extif, mailparse(?), for example)
 to use multibyte feature.

No objections here.

 multibyte regular expression is must have feature for
 ease of use. (preg supports UTF-8, but it requires conversion
 in many cases)

 mbstr-enc-trans is enabled, since it's does not require
 much performenace penalty and most multibyte aware installations
 enable this option, I think. This option is subject to be
 discussed.

I think this should be turned off by default. I don't know how big is the
performance penalty, but any unneeded slowdown is a bad thing.

This also make bug chasing more difficult and as we have to maintain two
separate pieces of code that do the same thing. Just have a look at
http://bugs.php.net/bug.php?id=16985 which is caused by different behaviour
of main/php_variables.c and ext/mbstring/mbstring.c.

Could we please turn this feature off by default?

Edin



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




[PHP-DEV] patch for ext_skel

2002-07-15 Thread David Viner

here's a patch for ext_skel that allows you to run ext_skel from any
directory.  Essentially, this just allows the user to specify the location
of the skeleton subdirectory.

I'm a relative newbie to this mailing list, so if this is the wrong place,
please let me know which php mailing list is the correct one.

thanks

dave



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


RE: [PHP-DEV] patch for ext_skel

2002-07-15 Thread David Viner

hmm.. the patch didn't seem to come thru...
here it is...

--- ext_skel.ORIG   Mon Jul 15 08:58:08 2002
+++ ext_skelMon Jul 15 10:42:30 2002
@@ -6,13 +6,14 @@
 }

 usage() {
-echo $0 --extname=module [--proto=file] [--stubs=file] [--xml[=file]]
+echo $0 --extname=module [--proto=file] [--stubs=file] [--xml[=file]]
[--skel=dir]
 echo[--full-xml] [--no-help]
 echo 
 echo   --extname=module   module is the name of your extension
 echo   --proto=file   file contains prototypes of functions to create
 echo   --stubs=file   generate only function stubs in file
 echo   --xml  generate xml documentation to be added to
phpdoc-cvs
+echo   --skel=dir path to the skeleton directory
 echo   --full-xml generate xml documentation for a self-contained
extension
 echo  (not yet implemented)
 echo   --no-help  don't try to be nice and create comments in the
code
@@ -33,7 +34,7 @@
   case $1 in
 --extname=?*)
extname=$optarg
-   EXTNAME=`echo $extname | tr [a-z] [A-Z]`
+   EXTNAME=`echo $extname | tr [:lower:] [:upper:]`
;;
 --proto=?*)
proto=$optarg
@@ -54,6 +55,9 @@
 --no-help)
no_help=yes
;;
+--skel=?*)
+   skel_dir=$optarg
+;;
 *)
usage
;;
@@ -65,8 +69,16 @@
   givup Directory $extname already exists.
 fi

-test -f ext_skel || givup ext_skel must be in the current directory
-test -d skeleton || givup subdirectory skeleton does not exist or is not
directory
+if test -z $skel_dir; then
+  skel_dir=skeleton
+fi
+
+test -d $skel_dir || givup $skel_dir must exist
+## convert skel_dir to full path
+skel_dir=`cd $skel_dir  pwd`
+
+##test -f ext_skel || givup ext_skel must be in the current directory
+test -d $skel_dir || givup subdirectory $skel_dir does not exist or is not
directory

 if echo '\c' | grep -s c /dev/null 21
 then
@@ -84,7 +96,7 @@
 fi

 if test -n $proto; then
-  cat $proto | awk -v extname=$extname -v stubs=$stubs -v
stubfile=$stubfile -v xml=$xml -v full_xml=$full_xml -v
i_know_what_to_do_shut_up_i_dont_need_your_help_mode=$no_help -f
./skeleton/create_stubs
+  cat $proto | awk -v extname=$extname -v stubs=$stubs -v
stubfile=$stubfile -v xml=$xml -v full_xml=$full_xml -v
i_know_what_to_do_shut_up_i_dont_need_your_help_mode=$no_help -f
$skel_dir/create_stubs
 fi

 if test -z $stubs; then
@@ -202,7 +214,7 @@
 echo '/^[[:space:]]*\/\*/,/^[[:space:]]*\*\//D'  sedscript
 fi

-sed -f sedscript ../skeleton/skeleton.c  $extname.c
+sed -f sedscript  $skel_dir/skeleton.c  $extname.c


 $ECHO_N  php_$extname.h$ECHO_C
@@ -220,26 +232,26 @@
 echo 's/^\/\*.*\*\/$//'  sedscript
 echo '/^[[:space:]]*\/\*/,/^[[:space:]]*\*\//D'  sedscript
 fi
-sed -f sedscript ../skeleton/php_skeleton.h  php_$extname.h
+sed -f sedscript $skel_dir/php_skeleton.h  php_$extname.h

 $ECHO_N  CREDITS$ECHO_C
 echo s/extname/$extname/g  sedscript
-sed -f sedscript ../skeleton/CREDITS  CREDITS
+sed -f sedscript $skel_dir/CREDITS  CREDITS

 $ECHO_N  EXPERIMENTAL$ECHO_C
 echo s/extname/$extname/g  sedscript
-sed -f sedscript ../skeleton/EXPERIMENTAL  EXPERIMENTAL
+sed -f sedscript $skel_dir/EXPERIMENTAL  EXPERIMENTAL

 $ECHO_N  tests/001.phpt$ECHO_C
 mkdir tests || givup Cannot create tests directory
 chmod 755 tests
-sed -f sedscript ../skeleton/tests/001.phpt  tests/001.phpt
+sed -f sedscript $skel_dir/tests/001.phpt  tests/001.phpt

 if test -z $stubs  test -z $no_help; then
   $ECHO_N  $extname.php$ECHO_C
   sed \
 -e s/extname/$extname/g \
-../skeleton/skeleton.php \
+$skel_dir/skeleton.php \
  $extname.php
 fi


-Original Message-
From: David Viner [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 10:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] patch for ext_skel


here's a patch for ext_skel that allows you to run ext_skel from any
directory.  Essentially, this just allows the user to specify the location
of the skeleton subdirectory.

I'm a relative newbie to this mailing list, so if this is the wrong place,
please let me know which php mailing list is the correct one.

thanks

dave



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




RE: [PHP-DEV] Re: cvs: php4 /ext/mbstring config.m4

2002-07-15 Thread Robinson, Mike
Title: RE: [PHP-DEV] Re: cvs: php4 /ext/mbstring config.m4 






Edin Kadribasic writes:


 Sent: Monday, July 15, 2002 12:05 PM
 To: [EMAIL PROTECTED]; Jani Taskinen; Yasuo Ohgaki
 Subject: Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring config.m4 
 
 
  I asked to php-dev and nobody objects enabling mbstirng by
  default. This allow some modules (extif, mailparse(?), for example)
  to use multibyte feature.
 
 No objections here.


Frankly, I don't think mbstring should be enabled by default.


If a user wants mbstring support, is it too much to ask to
have them add --enable-mbstring to their config line? Once
we go down this road, turning it off by default is a huge wtf.


IMHO that is.


Regards


Mike Robinson
IT/Developer - Torstar Media Group Television
Phone: 416.945.8786 Fax: 416.869.4566
Email: [EMAIL PROTECTED]




To find out more about what we can do for you, please visit us at:
http://www.tmgtv.ca/ and http://www.thestar.com/



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


[PHP-DEV] test suite for sapi modules

2002-07-15 Thread fab wash

Hello,

I finally have my new SAPI module working (i do a manual link instead of 
using libtool for now because i've spent enough time and headaches trying to 
use libtool).

When I ran PHP as a module and not a cgi anymore, the first thing it did was 
to crash (yay!). I got the obvious mistakes out of the code, and everything 
is running fine (and FAST, I get at least a 400% increase in response time).

The question is: Is there a test suite that other SAPI authors have used? I 
want to be sure I test everything (cookies, headers, variables, persistence, 
etc..) before releasing the code.

Thanks.

Fab.

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




[PHP-DEV] CVS Account Request: aner

2002-07-15 Thread Aner Sapir

My purpose is to translate the manual to Hebrew.
I need an access to the module phpdoc.

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




[PHP-DEV] RE: PHP meetup [CROSS-POST] Meet other PHP Developers in Your Area

2002-07-15 Thread Jay Blanchard

[snip]
No, it's not a dating service :)
Want to meet other PHP developers in your area? Check out:

http://php.meetup.com/

Pretty nifty idea... especially given the lack of user groups in the U.S.

I thought for others who had not seen this I would post this. There is
probably already a user group in your area if you live near a major city.
According to the PHPusergroups.org web site
[http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP user
groups in 52 countries.
[/snip]

I have seen some users groups mentioned, which is outstanding. PHP Meetup is
gaining lots of ground with 105 members at last check. Top 5 cities are...

Manhattan (below 42nd St) (5 members)
London, England (4 members)
Ann Arbor, MI (3 members)
Melbourne (3 members)
Washington DC (3 members) [actually tied with Philadelphia, PA and Orange
County, CA]

And I finally saw another San Antonio member. Just want to keep this fresh
in everyone's mind. If you know of other developer lists where php is
discussed please forward this along.

Thanks!

Jay

Do not meddle in the affairs of dragons-for you are crunchy and good with
ketchup



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




[PHP-DEV] [PHP-DB] RE: PHP meetup [CROSS-POST] Meet other PHP Developersin Your Area

2002-07-15 Thread Martin Clifford

Yes, everyone please join up!  I would love to find more developers in the Maryland 
area, and I'm sure others would in their areas as well!  Let's do the great american 
get togeth... err... the great php get together!

Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/


 Jay Blanchard [EMAIL PROTECTED] 07/15/02 03:20PM 
[snip]
No, it's not a dating service :)
Want to meet other PHP developers in your area? Check out:

http://php.meetup.com/ 

Pretty nifty idea... especially given the lack of user groups in the U.S.

I thought for others who had not seen this I would post this. There is
probably already a user group in your area if you live near a major city.
According to the PHPusergroups.org web site
[http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP user
groups in 52 countries.
[/snip]

I have seen some users groups mentioned, which is outstanding. PHP Meetup is
gaining lots of ground with 105 members at last check. Top 5 cities are...

Manhattan (below 42nd St) (5 members)
London, England (4 members)
Ann Arbor, MI (3 members)
Melbourne (3 members)
Washington DC (3 members) [actually tied with Philadelphia, PA and Orange
County, CA]

And I finally saw another San Antonio member. Just want to keep this fresh
in everyone's mind. If you know of other developer lists where php is
discussed please forward this along.

Thanks!

Jay

Do not meddle in the affairs of dragons-for you are crunchy and good with
ketchup



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



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




Re: [PHP-DEV] passing variables need help

2002-07-15 Thread Philip Olson

Hello John-

Please consider the following two locations:

  http://www.php.net/support
  http://www.php.net/variables.external

Regards,
Philip Olson


On Mon, 15 Jul 2002, John Flanagan wrote:

 Lo,
 
 I am a just starting with PHP and I am in the middle of building a site. What my 
question is;
 
 If I pass a variable to a page by www.mysite.com/index.php?page=support how do I 
grab that variable and use it in the index.php.
 
 I want to use the same index.php for the whole site and when I get the variable eg 
support pass it in to a variable like pages/{$page}.php;   to stop any directory 
transversal attacks.
 
 I would appreciate it if anyone could tell me how to get the variable from the URL.
 
 
 Cheers,
 
 John F
 [EMAIL PROTECTED]
 
 


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




Re: [PHP-DEV] ob_implict_flush()

2002-07-15 Thread Jan Schneider

Zitat von Dejan Markic [EMAIL PROTECTED]:

 Hello!
 
 If output_buffering in PHP is set and you issue ob_implict_flush() it
 does
 not work. I guess it will still buffer those 4096 bytes. Is this a bug or
 a
 feature? I think it would be better if this ob_implict_flush() would work
 even if output_buffering is set since this is what you're explictly
 trying
 to set with this function. Just a tought maybe.

+1 for this. It took me few weeks to find out why go-pear didn't work.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft

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




[PHP-DEV] CVS Account Request: tychay@mac.com

2002-07-15 Thread terrence chay

Help Brad with the PECL PHP SOAP (currently PHP SOAP on sourceforge) programming and 
documentation. Probably also fix some bugs I've run across in PEAR, but that is 
ancillary (mostly tweaks to make code follow PEAR coding standards) and possibly some 
documentation there too.

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




Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring config.m4

2002-07-15 Thread Yasuo Ohgaki

Robinson, Mike wrote:
 
 Edin Kadribasic writes:
 
   Sent: Monday, July 15, 2002 12:05 PM
   To: [EMAIL PROTECTED]; Jani Taskinen; Yasuo Ohgaki
   Subject: Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring config.m4
  
  
I asked to php-dev and nobody objects enabling mbstirng by
default. This allow some modules (extif, mailparse(?), for example)
to use multibyte feature.
  
   No objections here.
 
 Frankly, I don't think mbstring should be enabled by default.

  If a user wants mbstring support, is it too much to ask to
  have them add --enable-mbstring to their config line? Once
  we go down this road, turning it off by default is a huge wtf.

You missed the fact PHP module loader/PHP ini parser do not
understand dependency at all.

We don't want bug reports such as PHP does not compile
module ABC and/or XYZ, PHP won't start for some reason,
etc.

I18N feature is must have core feature for modern languages,
IMHO, but it's free to add --disable-mbstring in users'
configure line if users understand consequences.

Anyway, automatic input tranlasation overhead is rather
small. It may be disabled manually using multipart/form-data
encoding, but it could be annoying when we are developing
true I18N website. I'll disable input encoding tranlation by
default, objections?

--
Yasuo Ohgaki



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




Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring config.m4

2002-07-15 Thread fabwash

My point of view is that:

If it's not experimental
If it compiles and runs cross platform without error
If it doesn't require external libraries
If it is properly documented
If it doesn't significantly impact performance

Then enable by default. ISPs will usually use the default options, and if
you try to get them to recompile to enable something, they will either not
do it, or take their time.

Fab.
- Original Message -
From: Yasuo Ohgaki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Robinson, Mike [EMAIL PROTECTED]; 'Edin Kadribasic'
[EMAIL PROTECTED]; Jani Taskinen [EMAIL PROTECTED]
Sent: Monday, July 15, 2002 9:03 PM
Subject: Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring config.m4


 Robinson, Mike wrote:
 
  Edin Kadribasic writes:
 
Sent: Monday, July 15, 2002 12:05 PM
To: [EMAIL PROTECTED]; Jani Taskinen; Yasuo Ohgaki
Subject: Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring config.m4
   
   
 I asked to php-dev and nobody objects enabling mbstirng by
 default. This allow some modules (extif, mailparse(?), for example)
 to use multibyte feature.
   
No objections here.
 
  Frankly, I don't think mbstring should be enabled by default.
 
   If a user wants mbstring support, is it too much to ask to
   have them add --enable-mbstring to their config line? Once
   we go down this road, turning it off by default is a huge wtf.

 You missed the fact PHP module loader/PHP ini parser do not
 understand dependency at all.

 We don't want bug reports such as PHP does not compile
 module ABC and/or XYZ, PHP won't start for some reason,
 etc.

 I18N feature is must have core feature for modern languages,
 IMHO, but it's free to add --disable-mbstring in users'
 configure line if users understand consequences.

 Anyway, automatic input tranlasation overhead is rather
 small. It may be disabled manually using multipart/form-data
 encoding, but it could be annoying when we are developing
 true I18N website. I'll disable input encoding tranlation by
 default, objections?

 --
 Yasuo Ohgaki



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



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




[PHP-DEV] Re: ob_implict_flush()

2002-07-15 Thread Yasuo Ohgaki

Dejan Markic wrote:
 Hello!
 
 If output_buffering in PHP is set and you issue ob_implict_flush() it does
 not work. I guess it will still buffer those 4096 bytes. Is this a bug or a
 feature? I think it would be better if this ob_implict_flush() would work
 even if output_buffering is set since this is what you're explictly trying
 to set with this function. Just a tought maybe.
 

It's a feature that is not implemented yet.

When I fixed memory problem with ob_implicit_flush(), I didn't implement
the feature that does implicit flush/flush. (You can find my posts in
archive somewhere in php-dev or php-cvs)

Someone needs to wirte code to flush contents in nested output buffers.

PS: Don't ask can we go back to old behavior?, since not only
it did not work with nested output buffer, but also it broke memory and
PHP misbehaves badly including executing scripts multiple times.

--
Yasuo Ohgaki



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




[PHP-DEV] CVS Account Request: bobo

2002-07-15 Thread Jason O Kaminsky

James Cox said I should sign up for one, since Rackshack.net is going to be hosting 
your new server, and It will be easier to do some serverside admining this way

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




RE: [PHP-DEV] CVS Account Request: bobo

2002-07-15 Thread James Cox

Actually,

Jason will be a primary contact at Rackshack for us (providing a new
server), so is signing up to be able to help us out (and so he has a email
address for peopel to mail him about this too).

he just got in a bit early. :)

 -- james


 James Cox said I should sign up for one, since Rackshack.net is
 going to be hosting your new server, and It will be easier to do
 some serverside admining this way

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




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




[PHP-DEV] OOH Forms ?

2002-07-15 Thread DoL

Hi there

I came across with some reference indicating there was a library called OOH
forms, wondering if anyone knows about the status of that lib, or has those
features been incorporated into some others?  OR simply, Is there any
similar one, thanks.

/dl



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




[PHP-DEV] CVS Account Request: eshare

2002-07-15 Thread yixia peng

do some translation work

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




Re: [PHP-DEV] OOH Forms ?

2002-07-15 Thread Arnaud Limbourg

Hello,

There is such a library, you can find it in PEAR.

It needs some cleanup and improvements though.

Arnaud.

 Hi there
 
 I came across with some reference indicating there was a library called OOH
 forms, wondering if anyone knows about the status of that lib, or has those
 features been incorporated into some others?  OR simply, Is there any
 similar one, thanks.
 
 /dl

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