php-general Digest 5 Dec 2006 09:15:00 - Issue 4497
Topics (messages 245497 through 245509):
Re: Distinguishing between a mouse click and a refresh?
245497 by: Jay Blanchard
245498 by: Pawe³ Stradomski
245499 by: Russell Jones
245500 by: Paul Novitski
php-general Digest 5 Dec 2006 22:00:37 - Issue 4498
Topics (messages 245510 through 245541):
Re: Send emails from PHP ... in a secure way
245510 by: Ruben Rubio
245512 by: T.Lensselink
245513 by: Ruben Rubio
245515 by: Jochem Maas
Re: EZ array problem -
Hi all!
I have a problem with zip files and Internet Explorer 6. I try to send to
the user a dinamically generated zip file writting the http headers and
using file_put_contents for the zip content. It works fine when downloading
the file with firefox, opera, etc... even it works well if I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I have a question sending mails from PHP. Actually I am using phpmailer
(is good!!) but when this class sends an email and there is an error
(Mail server is not ready) It just reports error and email is lost.
Is out there any way to save failed
Ruben Rubio wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I have a question sending mails from PHP. Actually I am using phpmailer
(is good!!) but when this class sends an email and there is an error
(Mail server is not ready) It just reports error and email is lost.
how are you
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
clive escribió:
Ruben Rubio wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
the MTA then something is very wrong
Why cant you save the email in a file or a database and then send it
later your self?
Because if Mail server has a problem
Brian Dunning wrote:
That works, but the value 1.2 is unknown, I can't hardcode it.
If it is only a one element array you have several options.
foreach ($array as $unknown_key=$the_values)
{
...
}
or
reset($array);
$the_values = current($array);
$unknown_key = key($array);
or
various
You can store the emails in a database or textfile when an error occurs.
And use crontab to check the stored messages and send them to the mailserver.
On Tue, 05 Dec 2006 10:55:50 +0100, Ruben Rubio [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
clive escribió:
Ruben
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
T.Lensselink escribió:
You can store the emails in a database or textfile when an error occurs.
And use crontab to check the stored messages and send them to the mailserver.
Is out there something that actually do it?
-BEGIN PGP SIGNATURE-
BUMP!
-- Forwarded message --
From: Javier Ruiz [EMAIL PROTECTED]
Date: Dec 5, 2006 9:07 AM
Subject: Problems with Zip+IE6
To: php-general@lists.php.net
Hi all!
I have a problem with zip files and Internet Explorer 6. I try to send to
the user a dinamically generated zip file
Ruben Rubio wrote:
T.Lensselink escribió:
You can store the emails in a database or textfile when an error occurs.
And use crontab to check the stored messages and send them to the mailserver.
Is out there something that actually do it?
php, perl, python, ruby, c, c++ ... just about any
Hi
I was just wondering if anyone knows why php's utf8_encode function converts
the £ symbol into £
Is this a bug in php or is it because utf8 doesn't include the £ symbol (can't
find a quick and easy ref to say if it does or not) and as such the function
outputs junk?
Kind
Hi Chris,
Do you use pound; or £?
I've had problems uploading onto a linux box for ages, but a straight text £
never seems to work, so I have to get one of my colleagues to do it
instead...
Does that help?
Nunners
-Original Message-
From: Chris Dean [mailto:[EMAIL PROTECTED]
Sent: 05
Hi Chris,
UTF-8 certainly does include the £ symbol (UTF-8 is a superset of ASCII so
has all the ASCII characters plus many others).
I've recently converted my database-driven app to UTF-8 and encountered
various issues that were quite awkward to resolve. In this case, I would
expect that the £
Hi Nunners,
Just the £ and in my case I need to use that symbol, can't really get round it
sensibly with pound;
Chris
-Original Message-
From: James Nunnerley [mailto:[EMAIL PROTECTED]
Sent: 05 December 2006 13:01
To: Chris Dean
Cc: php-general@lists.php.net
Subject: RE: [PHP] utf8
[snip]
I am going to need to build LDAP and AD modules for a project that I'm
working on. Could any of you who have delt with PHP/LDAP/AD point me in
the
direction of some decent resources/papers/books?
[/snip]
http://www.php.net/ldap
--
PHP General Mailing List (http://www.php.net/)
To
Chris Dean wrote:
Hi Nunners,
Just the £ and in my case I need to use that symbol, can't really get round
it sensibly with pound;
odd problem - check the output of the output of following ... :
var_dump(
mb_convert_encoding(html_entity_decode(pound;),UTF-8,ISO-8859-1),
//
Hi. First thanks for the replies.
Can anyone confirm that the php 5.2.0 engine takes the file name from the
path automatically and so basename() can be omitted? I understand that
leaving basename() in the code won't hurt, but I need the info for other
purpose. Thanks.
Hi. There seems to
# [EMAIL PROTECTED] / 2006-12-05 21:50:44 +0800:
Hi. First thanks for the replies.
Can anyone confirm that the php 5.2.0 engine takes the file name from the
path automatically and so basename() can be omitted? I understand that
leaving basename() in the code won't hurt, but I need the info
Hi,
I'm having a strange problem when trying to show a array after its value
was defined on a file that was included. Something like this:
?php
$lang = 'pt_BR';
include('lang/'. $lang .'/login.php');
echo $lang['Username'];
?
On the file lang/pt_BR/login.php i have this...
?php
How can you use an array as string in the include statement and two lines lower
as array?
Think it echo's 'S' because it see's $lang as a string and not an array.
On Tue, 05 Dec 2006 13:11:12 -0200, Fernando M. M. [EMAIL PROTECTED] wrote:
Hi,
I'm having a strange problem when trying to show
T.Lensselink,
Ok, problem solved. I didn't realized that i was using the same variable.
Thanks for the help!
T.Lensselink escreveu:
How can you use an array as string in the include statement and two lines lower
as array?
Think it echo's 'S' because it see's $lang as a string and not an
Assuming you mean URLs as GET variable values, urlencode() and urldecode()
might be the ticket:
http://ca.php.net/urlencode
Aaron
On 12/4/06, Graham Anderson [EMAIL PROTECTED] wrote:
What is a good/accepted way to pass a relative or absolute path
into a clean url ?
I could replace the
On Tue, December 5, 2006 9:11 am, Fernando M. M. wrote:
Hi,
I'm having a strange problem when trying to show a array after its
value
was defined on a file that was included. Something like this:
?php
$lang = 'pt_BR';
include('lang/'. $lang .'/login.php');
echo
It's kinda long, but this will probably save you some grief:
http://richardlynch.blogspot.com
On Tue, December 5, 2006 2:07 am, Javier Ruiz wrote:
Hi all!
I have a problem with zip files and Internet Explorer 6. I try to send
to
the user a dinamically generated zip file writting the http
On Mon, December 4, 2006 3:03 pm, Mark London wrote:
Is there any way for PHP to know whether it is being called due to a
browser refresh versus a mouse click? I think the answer is no but I
just want to be sure. Thanks.
You could embed a random token in all your links and input forms, and
If you are composing these on the fly, you could use
http://php.net/dirname for each element in front of a ../ and wipe
out the subdir and the ../
Or, perhaps something like:
$url = preg_replace(|/[^/]/\\.\\./|, /, $url);
On Mon, December 4, 2006 9:11 pm, Graham Anderson wrote:
What is a
On Mon, December 4, 2006 10:43 am, M.Ozan Hazer wrote:
[04-Dec-2006 18:21:56] PHP Warning: Unknown: The session id contains
illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in
Unknown
on line 0
Find your session_start() and do this after it:
var_dump(session_id());
If you
On Mon, December 4, 2006 8:11 am, Janet Smith wrote:
We have an application using PHP. If users have forgotten their
password, they click on the link 'Forgot Password' and enter this
e-mail
address. This is suppose to send their new password to the e-mail
address provided.
Errr.
So if I
On Mon, December 4, 2006 6:55 am, Jochem Maas wrote:
but given that the ENV var is only available to the shell php in
currently running in (and any subshells) so
the script is only vulnerable to mistakes/attacks from 'inside' the
script - basically I'm assuming that
whatever is stored in the
On Mon, December 4, 2006 4:53 am, Tony Marston wrote:
No, otherwise I would have quoted them. Generally speaking when people
say
that X is inefficient or bad for performance all they can prove is
that if
something extra is done then it takes extra processing time to perform
that
extra work,
thanks :)
I'll give that a try
g
On Dec 5, 2006, at 10:48 AM, Richard Lynch wrote:
If you are composing these on the fly, you could use
http://php.net/dirname for each element in front of a ../ and wipe
out the subdir and the ../
Or, perhaps something like:
$url =
At 1:14 PM + 12/5/06, Chris Dean wrote:
Hi Nunners,
Just the £ and in my case I need to use that
symbol, can't really get round it sensibly with
pound;
Chris
Chris:
A simple way I've found to display such
characters is to first find their Unicode
code-point -- in this case 00A3.
On Mon, December 4, 2006 1:37 am, Le Phuoc Canh wrote:
Dears,
I want to make a web app about music online. But i don't know how to
use
streaming in PHP to load a music file for playing. Please help me for
the
best direction.
Thanks alot and best regard.
You are making this too complicated.
Hi - Thanks! This is the solution I actually realized myself last
night, after many hours of looking at the other solutions and finding
problems with them. Thanks to everyone who responded! - Mark
Richard Lynch wrote:
On Mon, December 4, 2006 3:03 pm, Mark London wrote:
Is there any way
Ross wrote:
This is the head of my doc. It is supposed to change the page height based
on the selection from the menu. It works in IE and validates ok but it is no
go in firefox. Any ideas??
try a CSS list ; google for CSS-Discuss (Eric Meyers list)
You can see it in action here...
Anyone having problems connecting the last few days? Or, is there something
wrong on my end. Al other sites are working just fine.
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anyone having problems connecting the last few days? Or, is there something
wrong on my end. All other sites are working just fine.
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
38 matches
Mail list logo