Re: [PHP] Using setters/getters with array of objects

2009-10-20 Thread mbneto
Hi,

Thanks.  I'll probably do the addEmail method.  I was hoping to do as with
the other non-array properties.


On Sun, Oct 18, 2009 at 1:00 PM, Andy Shellam (Mailing Lists)
andy-li...@networkmail.eu wrote:

 Hi,


 $u-emails[] = $e;


 I would hazard a guess because $u-emails isn't a concrete object (whereas
 $u-_emails is, but is private.)  It's sort of a virtual reference - PHP has
 no way of knowing that $u-emails actually translates into _emails which is
 an array, if you see what I mean (it's difficult to explain.)


 But that does not work.  I've managed to achieve similar result using a
 different setter in User

public function __set($name, $value)
{
$property = '_' . $name;

switch($name)
{
case 'emails':
array_push($this-$property, $value);
break;

default:
   $this-$property = $value;
}
}


 You could also have done:

 if (is_array($this-$property))
 {
 array_push($this-$property, $value);
 }
 else
 {
 $this-$property = $value;
 }

 which would handle any array property, not just the e-mails property.

 If this was me, I would probably create a concrete method, called
 addEmail which would do $this-_emails[] = $value, but allow a programmer
 to call $user-emails to get the e-mails (not set.)




Re: [PHP] Using setters/getters with array of objects

2009-10-20 Thread mbneto
Hi Tommy,

I've found both approaches (using setter/getter) as
recommended/non-recommended in documentation so this will be a difficult
decision.Unfortunately I'll not be able to take your way since the Email
class (simplified in the example) is going to be used in other classes as
well.


On Sun, Oct 18, 2009 at 1:24 PM, Tommy Pham tommy...@yahoo.com wrote:

 - Original Message 
  From: mbneto mbn...@gmail.com
  To: php-general@lists.php.net
  Sent: Sun, October 18, 2009 8:31:53 AM
  Subject: [PHP] Using setters/getters with array of objects
 
  Hi,
 
  I have two classes User and Email where one User can have many Emails so
  I've done like this
 
  class Email
  {
  protected $_email;
 
  public function __get($name)
  {
  $property = '_' . $name;
  return $this-$property;
  }
 
  public function __set($name, $value)
  {
  $property = '_' . $name;
  $this-$property = $value;
  }
  }
 
 
  class User
  {
  protected $_name;
  protected $_emails = array();
 
  public function __get($name)
  {
  $property = '_' . $name;
  return $this-$property;
  }
 
  public function __set($name, $value)
  {
  $property = '_' . $name;
  $this-$property = $value;
  }
 
  }
 
  So I'd like to
 
  $u = new User();
  $u-name = '';
 
  $e = new Email();
  $e-email = 'x...@.com';
 
  $u-emails[] = $e;
 
  But that does not work.  I've managed to achieve similar result using a
  different setter in User

 Of course it doesn't work because you didn't have 'set' method for the
 protected $_emails.
 http://www.php.net/manual/en/language.oop5.visibility.php

 
  public function __set($name, $value)
  {
  $property = '_' . $name;
 
  switch($name)
  {
  case 'emails':
  array_push($this-$property, $value);
  break;
 
  default:
 $this-$property = $value;
  }
  }
 
  And then
 
  $u = new User();
  $u-name = '';
 
  $e = new Email();
  $e-email = 'x...@.com';
 
  $u-emails = $e;
 
  But this can confuse the programmer.  Any ideas of why it is not working?

 I suggest you don't use magic methods as it's too ambiguous and hard to
 expand your code later.  Your 2 classes could be summarized as 1 class
 below:

 class User
 {
protected $_name;
protected $_emails = array();

 public function getName()
{
return $this-_name;
}

public function setName($value)
{
$this-_name = $value;
}

public function getEmails() {
return $this-_emails();
}

public function setEmails($arrayList) {
  $this-_emails = $arrayList;
}

   public function setEmail($name, $value) {
   $this-_emails[$name] = $value;
   }

   public fuction getEmail($name) {
  if (isset($this-_emails[$name]))
 return $this-_emails[$name];
  else
 return null;
   }
 }

 $u = new User();
 $u-setName('jon doe');
 $u-setEmail('email1', 'j...@inter.net');

 Regards,
 Tommy


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




[PHP] Using setters/getters with array of objects

2009-10-18 Thread mbneto
Hi,

I have two classes User and Email where one User can have many Emails so
I've done like this

class Email
{
protected $_email;

public function __get($name)
{
$property = '_' . $name;
return $this-$property;
}

public function __set($name, $value)
{
$property = '_' . $name;
$this-$property = $value;
}
}


class User
{
protected $_name;
protected $_emails = array();

public function __get($name)
{
$property = '_' . $name;
return $this-$property;
}

public function __set($name, $value)
{
$property = '_' . $name;
$this-$property = $value;
}

}

So I'd like to

$u = new User();
$u-name = '';

$e = new Email();
$e-email = 'x...@.com';

$u-emails[] = $e;

But that does not work.  I've managed to achieve similar result using a
different setter in User

public function __set($name, $value)
{
$property = '_' . $name;

switch($name)
{
case 'emails':
array_push($this-$property, $value);
break;

default:
   $this-$property = $value;
}
}

And then

$u = new User();
$u-name = '';

$e = new Email();
$e-email = 'x...@.com';

$u-emails = $e;

But this can confuse the programmer.  Any ideas of why it is not working?


Re: [PHP] re-compiling PHP on Mac OS X

2008-01-23 Thread mbneto
Hi,

I've checked all pages and downloaded the php5.2.5.release1.tar.gz (the
latest I found) but I get the same errors

httpd: Syntax error on line 484 of /private/etc/apache2/httpd.conf: Syntax
error on line 8 of /private/etc/apache2/other/entropy-php.conf: Cannot load
/usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so,
10): Symbol not found: _xmlTextReaderSchemaValidate\n  Referenced from:
/usr/local/php5/libphp5.so\n  Expected in: /usr/lib/libxml2.2.dylib\n

