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

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

2009-10-20 Thread mbneto
. 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

[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) {

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

[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

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

Re: [PHP] Problems with Curl and POST

2007-04-16 Thread mbneto
-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

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

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

[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

Re: [PHP] Problems with UTF

2006-09-01 Thread mbneto
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

[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.

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

[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

Re: [PHP] Proper configuration of safe mode

2006-07-12 Thread mbneto
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

[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.

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:

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

[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

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

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

[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

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

2005-05-14 Thread mbneto
: $_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

[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

[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

[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

[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:

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

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

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

Re: [PHP] convert MS DOC - PDF

2005-02-27 Thread mbneto
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

[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

[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,

[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