[PHP] Error Handling question

2007-08-06 Thread debussy007
Hi, I am new to PHP and need some help for error handling. I read in the docs that i can handle the errors this way in my PhP: set_error_handler('errorHandler'); function errorHandler($errnum,$errmsg,$file,$lineno){ [...] } But does that mean that I have to copy paste this code in all my

[PHP] PhP / MySQL problem

2007-08-29 Thread debussy007
Hi, I created a form asking username, password, country, etc. On the submit of this form I make a sql connection and update the database, add the user. The problem is that whenever the field 'password' is filled in, it (I don't know what) is asking to confirm the change of the password. I made

Re: [PHP] PhP / MySQL problem

2007-08-29 Thread debussy007
I'm using FF. But it asks to confirm the change of password of my MySQL users. If I comment the php/mysql lines in the .php files, I do not have such a pop-up. Ludovic André wrote: Hi, I created a form asking username, password, country, etc. On the submit of this form I make a sql

[PHP] Configure mail to use Gmail smtp

2007-09-16 Thread debussy007
Hello, I have read here : http://www.geekzone.co.nz/tonyhughes/599 that I can use Gmail as a free SMTP server. Is it possible to change the php.ini in order to have this running ? I need to specify in some way the following : Outgoing Mail (SMTP) Server - requires TLS: smtp.gmail.com (use

Re: [PHP] Configure mail to use Gmail smtp

2007-09-16 Thread debussy007
I succeeded using the Zend Framework. debussy007 wrote: Hello, I have read here : http://www.geekzone.co.nz/tonyhughes/599 that I can use Gmail as a free SMTP server. Is it possible to change the php.ini in order to have this running ? I need to specify in some way the following

[PHP] Timeout for fopen ?

2007-10-13 Thread debussy007
Hello, I want to use fopen to open an URL, but is it possible to add a timeout ? This to avoid that fopen slows down my script ? Because if site I access takes 10 secs to respond, I suppose my script will just wait fopen returns something. Thank you. -- View this message in context:

[PHP] strtolower doesn't work for character Ô

2007-10-14 Thread debussy007
Hello, strtolower(...) returns a weird character when i try to convert upper case Ô to ô, can anyone help ? Thank you ! -- View this message in context: http://www.nabble.com/strtolower-doesn%27t-work-for-character-%22%C3%94%22-tf4621862.html#a13199296 Sent from the PHP - General mailing

Re: [PHP] strtolower doesn't work for character Ô

2007-10-14 Thread debussy007
I have also tried to enable Multibyte string feature, and tried the following : echo mb_strtolower ( 'Ô' ) . 'br'; But it still gives me a weird character. My page is also UTF-8 encoded. debussy007 wrote: Hello, strtolower(...) returns a weird character when i try to convert upper case

Re: [PHP] strtolower doesn't work for character Ô

2007-10-14 Thread debussy007
Nevermind, didn't see second param of mb_strtolower function which let you specify encoding type. debussy007 wrote: I have also tried to enable Multibyte string feature, and tried the following : echo mb_strtolower ( 'Ô' ) . 'br'; But it still gives me a weird character. My page

[PHP] fsockopen + fputs

2008-05-15 Thread debussy007
Hello, I use fsockopen and fputs to call a distant URL, but I have the following error : The requested URL /registration/test was not found on this server. This is my code: $req = 'username=' . $usr . 'password=' . $pass . 'date_of_birth=' . $year . - . $month . - . $day .

[PHP] mail problem (newlines becomes =0A)

2008-06-18 Thread debussy007
Hi, When a member register in my site, I send him a mail with activation link. This is the string I send: $mailContent = Thank you for your interest in XYZ !\n\n . In order to activate your account, please click the link below.\n\n . (If the link . I tested on my gmail address,

[PHP] Convert local dates into GMT+1 dates

2008-09-26 Thread debussy007
Hello everyone! I have local dates (Belgium), which I want to convert to GMT+1 date. The dates are stored in the DB and are of the following format: '2008-06-24 23:30:02' So I think I'll need to check wether the date in DB is GMT+1 or GMT+2 (winter or summer), if date is GMT+2, subtract one

[PHP] send mail to group defined in .mailrc file

2009-04-06 Thread debussy007
Hi, When I execute the following command from PHP: exec('content | mail exam...@gmail.com -s hello there'); it works fine; But not when using an alias group defined in the .mailrc file, e.g.: exec('content | mail myGroup -s hello there'); When I execute the command above in the linux

Re: [PHP] send mail to group defined in .mailrc file

2009-04-06 Thread debussy007
I found it out ... I had to set a environment variable MAILRC, to the rc file, e.g.: exec('export MAILRC=/home/sav/.mailrc; mail ' . $toMail . ' -s hello world'); debussy007 wrote: Hi, When I execute the following command from PHP: exec('content | mail exam...@gmail.com -s hello