Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread rpruitt

Hmmm.

I've also heard it described as a newsletter.
Or a mailing list.

A good program that does this is http://www.kingmailer.com/

Thirty bucks, with a built-in SMPT server.


Lars Wilhelmsen wrote:

 Ben Clumeck [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I would like to send an e-mail (the same e-mail) to 1,000 different
 people.
  I want each persons name to be in the To: field.  Is there a way to
  customize it to where it can say Dear (having a different persons name
  corresponding to an e-mail address) so that it looks customized.
 
  Thanks,
 
  Ben
 

 What you are describing is called SPAMMING, something
 we really, really dislike.

 Answer to your question: yes, it's pretty simple, but PHP
 is generally a language for web applications, I think Perl
 is more suited for your needs.

 And no, I do not want to teach anyone how to send 1,000
 email to 1,000 different persons.

 Regards,

 Lars WIlhelmsen



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Securite problem

2002-02-02 Thread rpruitt

There are a few issues that could be involved, but the glaring big one is that
require_once() only works with PHP 4

The php3 extensions make me think you should simply use require()

Roebie wrote:

 Dear all,
 I have a index.php3 file in a password protected directory (on Windows)
 which calls two other files with
 require_once(../code/anolislib2.php3);
 require_once(../code/pageslib1.php3);
 These two files are in another (not protected) directory. When I try to open
 index.php3 with IE5.5 nothing happens. The files are not included, I get no
 error message and no code at all is executed.
 Why is this and what can I do about it ?
 Thanks for any help.
 Roebie

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Securite problem

2002-02-02 Thread rpruitt

I used this in index.php3, in a password protected directory, using Xitami on
Windows.

 require_once(../test/require.php3);

Everything did fine.

Roebie wrote:

 I have tried absolute paths but that does not solve the problem.
 Unlike the filename extension suggests I am using php4.

 The problem seems to be the password protection. When the three files are in
 the same directory (be it protected or unprotected) everything works fine.
 When index.php3 is in one directory and the other two files are in another
 directory everything works fine but only if both directories are protected
 or both are unprotected.

 That including a script that is in a password protected directory is not
 allowed seems reasonable to me, but the other way round ...?

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread rpruitt

I don't know the nature of your feud, but Manuel is right on here, as far as I'm
concerned. Sterling's comments were unwarranted, unjust, and stupid.

Rise above it man.

Manuel Lemos wrote:

 Hello,

 Sterling Hughes wrote:
 
  On Sat, 2002-02-02 at 17:42, Manuel Lemos wrote:
   Hello,
  
   Lars Wilhelmsen wrote:
   
Ben Clumeck [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I would like to send an e-mail (the same e-mail) to 1,000 different
people.
 I want each persons name to be in the To: field.  Is there a way to
 customize it to where it can say Dear (having a different persons name
 corresponding to an e-mail address) so that it looks customized.

 Thanks,

 Ben

   
What you are describing is called SPAMMING, something
we really, really dislike.
  
   You are confused. Spamming is sending the same message to the same
   person more than once.
  
   What I think you mean is unsolicited e-mail. The original poster did not
   mention whether the people he wants to mail want to receive his
   messages, so you can't assume that is necessarily unsolicited.
  
 
  I think you are confused...  Unsolicited e-mail is in fact the
  definition of spam!

 No, with time, people started confusing definitions. You may not be
 aware of it because you were too young and by that time you probably
 even did not knew about what was the Internet. AFAIK, spam was, in the
 early days when there was not even the Web, what was called to
 cross-posting the same message to multiple newsgroups. Remeber Monty
 Python sketch, they were complaining of more of the same spam.

 Since often spam is also unsolicited, people started confusing concepts.
 In mailing lists and newsgroups like this, messages are only unsolicited
 when they become completely off-topic, which is not the case. You ought
 to study a little history first before you decide to make any of my
 message yet another pointless personal attack.

  Secondly, reasonable assumptions can often be made, for example, when I
  see a message from you, its almost guaranteed that you'll be plugging
  PHPClasses, or Metabase, or both.  Assumptions are why killfiles were
  invented.

 Sterling, you seem to be sick if you are watching every message I post
 to jumping in to attack me or my work.

 I was not even promoting the PHP Classes site. If I were I would post
 its URL, which I didn't. I was sharing my knowledge on sending messages
 to a large number of recipients. It happens that my knowledge on bulk
 mailing is based on my experience sending notifications to the site
 subscribers.

 Since you are so obcessed to attack me probably because of possible
 stupid envy, you could only see my message as another plug to promote
 the site.

 Sterling, get a grip, you would do much better in get rid of those
 unjustifiable sick feelings that you hold against somebody like myself
 that is still bothering to contribute to the PHP community providing a
 PHP component sharing site that is accessed by many tens of thousands of
 PHP users.

 Another thing, is that you are so ungrateful because whatever I do to
 let people know about the PHP Classes site is to bring people to the
 site not only to share and benefit for each other PHP components, but
 also to provide a substantial audience not only to the components that
 the users share, but also to the reviews of PHP books like your own: PHP
 Developers Cookbook.

 http://phpclasses.upperdesign.com/products.html/id/0672319241

 I even tried to make a nice review, as usually I do with all books I
 review because I know that it takes a lot of time to write a good book
 and in the time you spent writing it you would probably earn more money
 working on some paid PHP project than whatever you may ever earn from
 selling the book.

 I know that it isn't much, but 710 users went to Amazon eventually to
 buy the your book because of this review. It is an humble contribution
 to compensate for your effort and of other PHP book writers.

 Anyway, I am considering discontinuing this section of the PHP Classes
 site because it is not providing enough income to cover for the site
 expenses. Now, after I read your personal attacks I wonder why am I
 waiting to discontinue it when all I get for attempting to promote the
 site to bring in more audience also for the book reviews, is just
 personal attacks from authors like yourself?

 Of course this hurts me bad, but I am kind of used to the hostility that
 I get of envious unsensible PHP developers like yourself.

 Right, now, if you do not have anything nicer to say to me, please don't
 even bother to mail me.

 Regards,
 Manuel Lemos

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To 

Re: [PHP] header() and frameset

2002-02-01 Thread rpruitt

Anywhere in the head of the page you're gonna bust out, place this 
small code --

   script
  if (parent.frames.length  0) {
parent.location.href = self.document.location
  }
   /script

Benjamin deRuyter wrote:

 Does anybody know of a way to break out of a frameset while using the
 following code to redirect the browser:

 header(Location: http://www.anywhere.com/;);
 exit();

 Thanks.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP3 file upload

2001-10-22 Thread rpruitt

This is from the manual --

?php

   function is_uploaded_file($filename) {
if (!$tmp_file = get_cfg_var('upload_tmp_dir')) {
 $tmp_file = dirname(tempnam('', ''));
  }
 $tmp_file .= '/' . basename($filename);
  }

if (is_uploaded_file($userfile)) {
 copy($userfile, file.test);
  } else {
   echo brPossible file upload attack: filename
'$userfile_name'.;
 }
   ?

This uploads the file into the correct temp directory, it recognizes the
filename, etc., but it won't copy it. I only can achieve the error
message. I need to use PHP3 for this, I'm obviously missing something.

Thanks,
Robert




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] problems with a netscape post

2001-08-20 Thread rpruitt

I don't believe that can be it. I have forms working under Netscape 4+ all day
with no problems, all unnamed. I would bet it's an html issue related to the
editor you're using to create the forms. I'd like to see the html that fails.

Steve Lawson wrote:

 Try giving the form a name?

 I normally use something like...

 FORM NAME=myform METHOD=post ACTION=?=$PHP_SELF?

 Any it works in NS 4+

 SL

 - Original Message -
 From: Quentin Gillet [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, August 19, 2001 10:06 AM
 Subject: RE: [PHP] problems with a netscape post

  I have the same problem, I'm curious to hear what people say about
 this
 
  -Message d'origine-
  De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Envoyé : dimanche 19 août 2001 16:34
  À : [EMAIL PROTECTED]
  Objet : [PHP] problems with a netscape post
 
 
  Hi,
 
  I am trying to post some form data to a php page that then updates a
  mysql database and echos back to the browser that the data has been
  inputted. Here is the general form of my post;-
 
  form action=blah.php3 method=post
 
  .. form widgets here .
 
  input type=submit value=blahblah
  /form
 
  this works perfectly with IE and opera, but with netscape 4.* it
  either takes ages for the event to transpire or times out.  I am not
  trying to post any files ect, just text field data, 1k max, anyone
  have any ideas what is going wrong?
 
  thanks
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] removing characters

2001-03-05 Thread rpruitt

A problem of inexperience...

I am trying to store an array in mysql. I obtain the array like so--

$partcount = count($Area);
 reset($Area);
 for ($i = 0; $i  $partcount; $i++){
   $key = key($Area);
   $val = $Area[$key];
$string1 .= $val . "\') or (Area=\'";
   next($Area);
 }

This results, with a bit of coaxing, in an array like this one --

+-+
| Area|
+-+
| (Area='1') or (Area='2') or (Area='3') or (Area='') |
+-+

Everything is falling into place, *except*  these last thirteen
characters --

 or (Area='')

And that's what I'd like to eradicate.

Tips, suggestions, especially outright code greatly appreciate.

Thanks,
Robert
p.s.-- I have ordered the Friedl book on Regular Expressions. Hoping it
will enlighten me for the future



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]