Does anyone have a working .dmg/.tar.gz for 10.5.1 Mac Intel with PDO/Mysql
working?

-thanks.

On Dec 17, 2007 1:23 PM, David Powers [EMAIL PROTECTED] wrote:

 Frank Arensmeier wrote:
  When you install PHP5 with the package from entropy.ch, the new PHP5
  will install under /usr/local/php5.

 The Mac package from entropy.ch is not compatible with Leopard (Mac OS X
 10.5). Marc Liyanage is working on a Leopard-compatible version. Check
 the forum on his site for the latest details. There's an extremely long
 thread about PHP on Leopard. A command line installation is somewhere
 around page 15 of the thread.

 --
 David Powers

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




[PHP] Different behaviour : command line / cron

2007-04-17 Thread mbneto

Hi,

I've developed a simple script that among other things sends a fax using
hylafax's sendfax program.   If I test it calling directly from the command
line it works fine.

If I let it run from cron it executes everything fine except the fax.

I am using the system call and in order to debug I am using the following
code

...
$cmd = sprintf('/usr/bin/sendfax -n -d %s %s',$fax,$file) ;
mail ([EMAIL PROTECTED], fax, $cmd.\n.system($cmd));
...

The output from the command line (/usr/bin/php /path/to/file/script.php)

/usr/bin/sendfax -n -d fax_number /tmp/fax.txt
request id is 471 (group id 471) for host localhost (1 file)

The output when it executed from cron (*/1 * * * * /usr/bin/php
/path/to/file/script.php)

/usr/bin/sendfax -n -d fax_number /tmp/fax.txt

In both cases the fax.txt has the same content.

Any idea why and how to solve it?


[PHP] Problems with Curl and POST

2007-04-16 Thread mbneto

Hi,

I am tring to use curl to access, via POST, a remote 'service'.I've
managed to test it fine but when I use real data to feed the curl it gives
me strange results.

When I check the logs of the remote web server one thing that alarms me is
that with test data I see

A.B.C.D - - [16/Apr/2007:17:41:53 -0400] POST /service.php HTTP/1.1 200 61

with real data (using the same script)

A.B.C.D - - [16/Apr/2007:17:48:55 -0400] HEAD /service.php HTTP/1.1 200 -

After reading the user contributed notes I found that it must be related
with encoding.  But even if I use the suggested code

$o=;foreach ($post_data as $k=$v)
   {$o.=
$k=.utf8_encode($v).;}
   $post_data=substr($o,0,-1);

   curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);

I get the same results.

Any tips?

php 5.0.4


Re: [PHP] Problems with Curl and POST

2007-04-16 Thread mbneto

Hi Richard,

I am using the same script.  And it is using the CURLOPT_POST.

- mb

On 4/16/07, Richard Lynch [EMAIL PROTECTED] wrote:


HEAD is just like GET, only it gets just the headers (hence the name)
usually to see if the document has changed according to LastModified:
before doing a full-blown GET.

There shouldn't be a HEAD done before a POST...

Are you sure you are doing a CURLOPT_POST and not CURLOPT_GET...?

On Mon, April 16, 2007 4:43 pm, mbneto wrote:
 Hi,

 I am tring to use curl to access, via POST, a remote 'service'.
 I've
 managed to test it fine but when I use real data to feed the curl it
 gives
 me strange results.

 When I check the logs of the remote web server one thing that alarms
 me is
 that with test data I see

 A.B.C.D - - [16/Apr/2007:17:41:53 -0400] POST /service.php HTTP/1.1
 200 61

 with real data (using the same script)

 A.B.C.D - - [16/Apr/2007:17:48:55 -0400] HEAD /service.php HTTP/1.1
 200 -

 After reading the user contributed notes I found that it must be
 related
 with encoding.  But even if I use the suggested code

 $o=;foreach ($post_data as $k=$v)
 {$o.=
 $k=.utf8_encode($v).;}
 $post_data=substr($o,0,-1);

 curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);

 I get the same results.

 Any tips?

 php 5.0.4



--
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?




Re: [PHP] Unable to compile php with MSSQL support / configure: error: Directory /usr is not a FreeTDS installation directory

2007-01-12 Thread mbneto

Hi Frank,

The problem gets stranger...

I've downloaded the 5.1.6 and guess what? the ./configure --with-mssql runs
fine in the same machine...

5.0.4
./configure --with-mssql
...
checking for MSSQL support via FreeTDS... yes
configure: error: Cannot find FreeTDS in known installation directories

5.1.6
./configure --with-mssql
...
checking for MSSQL support via FreeTDS... yes
checking for dnet_addr in -ldnet_stub... (cached) no
checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
...
make
...
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

On 1/11/07, Frank M. Kromann [EMAIL PROTECTED] wrote:


The only other thing I can think of is permissions, but that would be too
simple.

- Frank

 Hi Frank,

 Thanks for the reply but  the tds.h is located under
/usr/include/freetds
 but the error persists.

 Any other ideas?

 On 1/10/07, Frank M. Kromann [EMAIL PROTECTED] wrote:
 
  Hi,
 
  --with-mssql=/usr or --with-mssql=shared,/user should work with your
  configuration. It's looking for /usr/include/tds.h or
  /usr/include/freetds/tds.h. If the file was not found in any of those
  locations you will get the error you are describing here.
 
  - Frank
 
 
 







Re: [PHP] Unable to compile php with MSSQL support / configure: error: Directory /usr is not a FreeTDS installation directory

2007-01-11 Thread mbneto

Hi Frank,

Thanks for the reply but  the tds.h is located under /usr/include/freetds
but the error persists.

Any other ideas?

On 1/10/07, Frank M. Kromann [EMAIL PROTECTED] wrote:


Hi,

