php-general Digest 17 Apr 2004 08:05:37 -0000 Issue 2710

Topics (messages 183673 through 183711):

Re: Unwanted e-mails
        183673 by: Elfyn McBratney
        183674 by: Travis Low
        183675 by: Lester Caine
        183676 by: John W. Holmes
        183677 by: John Nichel
        183679 by: Lester Caine
        183680 by: Jay Blanchard
        183681 by: John W. Holmes
        183682 by: Elfyn McBratney
        183683 by: Chris W. Parker
        183684 by: John Nichel
        183685 by: Elfyn McBratney
        183686 by: Lester Caine
        183688 by: David T-G
        183692 by: Ryan A

Re: sending mail with php on a linux box
        183678 by: John W. Holmes

Re: Looking for a comprehensive PHP tutorial
        183687 by: Stephen Allen

http header
        183689 by: Gabe
        183690 by: Matt Matijevich
        183691 by: Elfyn McBratney
        183693 by: Matt Matijevich
        183695 by: Brandon Holtsclaw
        183696 by: Gabe
        183703 by: Chris Shiflett
        183707 by: Matt Matijevich

Double mails
        183694 by: Lopez, Kaleb (GEAE, Foreign National, CIAT)
        183697 by: Chris W. Parker
        183698 by: Lopez, Kaleb (GEAE, Foreign National, CIAT)
        183706 by: Chris W. Parker
        183708 by: PHP Email List
        183709 by: PHP Email List
        183710 by: Elfyn McBratney

Re: Formatting phone numbers?
        183699 by: Jay Blanchard

Re: alternating row color--newbie help
        183700 by: Don Read

*******Re: [PHP] Explanation of cookie behavior
        183701 by: David A. Stevens

PHP's RPM vs PHP's Compiling???
        183702 by: Scott Fletcher

limit number of CGI processes
        183704 by: Florian Effenberger

Fatal error: Call to undefined function: mysql_connect()
        183705 by: Tim
        183711 by: David Robley

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 16 Apr 2004 19:19, Lester Caine wrote:
> Chris W. Parker wrote:
> > David A. Stevens <mailto:[EMAIL PROTECTED]>
> >
> >     on Friday, April 16, 2004 10:31 AM said:
> >>I have somehow, for reasons unknown to me, gotten onto some e-mail
> >>list that I don't want to or need to be on. Somebody please, at all
> >>the above addresses, do everything possible to get me off that
> >>list(s).
> >
> > DON'T MAKE AN AUTO-REPLY!!
> >
> > UNSUBSCRIBE YOURSELF!!
>
> Does not F****ing work!!!!!!
> The unsubscribe process requires you to reply to the eMail that is sent.
> THAT email is bounced for many people who are trying to unsubscribe.
> SOMEBODY NEEDS TO GET THEIR ACT TOGETHER AND FIX THE SYSTEM SO THAT WE
> C*A*N* UNSBSCRIBE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> There is obviously an anti spam filter that processes many of these
> requests and prevent email IN while still sending it OUT to the banned
> addresses !!!!!

Chill out, or you'll see no help, OK?

If for whatever reason you don't get that unsibscribe email, you need to 
contact the people who run this list:

  <php-general-owner at lists dot php dot net>

But use that as a /last/ resort.  Try the unsubscribe page on the PHP website 
first:

  <http://www.php.net/unsub.php>

Coming on this list and swearing at everyone won't get you anywhere.

":-)"

Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee

>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgECmaIgMKkVlSLQRAkR9AJ48QGZl4iwy+hPmbBNekD3F4lRZvQCgiKh/
JBY08qC2MFFNLvsXbv3hnuc=
=4+dE
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message --- Lester Caine wrote:
Chris W. Parker wrote:
David A. Stevens <mailto:[EMAIL PROTECTED]>
    on Friday, April 16, 2004 10:31 AM said:
I have somehow, for reasons unknown to me, gotten onto some e-mail
list that I don't want to or need to be on. Somebody please, at all
the above addresses, do everything possible to get me off that
list(s).

