Hi
does anyone know whats better/uses less resource etc:
If I run a loop to send a 1000 emails, should I use php's mail fucntions
or send directly to the servers smtp server.
clive
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Oct 31, 2005 at 12:10:02PM +0200, Clive wrote:
does anyone know whats better/uses less resource etc:
If I run a loop to send a 1000 emails, should I use php's mail fucntions
or send directly to the servers smtp server.
What do you mean by send directly? Are you thinking of sending
On 31 Oct 2005, at 06:27, Richard Lynch wrote:
There's a certain point where the Regex expression reaches a level of
complexity that I'm just not willing to accept in my code and call it
maintainable
/ */ is fine, of course.
But there's lots of times when I know there must be a one-line
Hi Clive,
Monday, October 31, 2005, 10:10:02 AM, you wrote:
does anyone know whats better/uses less resource etc:
If I run a loop to send a 1000 emails, should I use php's mail fucntions
or send directly to the servers smtp server.
Use PEAR Mail Queue.
Cheers,
Rich
--
Zend Certified
Clive wrote:
Hi
does anyone know whats better/uses less resource etc:
If I run a loop to send a 1000 emails, should I use php's mail fucntions
or send directly to the servers smtp server.
Depends on your setup. If you're on Linux/Unix you could use the mail()
function along with the -odq
On 31 Oct 2005, at 06:18, Richard Lynch wrote:
But I really do believe isset($_POST['checkbox_name']) is a good
coding practice.
OK, so PHP may not pass through unset params as NULL (it's not up to
the browser), but if you don't select any checkboxes at all, the
param won't exist, and
On 31 Oct 2005, at 03:29, Gustavo Narea wrote:
I think It is OK what I said about the caret, but what we need to
change is the position of \W*:
Your suggestion: /(\b\w+\b\W*){1,$MaxWords}/
My suggestion: /^(\W*\b\w+\b){1,$MaxWords}/
We need the *first* ($MaxWords)th words.
I makes
On Mon, Oct 31, 2005 at 12:38:09PM +0200, Clive wrote:
what I mean is: im using a class called phpmailer and it has the option
to sent to a smtp server, I suppose this means that they do open a
socket to the smtp server.
All that means is that you can specify an external SMTP server (e.g.
On 31 Oct 2005, at 10:34, Richard Heyes wrote:
Depends on your setup. If you're on Linux/Unix you could use the
mail() function along with the -odq option to Sendmail/Postfix/
Exim etc (fifth argument to the mail() function) which will dump
all the mails into the MTAs queue. After this, the
On Mon, Oct 31, 2005 at 12:56:01PM +0200, Clive wrote:
Thanks I actually want to send 24 000 emails with 2 meg attachments.
Oh. You definitely don't want to be using an external SMTP server if you
can help it then, and you should really be splitting those up into
chunks (no more than 1,000 at a
Hello, Marcus.
No, you are right. Your script is better.
I just forgot something I learned about REGEXES: The REGEX engine is
eager. Thus, in this case, It's not necessary to use the caret. The
REGEX engine will start from the first word It finds.
I would use yours ;-).
Best regards,
Hello!
PHP 4.4.1 is now available for download [1]. This version is a
maintenance release, that contains numerous bug fixes, including a
number of security fixes related to the overwriting of the GLOBALS
array. All users of PHP 4.3 and 4.4 are encouraged to upgrade to this
version.
The full
Marcus Bointon wrote:
OK, so PHP may not pass through unset params as NULL (it's not up to
the browser)
Well, it's certainly not up to PHP. Think about it.
Let me give you an example to try:
form action=test.php method=POST
input type=checkbox name=foo value= /
input type=submit /
/form
pre
Hello,
I have the string:
trtdimg src=http://www.runescape.com/img/hiscores/attack.gif; valign=bottom width=16 height=16 //tdtdnbsp;/tdtda
href=hiscoreuser.cgi?username=zezimacategory=1 class=cAttack/a/tdtd align=right4/tdtd align=right99/tdtd
align=right53,156,556/td/tr
and I apply
I having been looking for some snippet to help me with changing MS
Word double, quotes, single quotes and other characters to acceptable
HTML safe characters. The problem comes about when the people using
the forms paste large articles from Word into the form, I do a normal
check and add slashes
Have you tried using htmlentities()? It should convert stuff like
double-quotes () to it's associated HTML entity which, when echo'd to the
browser, will be displayed as again.
Good for safe output. Not so good for storing in a database (which you'd
probably want to use whatever your
Check in the comments section of ths page: http://us3.php.net/htmlentities
. You're not the first person to have this problem.
Ben
On Mon, 31 Oct 2005 10:30:49 -0500, Dan McCullough
[EMAIL PROTECTED] wrote:
I having been looking for some snippet to help me with changing MS
Word double,
Yannick Mortier wrote:
Hello,
I have the string:
trtdimg src=http://www.runescape.com/img/hiscores/attack.gif;
valign=bottom width=16 height=16 //tdtdnbsp;/tdtda
href=hiscoreuser.cgi?username=zezimacategory=1
class=cAttack/a/tdtd align=right4/tdtd
align=right99/tdtd
Dan McCullough wrote:
I having been looking for some snippet to help me with changing
MS Word double, quotes, single quotes and other characters to
acceptable HTML safe characters.
This seems to work:
$search = array('/[\x07\x95]/',
'/\x85/',
'/[\x91\x92]/',
On 31 Oct 2005, at 14:54, Chris Shiflett wrote:
Hopefully it is also clear that your argument revolves around the
idea that PHP would create $_POST['foo'] as NULL if the checkbox is
not checked. This is wrong for two reasons:
No, no, that's not what I said - I wouldn't contemplate such
I actually got it pretty quickly after reading the Rasmus AJAX tutorial
It was simple and easy to understand.
Thank you, Rasmus :)
I just needed to seemlessly launch the QuickTime player from a Flash
page. Seems like Ajax is going to do this quite nicely.
g
On Oct 30, 2005, at 10:06 PM,
On Mon, 2005-10-31 at 11:33, Marcus Bointon wrote:
On 31 Oct 2005, at 14:54, Chris Shiflett wrote:
Hopefully it is also clear that your argument revolves around the
idea that PHP would create $_POST['foo'] as NULL if the checkbox is
not checked. This is wrong for two reasons:
No,
Hi.
I am looking for a good tried and tested B2B software like Alibaba.
Can anyone please suggest if they have tried and running any?
Thanks
Denis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 2005-10-31 at 12:04, Denis L. Menezes wrote:
Hi.
I am looking for a good tried and tested B2B software like Alibaba.
There was this one... but 40 thieves ran off with it :p
Cheers,
Rob.
--
..
| InterJinn Application
Marcus Bointon wrote:
The thing I was wrong on is that PHP converts unset parameters (as
opposed to nonexistent ones which it obviously can't do anything
about) to an empty string, e.g. given ?a=b=1, $_REQUEST ['a'] is
, not NULL.
That's right, except we seem to have a vocabulary discrepancy:
On Mon, October 31, 2005 9:30 am, Dan McCullough wrote:
I having been looking for some snippet to help me with changing MS
Word double, quotes, single quotes and other characters to acceptable
HTML safe characters. The problem comes about when the people using
the forms paste large articles
On Mon, October 31, 2005 9:27 am, Yannick Mortier wrote:
trtdimg src=http://www.runescape.com/img/hiscores/attack.gif;
valign=bottom width=16 height=16 //tdtdnbsp;/tdtda
href=hiscoreuser.cgi?username=zezimacategory=1
class=cAttack/a/tdtd align=right4/tdtd
align=right99/tdtd
On Mon, October 31, 2005 4:38 am, Marcus Bointon wrote:
On 31 Oct 2005, at 06:18, Richard Lynch wrote:
But I really do believe isset($_POST['checkbox_name']) is a good
coding practice.
OK, so PHP may not pass through unset params as NULL (it's not up to
the browser), but if you don't select
On Mon, October 31, 2005 10:33 am, Marcus Bointon wrote:
On 31 Oct 2005, at 14:54, Chris Shiflett wrote:
Hopefully it is also clear that your argument revolves around the
idea that PHP would create $_POST['foo'] as NULL if the checkbox is
not checked. This is wrong for two reasons:
No, no,
On Mon, October 31, 2005 4:10 am, Clive wrote:
does anyone know whats better/uses less resource etc:
If I run a loop to send a 1000 emails, should I use php's mail
fucntions
or send directly to the servers smtp server.
SMTP
PHP's mail() function was never designed for high-volume email.
It
On Mon, October 31, 2005 5:22 am, Paul Waring wrote:
On Mon, Oct 31, 2005 at 12:56:01PM +0200, Clive wrote:
Thanks I actually want to send 24 000 emails with 2 meg attachments.
Woof.
mail() is DEFINITELY the wrong answer!
Firing up an SMTP connection and spewing 24,000 emails with 2 meg
I'm trying to write a FDF file into a directory outside of the
webserver. I keep getting errors such as:
Warning: fopen(/x/x/FDF/FLQual.fdf): failed to open stream:
Permission denied in /Library/WebServer/Documents/x/x/FLCorpQual.php
on line 36
Can someone give me a quick lesson in
[snip]
I'm trying to write a FDF file into a directory outside of the
webserver. I keep getting errors such as:
Warning: fopen(/x/x/FDF/FLQual.fdf): failed to open stream:
Permission denied in /Library/WebServer/Documents/x/x/FLCorpQual.php
on line 36
Can someone give me a quick lesson in
On 31 Oct 2005, at 17:55, Richard Lynch wrote:
You're wrong.
No. You're just missing what I'm on about. I'll agree it's very dull.
isset() does not, under any circumstances, create an index nor a
variable.
Quite right; I never said it did.
Its entire purpose *IS* to tell you if something
Marcus Bointon wrote:
But that's not the question you're using isset to answer. You just
want to know if something exists - you probably don't even care
what its value is.
I think this is where some (most?) of the misunderstanding originates.
Testing to see whether something exists is exactly
Hi Folks!
This is my first email to php-general, and first of all I wish to thank
the developers for their GREAT work! :-)
Well, I don't mean to waste your time, so here follow my question.
I've stared using PHP some months ago, and my last application is an LDAP
Administration Tool for IBM ITDS
Hi,
PHP 5.1 RC1 was on the site two days ago, but has since been
removed. I can see it in Googles cache, and snapshots are in CVS,
but no Release Candidate. Does this mean an RC2 is imminent? :)
Cheers,
Rich
--
Zend Certified Engineer
http://www.launchcode.co.uk
--
PHP General Mailing
Hi,
RC4 is available since last Friday.
Take a look here http://downloads.php.net/ilia/
Richard Davey wrote:
Hi,
PHP 5.1 RC1 was on the site two days ago, but has since been
removed. I can see it in Googles cache, and snapshots are in CVS,
but no Release Candidate. Does this mean an
Richard Heyes schrieb:
Yannick Mortier wrote:
Hello,
I have the string:
trtdimg src=http://www.runescape.com/img/hiscores/attack.gif;
valign=bottom width=16 height=16 //tdtdnbsp;/tdtda
href=hiscoreuser.cgi?username=zezimacategory=1
class=cAttack/a/tdtd align=right4/tdtd
On 31 Oct 2005, at 21:11, Chris Shiflett wrote:
I think this is where some (most?) of the misunderstanding
originates. Testing to see whether something exists is exactly what
isset() does.
No. Given $myarray['a'] = NULL, isset($myarray[a']) returns false.
You're saying that therefore,
Marcus Bointon wrote:
Given $myarray['a'] = NULL, isset($myarray[a']) returns false.
Yes, I think we've established that.
I'm sure Richard and I were both well aware of this fact, but just in
case we weren't, I think we can safely assume we are by now. :-)
You're saying that therefore,
41 matches
Mail list logo