--with-mssql=/usr or --with-mssql=shared,/user should work with your
configuration. It's looking for /usr/include/tds.h or
/usr/include/freetds/tds.h. If the file was not found in any of those
locations you will get the error you are describing here.

- Frank





[PHP] Unable to compile php with MSSQL support / configure: error: Directory /usr is not a FreeTDS installation directory

2007-01-10 Thread mbneto

Hi,

I am trying to compile php 5.0.6 with mssql support with no luck.

I have freetds, freetds-devel but no luck so far.

I've tried the simplest form and some variations variations
./configure --with-mssql
./configure --with-mssql=/usr
./configure --with-mssql=shared,/usr
./configure --with-mssql=shared,/usr/lib
...

All end up with

checking for MSSQL support via FreeTDS... yes
configure: error: Directory /usr is not a FreeTDS installation directory

My rpm -ql of freetds freetds-devel shows

/etc/freetds.conf
/etc/locales.conf
/etc/pool.conf
/usr/bin/bsqldb
/usr/bin/defncopy
/usr/bin/freebcp
/usr/bin/tdspool
/usr/bin/tsql
/usr/lib/libct.so.3
/usr/lib/libct.so.3.0.0
/usr/lib/libsybdb.so.5
/usr/lib/libsybdb.so.5.0.0
/usr/lib/libtds.so.4
/usr/lib/libtds.so.4.0.0
/usr/lib/libtdsodbc.so.0
/usr/lib/libtdsodbc.so.0.0.0
/usr/lib/libtdssrv.so.2
/usr/lib/libtdssrv.so.2.0.0
/usr/share/doc/freetds-0.63
/usr/share/doc/freetds-0.63/AUTHORS
/usr/share/doc/freetds-0.63/BUGS
/usr/share/doc/freetds-0.63/COPYING
/usr/share/doc/freetds-0.63/COPYING.LIB
/usr/share/doc/freetds-0.63/ChangeLog
/usr/share/doc/freetds-0.63/NEWS
/usr/share/doc/freetds-0.63/README
/usr/share/doc/freetds-0.63/TODO
/usr/share/doc/freetds-0.63/api_status.txt
/usr/share/doc/freetds-0.63/bcp.txt
/usr/share/doc/freetds-0.63/bsqldb.txt
/usr/share/doc/freetds-0.63/cap.txt
/usr/share/doc/freetds-0.63/defncopy.txt
/usr/share/doc/freetds-0.63/freebcp.txt
/usr/share/doc/freetds-0.63/getting_started.txt
/usr/share/doc/freetds-0.63/policy.txt
/usr/share/doc/freetds-0.63/tds.html
/usr/share/doc/freetds-0.63/tsql.txt
/usr/share/doc/freetds-0.63/userguide.sgml
/usr/share/man/man1/bsqldb.1.gz
/usr/share/man/man1/defncopy.1.gz
/usr/share/man/man1/freebcp.1.gz
/usr/share/man/man1/tsql.1.gz
/usr/include/freetds
/usr/include/freetds/bkpublic.h
/usr/include/freetds/cspublic.h
/usr/include/freetds/cstypes.h
/usr/include/freetds/ctpublic.h
/usr/include/freetds/sqldb.h
/usr/include/freetds/sqlfront.h
/usr/include/freetds/sybdb.h
/usr/include/freetds/syberror.h
/usr/include/freetds/sybfront.h
/usr/include/freetds/tds.h
/usr/include/freetds/tds_sysdep_public.h
/usr/include/freetds/tdsconvert.h
/usr/include/freetds/tdssrv.h
/usr/include/freetds/tdsver.h
/usr/lib/libct.a
/usr/lib/libct.so
/usr/lib/libsybdb.a
/usr/lib/libsybdb.so
/usr/lib/libtds.a
/usr/lib/libtds.so
/usr/lib/libtdsodbc.a
/usr/lib/libtdsodbc.so
/usr/lib/libtdssrv.a
/usr/lib/libtdssrv.so
/usr/share/doc/freetds-devel-0.63
/usr/share/doc/freetds-devel-0.63/samples
/usr/share/doc/freetds-devel-0.63/samples/Makefile
/usr/share/doc/freetds-devel-0.63/samples/Makefile.am
/usr/share/doc/freetds-devel-0.63/samples/Makefile.in
/usr/share/doc/freetds-devel-0.63/samples/README
/usr/share/doc/freetds-devel-0.63/samples/debug.c
/usr/share/doc/freetds-devel-0.63/samples/dyntest.c
/usr/share/doc/freetds-devel-0.63/samples/odbc.ini
/usr/share/doc/freetds-devel-0.63/samples/odbctest.php
/usr/share/doc/freetds-devel-0.63/samples/odbctest.pl
/usr/share/doc/freetds-devel-0.63/samples/test.php
/usr/share/doc/freetds-devel-0.63/samples/test.pl
/usr/share/doc/freetds-devel-0.63/samples/unixodbc.freetds.driver.template
/usr/share/doc/freetds-devel-0.63
/samples/unixodbc.freetds.driver.template.in
/usr/share/doc/freetds-devel-0.63/samples/unixodbc.install.sh
/usr/share/doc/freetds-devel-0.63/samples/unixodbc.jdbc.datasource.template


Re: [PHP] Problems with UTF

2006-09-01 Thread mbneto

Hi Peter,

I am returning XML from my php script so I should use the charset in my XML
header?

The database (which holds the data) should be set to utf8 and the same thing
in the XML header, right?

On 8/28/06, Peter Lauri [EMAIL PROTECTED] wrote:


Hi,

Have you set

header('Content-Type: text/html; charset=utf-8');

in your php script that you call via AJAX?

Best regards,
Peter

PS! I assumed you were not sending any variables with the AJAX request? If
so, you would need to do an utf-8 encoding of the variables and then a
base64 encoding to make sure the arrive correctly. Of course you would
after
that need to decode the variables with base64_decode in your PHP script
DS!