DON'T MAKE AN AUTO-REPLY!!

UNSUBSCRIBE YOURSELF!!

Does not F****ing work!!!!!!
The unsubscribe process requires you to reply to the eMail that is sent.
THAT email is bounced for many people who are trying to unsubscribe.
SOMEBODY NEEDS TO GET THEIR ACT TOGETHER AND FIX THE SYSTEM SO THAT WE C*A*N* UNSBSCRIBE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I just unsubscribed and re-subscribed, no problems at all.

Did I miss anything? :-)

cheers,

Travis


-- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com>

--- End Message ---
--- Begin Message ---
Lester Caine <mailto:[EMAIL PROTECTED]>
    on Friday, April 16, 2004 12:20 PM said:

Does not F****ing work!!!!!!
The unsubscribe process requires you to reply to the eMail that is
sent. THAT email is bounced for many people who are trying to
unsubscribe. SOMEBODY NEEDS TO GET THEIR ACT TOGETHER AND FIX THE
SYSTEM SO THAT WE C*A*N* UNSBSCRIBE
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

that sounds like a problem on the end of the person trying to unsubscribe and not the server.

WHY?
I am hitting reply, and EVERY php list sends a message back bouncing the unsubscribe message ( along with every post I have tried to make since XMAS - which is why I am having to use the newsgroup interface )
This only happens on list.php.net, I have no problem with any other developer list I am moderator of or involved with !

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services

--- End Message ---
--- Begin Message ---
From: "Lester Caine" <[EMAIL PROTECTED]>

> Does not F****ing work!!!!!!
> The unsubscribe process requires you to reply to the eMail that is sent.
> THAT email is bounced for many people who are trying to unsubscribe.
> SOMEBODY NEEDS TO GET THEIR ACT TOGETHER AND FIX THE SYSTEM SO THAT WE
> C*A*N* UNSBSCRIBE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Works for me everytime I go away for more than a couple days. Maybe you
should get a better email client.

---John Holmes...

--- End Message ---
--- Begin Message --- Lester Caine wrote:
that sounds like a problem on the end of the person trying to
unsubscribe and not the server.


WHY?
I am hitting reply, and EVERY php list sends a message back bouncing the unsubscribe message ( along with every post I have tried to make since XMAS - which is why I am having to use the newsgroup interface )
This only happens on list.php.net, I have no problem with any other developer list I am moderator of or involved with !


Seeing that the unsubscribe works for the vast majority, one would guess that the problem isn't on the list server end.

--
***********************************************************************
*  _  __       __      __       _                      * John  Nichel *
* | |/ /___ __ \ \    / /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' </ -_) _` \ \/\/ / _ \ '_| / /(_-<_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*          |___/                                       * Buffalo, NY  *
* http://www.KegWorks.com            [EMAIL PROTECTED] * 14203 - 1321 *
***********************************************************************

--- End Message ---
--- Begin Message --- Elfyn McBratney wrote:

Chill out, or you'll see no help, OK?

If for whatever reason you don't get that unsibscribe email, you need to contact the people who run this list:

<php-general-owner at lists dot php dot net>

But use that as a /last/ resort. Try the unsubscribe page on the PHP website first:

<http://www.php.net/unsub.php>

Coming on this list and swearing at everyone won't get you anywhere.

EVERY message posted to lists.php.net simply gets bounced, and every attempt to get a response on these lists has been ignored.
YES there is an unsubscribe, BUT it will only work if the eMail server at PHP will actually accept the unsubscribers eMail.
I am not the only person who has been having problems getting email responses - so arrogant replies of "Read the messages" tend to piss me off :)

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services

--- End Message ---
--- Begin Message ---
[snip]
EVERY message posted to lists.php.net simply gets bounced
[/snip]

Apparently not, as we all get it. Perhaps you have set up your options
to see your own e-mails? There is an option for that.

[snip]
, and every attempt to get a response on these lists has been ignored.
[/snip]

