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:
>
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 linu
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 hou
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 addr
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 . "-" . $da
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 ( 'Ô' ) . '';
> But it
I have also tried to enable Multibyte string feature,
and tried the following :
echo mb_strtolower ( 'Ô' ) . '';
But it still gives me a weird character.
My page is also UTF-8 encoded.
debussy007 wrote:
>
> Hello,
>
> strtolower(...) returns a weird character
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 list
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:
http:/
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
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
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
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 mad
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 P
14 matches
Mail list logo