-Original Message-
From: mbneto [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 2:57 AM
To: php-general@lists.php.net
Subject: [PHP] Problems with UTF

Hi,

I have a php based script that is called from a html page via ajax.
Everything runs fine except when I use characters such as á that ends up
like A!

After searching and testing I found that if I remove the
encodeURIComponentfrom the javascript and replace with
escape everything works fine.

So the question is what can I do from PHP side to make it play nice with
those UTF encoded chars generated from encodeURIComponent?  Since escape
is
deprecated I'd like to find out before I have tons of files to change

tks.




[PHP] Problems with UTF

2006-08-28 Thread mbneto

Hi,

I have a php based script that is called from a html page via ajax.
Everything runs fine except when I use characters such as á that ends up
like A!

After searching and testing I found that if I remove the
encodeURIComponentfrom the javascript and replace with
escape everything works fine.

So the question is what can I do from PHP side to make it play nice with
those UTF encoded chars generated from encodeURIComponent?  Since escape is
deprecated I'd like to find out before I have tons of files to change

tks.


Re: [PHP] Re: PHP 5, Windows, and MySQL

2006-08-22 Thread mbneto

Hi,

I did that but my apache+php still does not recognize the mysql extension.
I get no error messages while staring the server but phpInfo does not show
the mysql support...

php 5.1.4, mysql 5.0.22, apache 2.0.58

On 6/27/06, Jeremy Schreckhise [EMAIL PROTECTED] wrote:


Here is the direct download portal for the two corrected crucial .dlls.


http://dev.mysql.com/downloads/connector/php/

-Original Message-
From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 10:14 AM
To: php-general@lists.php.net
Subject: [PHP] Re: PHP 5, Windows, and MySQL

I ran into the same problems; here is how I solved them.

1.  Install MySQL 5
2.  Install PHP 5
3.  Modify php.ini extensions directive to point to php_mysql.dll (the
one that was packaged with php 5)
4.  Here is the tricky one make sure mysql is finding the libmysql.dll
packaged WITH MYSQL NOT PHP;
5.  net stop mysql
6.  net start mysql
7.  work hard; play hard


-Original Message-
From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED]
Sent: Monday, June 26, 2006 8:13 PM
To: php-general@lists.php.net
Subject: [PHP] Re: PHP 5, Windows, and MySQL

I've got it running fine on my windows.

Mysql 5.0.19
PHP 5.1.4

I just activate php_mysql.dll and php_mysqli.dll.

Which versions of php and mysql are you using?

Beauford [EMAIL PROTECTED] escreveu na mensagem

news:!!AAAYAFzLTDhDwWBHpzgX5w1qDiPigAAAEJiz/MDHLf9Fmsyy
[EMAIL PROTECTED]
 Aside from my previous gd problems, here's another problem. It appears
 that
 PHP5 (for Windows anyways) does not support MySQL (which in itself is
 riduculous), but here's my problem. I have a script I just downloaded
 that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on
 Windows 2000 with PHP 4.4 I get a page full of errors. Lets forget
 about the errors, does anyone have any idea how to get PHP5 and MySQL
 to work on Windows. I have already tried 100 different variations of
 things from information I found searching out this problem, but maybe
 someone has a new idea.

 If it were me I'd just run this site on Linux, but this is for a
 friend who wants to use IIS. If your curious the errors are below.

 Thanks

 B

 Warning: mysql_numrows(): supplied argument is not a valid MySQL
 result resource in G:\Websites\Webtest\caalogin\include\database.php
 on line 207

 Warning: mysql_numrows(): supplied argument is not a valid MySQL
 result resource in G:\Websites\Webtest\caalogin\include\database.php
 on line 218

 Warning: session_start(): Cannot send session cookie - headers already
 sent by (output started at
 G:\Websites\Webtest\caalogin\include\database.php:207)
 in G:\Websites\Webtest\caalogin\include\session.php on line 46

 Warning: session_start(): Cannot send session cache limiter - headers
 already sent (output started at
 G:\Websites\Webtest\caalogin\include\database.php:207) in
 G:\Websites\Webtest\caalogin\include\session.php on line 46

 Warning: mysql_numrows(): supplied argument is not a valid MySQL
 result resource in G:\Websites\Webtest\caalogin\include\database.php
 on line 218

 Warning: mysql_numrows(): supplied argument is not a valid MySQL
 result resource in G:\Websites\Webtest\caalogin\include\database.php
 on line 207

 Warning: mysql_numrows(): supplied argument is not a valid MySQL
 result resource in G:\Websites\Webtest\caalogin\include\database.php
 on line 218

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

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

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




[PHP] Proper configuration of safe mode

2006-07-12 Thread mbneto

Hi,

I'd like to enable safe mode in my current setup but it seems that I am
doing something wrong.

I have configure a webmail (IMP) and I can access my messages fine but when
I try to send a new one I get error message in my log

Jul 12 15:00:44 HORDE [error] [imp] sendmail [/var/www/phpexecdir/sendmail]
is not a valid file [on line 1042 of /var/www/html/horde/imp/compose.php]

My webserver configuration

Directory /var/www/html/horde/
  php_admin_flag safe_mode On
  php_admin_value upload_tmp_dir /var/www/html/horde/tmp
  php_admin_value safe_mode_include_dir
/usr/share/pear:/var/www/html/horde/
  php_admin_value open_basedir
.:/usr/share/pear:/var/www/html/horde/
  php_admin_value safe_mode_exec_dir
/var/www/phpexecdir/
/Directory

I have copied sendmail from it's original location to this new one.

Any tips?


Re: [PHP] Proper configuration of safe mode

2006-07-12 Thread mbneto

Hi Jochem,

Thanks for the reply.

What is wrong with my openbase_dir setting? (yes I've already read the
manual - http://www.php.net/manual/en/features.safe-mode.php - before
posting my first message).