Apparently not again, as I have seen several responses to your e-mails.

[snip]
YES there is an unsubscribe, BUT it will only work if the eMail server
at PHP will actually accept the unsubscribers eMail.
[/snip]

Several have proven that this works.

[snip]
I am not the only person who has been having problems getting email
responses - so arrogant replies of "Read the messages" tend to piss me
off :)
[/snip]

And arrogant bull$hit like above tends to piss us all off.

--- End Message ---
--- Begin Message ---
From: "Lester Caine" <[EMAIL PROTECTED]>

> I am hitting reply, and EVERY php list sends a message back bouncing the
> unsubscribe message ( along with every post I have tried to make since
> XMAS - which is why I am having to use the newsgroup interface )
> This only happens on list.php.net, I have no problem with any other
> developer list I am moderator of or involved with !

I think you're just getting an autoresponder, but not from the list. Same as
every time anyone posts we get those messages from "Information Desk",
"Advance Credit Suisse Bank", pair-something, etc...

---John Holmes...

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 16 Apr 2004 19:35, Lester Caine wrote:
> Elfyn McBratney wrote:
> > Chill out, or you'll see no help, OK?
> >
> > If for whatever reason you don't get that unsibscribe email, you need to
> > contact the people who run this list:
> >
> >   <php-general-owner at lists dot php dot net>
> >
> > But use that as a /last/ resort.  Try the unsubscribe page on the PHP
> > website first:
> >
> >   <http://www.php.net/unsub.php>
> >
> > Coming on this list and swearing at everyone won't get you anywhere.
>
> EVERY message posted to lists.php.net simply gets bounced, and every
> attempt to get a response on these lists has been ignored.
> YES there is an unsubscribe, BUT it will only work if the eMail server
> at PHP will actually accept the unsubscribers eMail.
> I am not the only person who has been having problems getting email
> responses - so arrogant replies of "Read the messages" tend to piss me
> off :)

Have a look at the headers of this message.  You'll see (or should see) a 
Return-path: header.  Like this:

  Return-path: <[EMAIL PROTECTED]>

You see this bit: elfyn=emcb.co.uk?  That's the email address I subscribed 
with, and is the address I have to use to unsubscribe.  Make sure that you 
use the correct address to 'try' and unsubscribe or, yes, ezmlm will ignore 
you.

ELfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee

>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgEN3aIgMKkVlSLQRAjo1AKCLSRZmygBj/APT7mWn85kj/U13BwCgmmCB
ucqissJNh/UJ3hUcAnLS37U=
=NzG/
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
Lester Caine <mailto:[EMAIL PROTECTED]>
    on Friday, April 16, 2004 12:36 PM said:

> EVERY message posted to lists.php.net simply gets bounced, and every
> attempt to get a response on these lists has been ignored.

i don't see how if every message you send gets bounced it's still coming
through to me. if it gets bounced shouldn't it *not* make it through to
the list? what am i missing here?

> I am not the only person who has been having problems getting email
> responses

what do you mean "email responses"? it appears that you are getting
"email respones" since you're replying to an email on this list... ...
...


confused,
chris.

--- End Message ---
--- Begin Message --- Lester Caine wrote:
EVERY message posted to lists.php.net simply gets bounced, and every attempt to get a response on these lists has been ignored.
YES there is an unsubscribe, BUT it will only work if the eMail server at PHP will actually accept the unsubscribers eMail.
I am not the only person who has been having problems getting email responses - so arrogant replies of "Read the messages" tend to piss me off :)


Worked for me Tuesday when I unsubscribed my home email address.

--
***********************************************************************
*  _  __       __      __       _                      * John  Nichel *
* | |/ /___ __ \ \    / /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' </ -_) _` \ \/\/ / _ \ '_| / /(_-<_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*          |___/                                       * Buffalo, NY  *
* http://www.KegWorks.com            [EMAIL PROTECTED] * 14203 - 1321 *
***********************************************************************

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 16 Apr 2004 20:35, Elfyn McBratney wrote:
> On Friday 16 Apr 2004 19:35, Lester Caine wrote:
> > Elfyn McBratney wrote:
> > > Chill out, or you'll see no help, OK?
> > >
> > > If for whatever reason you don't get that unsibscribe email, you need
> > > to contact the people who run this list:
> > >
> > >   <php-general-owner at lists dot php dot net>
> > >
> > > But use that as a /last/ resort.  Try the unsubscribe page on the PHP
> > > website first:
> > >
> > >   <http://www.php.net/unsub.php>
> > >
> > > Coming on this list and swearing at everyone won't get you anywhere.
> >
> > EVERY message posted to lists.php.net simply gets bounced, and every
> > attempt to get a response on these lists has been ignored.
> > YES there is an unsubscribe, BUT it will only work if the eMail server
> > at PHP will actually accept the unsubscribers eMail.
> > I am not the only person who has been having problems getting email
> > responses - so arrogant replies of "Read the messages" tend to piss me
> > off :)
>
> Have a look at the headers of this message.  You'll see (or should see) a
> Return-path: header.  Like this:
>
>   Return-path: <[EMAIL PROTECTED]>
>
> You see this bit: elfyn=emcb.co.uk?  That's the email address I subscribed
> with, and is the address I have to use to unsubscribe.  Make sure that you
> use the correct address to 'try' and unsubscribe or, yes, ezmlm will ignore
> you.

One important detail I missed is that you replace the '=' with an '@' to get 
the email address..

Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee

>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgEP7aIgMKkVlSLQRAq2eAJ4sC3ZVwoR9e+nT/wyi5Hpo6ad7mwCgk2Dp
Lrgwtg6g7wO0/jcokEolkdg=
=69BO
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message --- John W. Holmes wrote:

From: "Lester Caine" <[EMAIL PROTECTED]>

I am hitting reply, and EVERY php list sends a message back bouncing the
unsubscribe message ( along with every post I have tried to make since
XMAS - which is why I am having to use the newsgroup interface )
This only happens on list.php.net, I have no problem with any other
developer list I am moderator of or involved with !


I think you're just getting an autoresponder, but not from the list. Same as
every time anyone posts we get those messages from "Information Desk",
"Advance Credit Suisse Bank", pair-something, etc...

I have just posted a couple of replies via eMail, and tried another unsubscribe cycle. I will post the auto-responder message. SINCE lists.php.net is the only place I have a problem, and everything was fine last year ......

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services

--- End Message ---
--- Begin Message ---
Travis, et al --

...and then Travis Low said...
% 
% Lester Caine wrote:
...
% >SOMEBODY NEEDS TO GET THEIR ACT TOGETHER AND FIX THE SYSTEM SO THAT WE 
% >C*A*N* UNSBSCRIBE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
% 
% I just unsubscribed and re-subscribed, no problems at all.
% 
% Did I miss anything?  :-)

Just some whining, apparently.

Perhaps it's time for me to break out the "unsubscribe fee" emails again.


% 
% cheers,
% 
% Travis


HAND

:-D
-- 
David T-G
[EMAIL PROTECTED]
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Got up this morning and the coffee tasted bad and then burnt my tongue on it
:-(
Client again didnt pay on time.
Someone was in the bathroom when I wanted to go.
Sitting to long in front of the computer....eyes are paining.
Weed should be legalised here as in Amsterdam.
Need more women in my life....never enough.

Ahhhhh, feel better now that I have added my whine to this "whiney" thread.

Cheers,
-Ryan

--- End Message ---
--- Begin Message ---
From: "Chris W" <[EMAIL PROTECTED]>

> I'm not sure if this is a PHP, Apache, Network, or sendmail
> configuration but hopefully someone here will know.
>
> When I send email with PHP the from header is
>
> [EMAIL PROTECTED]
>
> I can't run a real mail server on my machine, so I want to change that
> email address to something else.  What config file do I need to look at
> to do this?

The last parameter of mail() allows you to specify additional headers.Use it
to set a From header.

$headers = "From: [EMAIL PROTECTED]";

mail($to,$subject,$msg,$headers);

---John Holmes...

--- End Message ---
--- Begin Message ---
On Fri, Apr 09, 2004 at 03:04:37PM +0530 or thereabouts, Ash.. wrote:
> Hi,
> 
> I am looking for a comprehensive handholder tutorial, that introduces the
> various aspects
> of PHP, step by step and let's u see the big picture.
> I have come across tons of PHP learnware which is like "how to do this" and
> "how to do that".
> But that still doesn't introduce the language to the beginner in an orderly
> manner.
> Any suggestions, links, will be greatly appreciated.
> 
> Or, if someone (experienced in PHP) thinks we must come up with such a
> comprehensive tutorial, we can perhaps team up ;)
> Ash