Since safe mode will be deprecated what is (will be) the alternative?

On 7/12/06, Jochem Maas [EMAIL PROTECTED] wrote:


mbneto wrote:
 Hi,

 I'd like to enable safe mode in my current setup but it seems that I am
 doing something wrong.

have a look at the open_base_dir ini setting.
IIRC safe_mode is being depreciated and will eventually be phased out.


 I have configure a webmail (IMP) and I can access my messages fine but
when
 I try to send a new one I get error message in my log

 Jul 12 15:00:44 HORDE [error] [imp] sendmail
[/var/www/phpexecdir/sendmail]
 is not a valid file [on line 1042 of
/var/www/html/horde/imp/compose.php]

 My webserver configuration

 Directory /var/www/html/horde/
   php_admin_flag safe_mode On
   php_admin_value upload_tmp_dir /var/www/html/horde/tmp
   php_admin_value safe_mode_include_dir
 /usr/share/pear:/var/www/html/horde/
   php_admin_value open_basedir
 .:/usr/share/pear:/var/www/html/horde/
   php_admin_value safe_mode_exec_dir
 /var/www/phpexecdir/
 /Directory

 I have copied sendmail from it's original location to this new one.

 Any tips?





[PHP] Strange lockup - using curl

2006-06-13 Thread mbneto

Hi,

I am facing a strange problem.  I have a script that runs fine in one server
but simply locks up in another.

I´ve managed to find that when the curl_exec is called the problem appears,
so I decided to use a sample script with the same example found at
ww.php.net and got the same results.

The server-status shows me

SrvPIDAccMCPU SSReqConnChildSlotClientVHostRequest *0-0*201700/2/2*W* 0.00
27800.00.030.03 201.51.28.217myhost.comGET /temp/curl.php HTTP/1.1
I used strace with the pid shown

# strace  -p 20170
Process 20170 attached - interrupt to quit
select(1589, [], [], NULL, {0, 685000}) = 0 (Timeout)
gettimeofday({1150235209, 865596}, NULL) = 0
gettimeofday({1150235209, 866753}, NULL) = 0
select(1589, [], [], NULL, {1, 0})  = 0 (Timeout)
gettimeofday({1150235210, 868349}, NULL) = 0
gettimeofday({1150235210, 869048}, NULL) = 0
select(1589, [], [], NULL, {1, 0})  = 0 (Timeout)
gettimeofday({1150235211, 870045}, NULL) = 0
gettimeofday({1150235211, 870598}, NULL) = 0
select(1589, [], [], NULL, {1, 0})  = 0 (Timeout)
gettimeofday({1150235212, 870965}, NULL) = 0
gettimeofday({1150235212, 871669}, NULL) = 0
select(1589, [], [], NULL, {1, 0})  = 0 (Timeout)
gettimeofday({1150235213, 903386}, NULL) = 0
gettimeofday({1150235213, 930348}, NULL) = 0

But I do not have a clue about this.

The script.

?php

$ch = curl_init();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, http://www.myhost.com/;);
curl_setopt($ch, CURLOPT_HEADER, 0);

// grab URL and pass it to the browser
curl_exec($ch);


// close curl resource, and free up system resources
curl_close($ch);

?


Re: [PHP] Generating thumbnails from tiff images

2006-05-29 Thread mbneto

by package I mean an external program (outside apache).

On 5/25/06, Jay Blanchard [EMAIL PROTECTED] wrote:


[snip]
I'd like to use GD instead of ImageMagick beacuse I would not want to
install extra packages if I can.
[/snip]

GD is an extra package.




Re: [PHP] Generating thumbnails from tiff images

2006-05-25 Thread mbneto

Jay,

I am not quite sure if you've made sarcastic comments but to make things
more clear...

I'd like to use GD instead of ImageMagick beacuse I would not want to
install extra packages if I can.

When I mentioned that I use convert I said 'when GD is not available...'  So
I have alternatives: if there is no GD support go with ImageMagick.  If
there is support use GD.

On 5/22/06, Jay Blanchard [EMAIL PROTECTED] wrote:


[snip]
I know the imagemagick tools. I use convert when I need to perform
operations on images and gd is not available.

I'd like an alternative without having to install any extra packages
specially that in this case the scripts will be hosted in a win32 machine
(windows xp).
[/snip]

Ah. Well. You could have saved me the effort by being more descriptive in
your first post.

1. Doesn't want to use GD. Check.
2. Doesn't want to use Imagemagick. Check.
3. Doesn't want to install extra packages. Check.
4. SOL. Check.



Re: [PHP] Generating thumbnails from tiff images

2006-05-25 Thread mbneto

Hi,

Is this a non documented api?

http://www.php.net/manual/en/ref.image.php  does not show this.

On 5/23/06, Richard Lynch [EMAIL PROTECTED] wrote:


On Mon, May 22, 2006 5:10 pm, mbneto wrote:
 I am looking for sample code/class that can generate a thumbnail (can
 be a
 png/jpeg) image from a tiff image.  So far I've only found examples
 using
 png/jpg/gif as input.

In those examples, change the line that reads:
imagecreatefromjpeg(...)
to
imagecreatefromtiff(...)

That's pretty much it...

--
Like Music?
http://l-i-e.com/artists.htm





[PHP] Generating thumbnails from tiff images

2006-05-22 Thread mbneto

Hi,

I am looking for sample code/class that can generate a thumbnail (can be a
png/jpeg) image from a tiff image.  So far I've only found examples using
png/jpg/gif as input.

Any tips?


Re: [PHP] Generating thumbnails from tiff images

2006-05-22 Thread mbneto

Hi Jay,

I know the imagemagick tools.  I use convert when I need to perform
operations on images and gd is not available.

I'd like an alternative without having to install any extra packages
specially that in this case the scripts will be hosted in a win32 machine
(windows xp).

On 5/22/06, Jay Blanchard [EMAIL PROTECTED] wrote:


[snip]
I am looking for sample code/class that can generate a thumbnail (can be
a
png/jpeg) image from a tiff image.  So far I've only found examples
using
png/jpg/gif as input.

Any tips?
[/snip]


http://www.imagemagick.org/



Re: [PHP] Download image in PHP

2006-04-05 Thread mbneto
Hi,

If all you want to do is this as a suggestion (altough not php
related) you could call wget from your php script to fetch this image
without having to worry with other things.

Something like this

exec ('/path/to/wget http://www.foo.com/bar.jpg');

Of course you'd have to check if everything went fine.

On 4/5/06, Russell Jones [EMAIL PROTECTED] wrote:
 I have an image library on one site that I want to be able to access from
 another, but I actually want the image downloaded and cached to the new site
 (so that it doesnt keep taxing the image server).

 I allow the file() command to pull from other sites, can I do this with just
 the file('http://www.site.com/image.jpg;); - or how would i do this?

 Russ



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



[PHP] Use sqlite with php 4.4 ?

2005-10-28 Thread mbneto
Hi,

is it possible to use sqlite with php 4.4 ?   What do I have to do ?

I could not find and option in ./configure.

tks.

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



[PHP] news php 5.0.5/5.1

2005-06-11 Thread mbneto
Hi,

I've looked at php.net but could not find info regarding if/when are
we going to have further 5.0.x versions and what will change in php
5.1.

Any pointers (besides the php-devel) ?

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



Re: [PHP] Re: Unit testing ?

2005-06-05 Thread mbneto
Hi Matthew,

Thanks for the reply.  Your email confirmed what I've read/thought
about the tests.

I'll look this SimpleTest even tough PHPUnit2 seems to do the job fine.

If you have more info (like books, urls, examples) please send me.

regards.


On 6/2/05, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote:
 * mbneto [EMAIL PROTECTED]:
  I am trying the phpunit2 for unit testing but the examples found in
  the documentation are few and do not address, for example, tests when
  database access is involved.
 
  Perhaps this belongs to a more general question (i.e strategies for
  unit testing) so any urls, docs would be great.
 
 Jason Sweat covered this at php|Tropics, using SimpleTest as the unit
 testing framework. I use phpt unit tests (developed for testing php
 itself, and used by the PEAR project for regression tests). The
 principles are the same regardless of framework, however.
 
 The fundamental problem is: your code may depend on the results of a DB
 operation -- it's primary purpose may even be to perform a DB operation.
 While you can test the code, you still need to test whether or not your
 code can successfully perform the DB operation as well. A common problem
 I find is that I'm building SQL on the fly -- and that process may build
 shoddy SQL. It may be building exactly what I designed it to do, but the
 RDBMS will never be able to actually utilize the SQL I build. Tests can
 help catch these issues.
 
 Basically, when testing code that interacts with a database, you've got
 two basic strategies: (1) test against the DB, or (2) use mock objects.
 The latter is a tricky subject, as it assumes you're using a DB
 abstraction layer, and because you then have to mimic how that
 abstraction layer works. Basically, you end up doing a lot of code
 simply to test.
 
 Which brings us back to (1), test against the DB.
 
 The way to do this is to have some code that sets up and tears down a
 TEST database -- not the one with your live data. It should likely
 create and populate any tables you need, and then be able to tear them
 down again. The reason behind this is that you can then have a set of
 consistent data to test against -- once you run tests, chances are
 likely that you've altered the data.  Each test you run should tear down
 the DB and then recreate and/or repopulate it.
 
 If you use the phpt unit tests, the place to do this is in your
 setup.php.inc file. I then create a file with the raw SQL for
 setting up and populating a test table, slurp it in with
 file_get_contents, and pass it on to the DB from within a function in
 that setup file. Then another function can truncate or delete all
 records from the tables utilized.
 
 The code within the test might then look like this:
 
 ?php
 include_once dirname(__FILE__) . '/setup.php.inc';
 
 setupDb();
 // do a test
 teardownDb();
 
 setupDb();
 // do another test
 teardownDb();
 ?
 
 That's kind of a long-winded answer to your question, but it's not
 something you see a lot of information on. I hope that it helps.
 
 --
 Matthew Weier O'Phinney   | WEBSITES:
 Webmaster and IT Specialist   | http://www.garden.org
 National Gardening Association| http://www.kidsgardening.com
 802-863-5251 x156 | http://nationalgardenmonth.org
 mailto:[EMAIL PROTECTED] | http://vermontbotanical.org
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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



[PHP] Unit testing ?

2005-06-02 Thread mbneto
Hi,

I am trying the phpunit2 for unit testing but the examples found in
the documentation are few and do not address, for example, tests when
database access is involved.

Perhaps this belongs to a more general question (i.e strategies for
unit testing) so any urls, docs would be great.

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



Re: [PHP] Re: Same sessions / different domains

2005-05-14 Thread mbneto
Hi,

They are in the same machine. My major concern is with security and
the hability to make sure if a user logs in, or adds something to a
shopping cart in one domain it will be available to the other
domain.

Can I set call setCookie twice with the same variable name but
different domain ?  I could set the sessionid and call session_start
with the propagated id when/if a user crosses from one domain to
another.

- mb

On 5/14/05, Richard Lynch [EMAIL PROTECTED] wrote:
 
 
 On Fri, May 13, 2005 1:06 am, Marek Kilimajer said:
  Richard Lynch wrote:
  On Thu, May 12, 2005 6:58 am, Shaun said:
 
 $_SERVER['HTTP_HOST']
 
 Mbneto [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Hi,
 
 I need to access a website (written in php) using two different
 domains (www.foo.com and www.bar.com). I must see the same content.
 
 Since the site uses session and cookie variables I was wondering if
 (and how) it's possible to create a session id that is valid for the
 domains I'll be using...
 
 
  There is no built-in way to just tell the browser that it's okay for
  cookie X to work for both foo.com and bar.com
 
  You will have to write some code that passes the cookie name/value
  between
  foo.com and bar.com
 
  You might have a special script like 'propogate_cookie.php' something
  like:
  ?php
$var = $_REQUEST['var'];
$value = $_REQUEST['value'];
setcookie($var, $value);
  ?
 
  Put this on both servers, and then when somebody surfs to foo.com you
  do:
  ?php
session_start();
$file =
  file(http://bar.com/propogate_cookie.php?var=PHPSESSIDvalue=;
  . session_id());
  ?
 
  The above will deadlock. session_start() locks the session file, then
  you try to read from http://bar.com/propogate_cookie.php, this script
  will try to use the same session file, but it will be never unlocked.
 
  Propagating session id in url when linking across domains and having
  common session storage is completely sufficient. If you are concerned
  user might browse to the other domain by other means than using a link
  from the first domain, you can use a 1x1 pixel image linking to the
  other domain with session id in url.
 
 I was actually thinking of foo and bar as totally separate machines when I
 typed that, mostly.
 
 But I'm not quite convinced that doing a setcookie on bar.com is going to
 deadlock the session from foo.com, even if they use the same file-system.
 
 It will deadlock if the user tries to have foo and bar windows open at
 once, or if the webmaster mixes foo and bar in a single page, but the
 setcookie all by itself should not deadlock, I don't think...
 
 --
 Like Music?
 http://l-i-e.com/artists.htm
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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



[PHP] Same sessions / different domains

2005-05-12 Thread mbneto
Hi,

I need to access a website (written in php) using two different
domains (www.foo.com and www.bar.com). I must see the same content.

Since the site uses session and cookie variables I was wondering if
(and how) it's possible to create a session id that is valid for the
domains I'll be using...

regards.

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



[PHP] Dynamic Generating reports to print

2005-04-23 Thread mbneto
Hi,

I'd like to generate reports (with tabular data) to print from php. 
Now I am using a mixed solution where I save the data in a reports
database and I have a delphi app installed pooling the db for pending
reports and print it.

My plan is move away from the current solution but I am still confused
of how am I going to get control of the layout of the report. 
Generate a PDF ? Use CSS ?

Some of the trick parts are, for instance, to have the same header
in all pages of the same report, if I have tabular data greater than
the height of the page continue in the next page etc.

Any tips (or code) ?

thanks.

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



[PHP] forwarding email messages directly from a maildir

2005-04-16 Thread mbneto
Hi,

I'd like to make a script that opens my maildir
(~login/Maildir/.Junk/cur) and forwards all messages to a specific
address in order to train the spam engine.

Any tips about this ?

tks.

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



[PHP] PHP 5.0.4 not generating /usr/local/bin/pear ?

2005-04-04 Thread mbneto
Hi,

I've downloaded the 5.0.4 targz and installed on a new server using
the same ./configure settings I use in a nother server that runs php
5.0.3.

I did a make/make install and everything runs fine excepth the fact
that I can no longer pear install  because there is no pear in
/usr/local/bin.

'./configure' '--with-kerberos' '--with-gd' '--with-apxs2'
'--with-xml' '--with-ftp' '--enable-session' '--enable-trans-sid'
'--with-zlib' '--enable-inline-optimization'
'--with-mcrypt=/usr/local' '--enable-sigchild' '--with-gettext'
'--with-freetype' '--with-ttf' '--with-ftp' '--enable-ftp'
'--with-jpeg-dir=/usr' '--with-mysql=/usr/include/mysql'
'--enable-soap' '--with-pear'

Any ideas?

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



[PHP] following php development

2005-03-25 Thread mbneto
hi,

I used to visit zend.com for the weekly summary but it seems that it
has not been updated in a while.

Besides the php-devel is there any other source of information about 
php's development ?

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



Re: [PHP] php 4 php 5

2005-03-14 Thread mbneto
Hi Hans,

What I am trying to avoid is having 2 copies of the same program installed...

- mb

On Sun, 13 Mar 2005 22:06:15 -0500, Hans Zaunere [EMAIL PROTECTED] wrote:
 

  Any tips regarding the configuration of php and/or apache ?
 
 Per option 1 below, they were saying two installs of Apache or one install of 
 Apache directed to use different httpd.conf files, then to use different 
 ports for each instance.  The same thing can be accomplished using two IP 
 addresses if available, instead of two different points.
 
 ---
 Hans Zaunere
 President, Founder
 
 New York PHP
 http://www.nyphp.org
 
 AMP Technology

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



Re: [PHP] php 4 php 5

2005-03-14 Thread mbneto
Simply.

My server has moved from php4 to php5 and my webmail program IMP can't
be upgraded before I find out how to do that safely for my users.

Now I have sites that need php5 and only one that does not work with it (imp).

That's why I'd like to stick with apache2 + php5 default and
apache2+php4 just for a single site hosted (the one that uses imp).

- mb


On Mon, 14 Mar 2005 16:55:09 -0500, Jason Barnett
[EMAIL PROTECTED] wrote:
 Richard Lynch wrote:
 ...
 [good stuff]
 ...
 
  Maybe if you told us WHY you need 4  5 we'd have better answers for ya.
 
 
 Agreed!  Tell us what you specifically need and we can provide better
 answers.  If you're wanting to test PHP5 with your current scripts then
 it would make sense to do exactly what Richard said.  Or if you really
 need to run it as an Apache module I suppose you could run it on a dev
 server, but you would still want Apache to be the exact same version as
 what you have on your stable / production box.
 
 --
 Teach a man to fish...
 
 NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
 STFA | http://marc.theaimsgroup.com/?l=php-generalw=2
 STFM | http://php.net/manual/en/index.php
 STFW | http://www.google.com/search?q=php
 LAZY |
 http://mycroft.mozdev.org/download.html?name=PHPsubmitform=Find+search+plugins
 
 


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



Re: [PHP] php 4 php 5

2005-03-13 Thread mbneto
Hi Hans,

Do you mean by using virtual host directives of apache ?

But how about the configuration to make requests for certain
directories to be handled by php4 or php5.

For ex.

/var/www/html/site needs php5 but /var/www/html/legacy does not
support php5 so I have to run php4.

Any tips regarding the configuration of php and/or apache ?

- thks


On Fri, 4 Mar 2005 18:13:13 -0500, Hans Zaunere [EMAIL PROTECTED] wrote:
 
 
   Is there a way to install two version of php on the same machine, and
   use them for two different users?
 
  Option 1:
  Install two copies of Apache, with different httpd.conf files, on two
  different ports.
  Somebody gets stuck using http://example.com:81 (or any port but 80) but
  this gives everything you asked for.
 
 Or make Apache listen on two IPs - if your provider will do this, or it's 
 your own box, there's not downside.  You could use two domains, or two 
 different subdomains.
 
  Option 4:
  In terms of expenses/headaches, you will probably be better off just
  buying a second machine.  Problem solved.
 
 If you get another machine, you'll need two domains or subdomains anyway.  
 Just put them on the same box, with two IPs.
 
 ---
 Hans Zaunere
 President, Founder
 
 New York PHP
 http://www.nyphp.org
 
 AMP Technology
 Supporting Apache, MySQL and PHP
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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



Re: [PHP] convert MS DOC - PDF

2005-02-27 Thread mbneto
Hi Jochem,

My system runs on linux so the com part seems to be out.

What I refer as rewrite is that the classes that I saw have some
primitives where I have to call in order to write the text, images and
so on.

Ideally I'd take my word documents, replace the dynamic parts with
special codes so when the user fills the values I'd replace such
occurencies and generate de pdf.


On Sun, 27 Feb 2005 15:14:12 +0100, Jochem Maas [EMAIL PROTECTED] wrote:
 mbneto wrote:
  Hi,
 
  I have a bunch of M$ WORD documents (rtf and doc) that I'd like to
  transform to pdf.
 
  It would simple except that I'd like to allow the user to fill a
  couple of variables (name, email, telephone) and replace this before
  if generates the pdf.
 
  After searching the net I found some classes but in order to use it
  seems that I have to rewrite the entire document and some documents
 
 how do you mean 'rewrite' exactly? if the it takes 3 lines of code
 but the PDF is generated twice do you really care too much? (maybe
 you have specific speed/thruput requirements?)
 
  have tables/images.
 
  Any tips ?
 
 maybe you can use COM to create a Word object, load the file add some
 your vars (possibly inserting them at predetermined bookmarks in the
 Word file?) and then generate the PDF?
 (maybe you need to save the new Word file first, depending on what tool
 you use for the transformation)
 
 alternatively you can open you newly generated pdf file with:
 
 $x = pdf_open_file($pdf, /path/to/pdf/file);
 
 and then modify the file - maybe add a frontpage with a nice logo
 and the information taken from the user given variables - you
 wouldn't have to make any changes to the originally generated pages.
 
 http://www.zend.com/zend/spotlight/creatingpdfmay1.php?article=creatingpdfmay1kind=slid=273open=1anc=0view=1
 http://nl2.php.net/manual/en/ref.pdf.php
 
 -- it might also be possible to create a template pdf that automatically 
 displays
 some author/doc metadata; then when you generate the PDF you only need to
 add the user given variables as metadata and it will display in the file:
 
  PDF_set_info($pdf, author, John Coggeshall);
  PDF_set_info($pdf, title, Zend.com Example);
  PDF_set_info($pdf, creator, Zend.com);
  PDF_set_info($pdf, subject, Code Gallery  Spotlight);
 
 I'm just guessing that its possible to display an author field in the PDF
 in similar way to, for Instance, MSWord.
 
 
  - mb
 
 


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



[PHP] convert MS DOC - PDF

2005-02-26 Thread mbneto
Hi,

I have a bunch of M$ WORD documents (rtf and doc) that I'd like to
transform to pdf.

It would simple except that I'd like to allow the user to fill a
couple of variables (name, email, telephone) and replace this before
if generates the pdf.

After searching the net I found some classes but in order to use it
seems that I have to rewrite the entire document and some documents
have tables/images.

Any tips ?

- mb

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



[PHP] strange behaviour upgrade from 4.3.10 - 5.0.3 : cgi works but apache does not

2005-02-16 Thread mbneto
Hi,

I am trying to upgrade my server from 4.3.10 to 5.0.3 without luck.

The compile goes fine, I install the libphp5.so and switch the
LoadModule.  When I restart apache it loads fine (service httpd
status) but even a simple phpInfo() call aborts.

When I call the cli with the same php script, even a more complex one
it works flawlessly.

My ./configure (4.3.10)

'./configure' '--with-gd' '--with-apxs2' '--with-xml' '--with-ftp'
'--enable-session' '--enable-trans-sid' '--with-zlib'
'--enable-inline-optimization' '--with-mcrypt=/usr/local'
'--with-imap=/usr/include/imap ' '--with-kerberos'
'--with-oci8=/u01/app/oracle/product/8.1.7/' '--enable-sigchild'
'--with-gettext' '--with-freetype' '--with-ttf' '--with-ftp'
'--enable-ftp' '--with-jpeg-dir=/usr'
'--with-mssql=/usr/local/freetds'
'--with-imap-ssl=/usr/include/openssl'

In php5 I've added a '--with-mysql=/usr,shared'.

I've even removed the oracle (--with-oci8) but the same thing happens.

Any tips ?

Linux Fedora Core 1, httpd 2.0.51-1.6.legacy, mysql-devel 4.0.18

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



[PHP] background process

2005-01-27 Thread mbneto
Hi,

I'd like to create a script that will act as a daemon.

Now I simply add while() {  do stuff }

But this forces me to call it script.php .  Is there a way to make
this work without the 

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