I found an excellent book Visual QuickStart Guide (Second edition) "PHP for the
World Wide Web" by Larry Ullman to be excellent. Starts from the a basics in a
well written manner, common to all PeachPit books, I've ever read.

ISBN # 0-321-24565-2  $21.00 USD

-- 
S.Allen
-------------------------------------------
barnyard  Friday Apr 16 2004 03:35:01 PM EDT
-------------------------------------------
The egg cream is psychologically the opposite of circumcision -- it
*pleasurably* reaffirms your Jewishness.
                -- Mel Brooks

--- End Message ---
--- Begin Message --- Is the following code the best way to redirect someone to a different page using PHP?

<?php
header("Location: http://www.yahoo.com";);
?>

I looked for a "redirect" function of some kind and didn't come up with anything. Just curious what the consensus is...

Thanks
--- End Message ---
--- Begin Message ---
[snip]
Is the following code the best way to redirect someone to a different 
page using PHP?

<?php
header("Location: http://www.yahoo.com";);
?>

I looked for a "redirect" function of some kind and didn't come up with

anything.  Just curious what the consensus is...
[/snip]

yes

http://www.php.net/header has a good way to redirect to other pages on
your site.

header("Location: http://"; . $_SERVER['HTTP_HOST']
                     . dirname($_SERVER['PHP_SELF'])
                     . "/" . $relative_url);

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Gabe,

On Friday 16 Apr 2004 19:48, Gabe wrote:
> Is the following code the best way to redirect someone to a different
> page using PHP?
>
> <?php
> header("Location: http://www.yahoo.com";);
> ?>

That's also known as "breaking the back button", but is the only way to do it 
in PHP.  A better way to redirect someone (and keep the back busson working) 
is to use the meta html tag.

> I looked for a "redirect" function of some kind and didn't come up with
> anything.  Just curious what the consensus is...
>
> Thanks

Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee

>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgEdkaIgMKkVlSLQRAnFsAKCQVkF5SUthf+f7hH0xSwaafvW4/wCeKlK0
oQkwLFAPpT8jjkd3LD9dhvs=
=p4e2
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
[snip]
That's also known as "breaking the back button", but is the only way to
do it 
in PHP.  A better way to redirect someone (and keep the back busson
working) 
is to use the meta html tag.
[/snip]


How is that breaking the back button?

--- End Message ---
--- Begin Message ---
or you could try something like :

<script>window.location.href='http://www.slashdot.org'</script>

and / or

<?php
echo "<script>window.location.href='http://www.slashdot.org'</script>";
?>

Brandon Holtsclaw
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Brandon Holtsclaw wrote:
Thanks for the ideas.  The header option will work, I was just curious.


or you could try something like :

<script>window.location.href='http://www.slashdot.org'</script>

and / or

<?php
echo "<script>window.location.href='http://www.slashdot.org'</script>";
?>

Brandon Holtsclaw
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
--- Elfyn McBratney <[EMAIL PROTECTED]> wrote:
> > Is the following code the best way to redirect someone to a
> > different page using PHP?
> >
> > <?php
> > header("Location: http://www.yahoo.com";);
> > ?>
>
> That's also known as "breaking the back button", but is the only way
> to do it in PHP. A better way to redirect someone (and keep the back
> busson working) is to use the meta html tag.

I'm not sure what you mean by breaking the back button. I think you're
talking about when you click back and are immediately forwarded again,
which is annoying for users. This is typically the case of a Refresh
(whether HTTP header or http-equiv meta tag) set with a 0 second delay.

So, I think you've got it backward, because the Location header does not
have this problem, since the redirect is transparent to the history
mechanism.

Also, when you're using PHP, it is rare that it is going to be better to
use a meta tag to emulate an HTTP header. PHP has the header() function,
and it can set real headers.

Hope that helps.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly
     Coming Fall 2004
HTTP Developer's Handbook - Sams
     http://httphandbook.org/
PHP Community Site
     http://phpcommunity.org/

--- End Message ---
--- Begin Message ---
[snip]
Also, when you're using PHP, it is rare that it is going to be better
to
use a meta tag to emulate an HTTP header. PHP has the header()
function,
and it can set real headers.
[/snip]

also, meta refreshes are easy to turn off.

--- End Message ---
--- Begin Message ---
Hello.

Is anyone else getting the mails twice?

Kaleb

--- End Message ---
--- Begin Message ---
Lopez, Kaleb (GEAE, Foreign National, CIAT)
<mailto:[EMAIL PROTECTED]>
    on Friday, April 16, 2004 1:07 PM said:

> Is anyone else getting the mails twice?

not me. are you getting *your* mails twice or *every* mail twice?



chris.

--- End Message ---
--- Begin Message ---
Every mail comes twice... Well, every mail from the list.

Kaleb

-----Original Message-----
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: Friday, April 16, 2004 3:22 PM
To: Lopez, Kaleb (GEAE, Foreign National, CIAT);
[EMAIL PROTECTED]
Subject: RE: [PHP] Double mails


Lopez, Kaleb (GEAE, Foreign National, CIAT)
<mailto:[EMAIL PROTECTED]>
    on Friday, April 16, 2004 1:07 PM said:

> Is anyone else getting the mails twice?

not me. are you getting *your* mails twice or *every* mail twice?



chris.

--- End Message ---
--- Begin Message ---
Lopez, Kaleb (GEAE, Foreign National, CIAT)
<mailto:[EMAIL PROTECTED]>
    on Friday, April 16, 2004 1:24 PM said:

> Every mail comes twice... Well, every mail from the list.

in that case i don't know. i've never heard of such behavior.



c

--- End Message ---
--- Begin Message ---
> From: Chris W. Parker [mailto:[EMAIL PROTECTED]
> [EMAIL PROTECTED]
> Subject: RE: [PHP] Double mails
> > Every mail comes twice... Well, every mail from the list.

I had this happen a year ago on a Wolf Conservation List that I belong too,
I contacted the email administrator and they checked the database and I was
in there twice. Some how (through no fault of my own, cuz I'm perfect) I got
entered into the database twice. I unsubscribed and resubscribed and that
fixed it. SO, worth a shot. worst that can happen is you miss a couple of
emails and have to check the archives. Heaven forbid we do that though. Cuz
that'd be like, ummm, following the rules of Newbie Law. Or so it's wrote.
(enter more ramble cuz it's 12:00midnight and I have nothing better to do)::
exit looney!

Wolf. :)
HTH

--- End Message ---
--- Begin Message ---
Sorry this was meant for Kaleb, My bad, see WAY TOO EARLY IN THE MORNING!!!!

> -----Original Message-----
> From: PHP Email List [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 17, 2004 12:04 AM
> To: Chris W. Parker
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Double mails
>
>
> > From: Chris W. Parker [mailto:[EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > Subject: RE: [PHP] Double mails
> > > Every mail comes twice... Well, every mail from the list.
>
> I had this happen a year ago on a Wolf Conservation List that I
> belong too,
> I contacted the email administrator and they checked the database
> and I was
> in there twice. Some how (through no fault of my own, cuz I'm
> perfect) I got
> entered into the database twice. I unsubscribed and resubscribed and that
> fixed it. SO, worth a shot. worst that can happen is you miss a couple of
> emails and have to check the archives. Heaven forbid we do that
> though. Cuz
> that'd be like, ummm, following the rules of Newbie Law. Or so it's wrote.
> (enter more ramble cuz it's 12:00midnight and I have nothing
> better to do)::
> exit looney!
>
> Wolf. :)
> HTH
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 17 Apr 2004 05:05, PHP Email List wrote:
> Sorry this was meant for Kaleb, My bad, see WAY TOO EARLY IN THE
> MORNING!!!!

You mean late at night ;)

> [...]
> > > > Every mail comes twice... Well, every mail from the list.
> >
> > I had this happen a year ago on a Wolf Conservation List that I
> > belong too,
> > I contacted the email administrator and they checked the database
> > and I was
> > in there twice. Some how (through no fault of my own, cuz I'm
> > perfect) I got
> > entered into the database twice. I unsubscribed and resubscribed and that
> > fixed it. SO, worth a shot. worst that can happen is you miss a couple of
> > emails and have to check the archives. Heaven forbid we do that
> > though. Cuz
> > that'd be like, ummm, following the rules of Newbie Law. Or so it's
> > wrote. (enter more ramble cuz it's 12:00midnight and I have nothing
> > better to do)::
> > exit looney!
> >
> > Wolf. :)
> > HTH

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee

>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgMlaaIgMKkVlSLQRAtICAKC3nFiAN0SOYD5CqI09BcIlKLn9pgCcDh0y
jvxQw/lB3tJMo5mhsSSkA6U=
=81OX
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
[snip]
> [stuff you may not need]
> This is a boiled down version of a longer function that counts string
> lengths to determine how many dashes might need to be added. Let's say
> you have the area code in the number, like 2108765432. Being a ten
digit
> number with a recognizable area code we can then add a portion to the
> function to add the two needed dashes, making the number more
readable.
> [/stuff]

I'd love to see that larger function, if you care to share.
[/snip]

Here is a little more of the larger function with comments (more
comments than code, which is never a Bad Thing [tm]). I am only showing
the handling for two basic types of telephone numbers with explanation
for additional verification which we would typically use, since we have
those resources available.

<?php
/*
** Dashing Through The TN's
** addTNDashes.func
**
*/
function addTNDashes($originalTN){
        /* 
        ** get the length of the number passed 
        ** you could also make sure that the string is numeric here
        ** and throw an appropriate error if not
        */
        $lengthTN = strlen($originalTN);
        /*
        ** in this example we are going to examine two basic types of
        ** phone numbers, the seven digit and the ten digit
        ** you can add other conditions for other standard formats of
        ** world wide TNs
        */
        if(7 == $lengthTN){
                /* 
                ** here we dash our seven digit number
                ** we could also validate the first three numbers as
                ** a valid NXX (exchange) if we had a list or DB of NXXs
                */
                $newTN = substr($originalTN, 0, 3) . "-" .
substr($originalTN, 3, 4);
        } elseif(10 == $lengthTN){
                /*
                ** here we dash our ten digit number
                ** we could also validate the first three numbers as
                ** a valid NPA (area code) if we had a list or DB of
NPAs
                */
                $newTN = substr($originalTN, 0, 3) . "-" .
substr($originalTN, 3, 3) . "-" . substr($originalTN, 6, 4);
        } elseif(7 < $lengthTN){
                /*
                ** the number is way too short to be a phone number
                ** let's throw an error and exit
                ** don't forget to set up some sort of error-logging for
this kind
                ** of thing for all of your errors
                */
                echo "The number you have supplied to the application
does not appear to be\n";
                echo "the correct format for any known telephone number.
Please correct this\n";
                echo "and restart application.\n";
                $appLog = fopen("application_error.log", "a");
                /* do error logging as you wish, dates, times, user ids,
etc */
                fclose($appLog);
                exit();
        }
        
        return $newTN;
}
?>

--- End Message ---
--- Begin Message ---
On 15-Apr-2004 Chris W. Parker wrote:
<snip>
> for($i = 0; $i < $numofrows; $i++)
> {
>       ...
>       $row_color = ($i % 2 == 0) ? "yellow" : "white" ;

        $row_color = $row_color == "yellow" ? "white" : "yellow" ;

> 
>       echo "<tr bgcolor=\"$row_color\">\n";
>       ...

Regards,
-- 
Don Read                                     [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 16 Apr 2004 18:18, John Nichel wrote:
> David A. Stevens wrote:
> > Please remove my address from any future correspondence about PHP.
>
> Allrighty then.  I warned ya Davey...you're on yer way to /dev/null.  If
> you're lucky, I won't post your email to any porn lists or USENET.

But I might ;)

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee

>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgDJvaIgMKkVlSLQRAnKOAJ48FP60qgOpjGegMs2+UnUGDdbEYACfSjYS
8tLVxnY5/Si80AoJeS1M4Qw=
=HjAU
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
Trying to figure out which would provide more choices or controls...  See, I
usually compile PHP with those prefix options to allow it to take in cURL,
mCrypt, OpenSSL, etc...  Later, if I need to add something then I can redo
the PHP configuration with additional prefix and recompile PHP.  All of this
before compiling Apache.  People have been bugging me to use the RPM for
Linux instead.  I hestiate on it because my understanding of RPM is that it
is a compiled program that is then packaged up into RPM.  Well correct me if
I'm wrong.  I never done the RPM before and I hestiate on it because what if
it doesn't include the cURL support or mCrypt support or OpenSSL support?
What if I need to add something to PHP, would it work by redoing something
to the PHP RPM?  I want to hear your knowledge, opinion and advice on this.

Thanks,
 FletchSOD

--- End Message ---
--- Begin Message ---
Hi there,

I run PHP as CGI (because of suEXEC), but some configuration must be wrong.
I just tried out to reload a PHP generated website about 20 or 30 times in
my browser, and this really bogged down the server, I had a load of about 20
or 30.

Is there anything I can do to limit this risk? I already fiddled around with
some configuration variables, but it didn't help. It always created a whole
lot of CGI childs that used up all memory...

I run Apache 2.0 on Linux 2.4.

Thanks!
Florian

--- End Message ---
--- Begin Message ---
Setup:
2 servers, one with PHP 4.1.2 and no MySQL installed, the other has MySQL
and PHP 4.1.2

Problem:
I am attempting to connect to the MySQL server from the server without
MySQL, but I get the error that shows in the subject.

Fatal error: Call to undefined function: mysql_connect() in
/folder/index.php on line 11

I was told that maybe the extension for MySQL was not setup in PHP.  I
thought that maybe it was just because MySQL wasnt installed on the system I
am working on, but it makes sense that I am not trying to access a database
on the system I am working from, but trying to access one on a different
server all together.

What do you think?

Thanks,
Tim

--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Tim) wrote in
news:[EMAIL PROTECTED]: 

> Setup:
> 2 servers, one with PHP 4.1.2 and no MySQL installed, the other has
> MySQL and PHP 4.1.2
> 
> Problem:
> I am attempting to connect to the MySQL server from the server without
> MySQL, but I get the error that shows in the subject.
> 
> Fatal error: Call to undefined function: mysql_connect() in
> /folder/index.php on line 11
> 
> I was told that maybe the extension for MySQL was not setup in PHP.  I
> thought that maybe it was just because MySQL wasnt installed on the
> system I am working on, but it makes sense that I am not trying to
> access a database on the system I am working from, but trying to
> access one on a different server all together.
> 
> What do you think?

I think the error message tells it all - there is no mysql support in the 
php you are using. You'll need to recompile with php support, or load a 
mysql extension library. 

Cheers

--- End Message ---

Reply via email to