php-general Digest 3 Apr 2006 00:02:13 -0000 Issue 4049

2006-04-02 Thread php-general-digest-help

php-general Digest 3 Apr 2006 00:02:13 - Issue 4049

Topics (messages 233085 through 233090):

Re: microsoft PHP ?
233085 by: tedd
233086 by: Miles Thompson
233087 by: Zouari Fourat
233088 by: tedd

return path of mail function
233089 by: Andrew Darrow
233090 by: Chris

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:
php-general@lists.php.net


--
---BeginMessage---

At 4:20 PM -0500 4/1/06, Joe Wollard wrote:

Leave poor Zouari alone! I for one think that Microsoft buying Zend would be
the best thing to happen to PHP, EVAR!


You might not think that way if you had been developing in M$ 
QuickBASIC for the Mac. One day M$ just said Nope, the line isn't 
making the money we want, so we're dropping it. There were a lot of 
developers who were left hanging -- I wouldn't want to be there again.


If at all possible, I choose any alternative over what M$ provides.

tedd
--

http://sperling.com
---End Message---
---BeginMessage---

At 11:38 AM 4/2/2006, tedd wrote:


At 4:20 PM -0500 4/1/06, Joe Wollard wrote:

Leave poor Zouari alone! I for one think that Microsoft buying Zend would be
the best thing to happen to PHP, EVAR!


You might not think that way if you had been developing in M$ QuickBASIC 
for the Mac. One day M$ just said Nope, the line isn't making the money 
we want, so we're dropping it. There were a lot of developers who were 
left hanging -- I wouldn't want to be there again.


If at all possible, I choose any alternative over what M$ provides.

tedd
--


Ditto to what Tedd just wrote - a major client has a project stranded 
forever in VB6 because MSFT broke the model with VB.NET. There are 
constructs and structures which were perfectly legitimate when it was first 
conceived, when VB4 was the current version.


So - when I was asked to write a little app to maintain some subscriber 
billing info and create some reports on the desktop side, which could have 
been done in Excel, I opted for PHP, PHP-GTK and MySQL. There was a 
learning curve with PHP-GTK's layout (Glade helped a lot!!) but this will 
continue to work, Windows or Linux, and should run on later Macs.


Great feeling!

Miles 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 3/31/2006
---End Message---
---BeginMessage---
the best april joke i got :)

On 4/2/06, tedd [EMAIL PROTECTED] wrote:
 At 4:20 PM -0500 4/1/06, Joe Wollard wrote:
 Leave poor Zouari alone! I for one think that Microsoft buying Zend would be
 the best thing to happen to PHP, EVAR!

 You might not think that way if you had been developing in M$
 QuickBASIC for the Mac. One day M$ just said Nope, the line isn't
 making the money we want, so we're dropping it. There were a lot of
 developers who were left hanging -- I wouldn't want to be there again.

 If at all possible, I choose any alternative over what M$ provides.

 tedd
 --
 
 http://sperling.com

---End Message---
---BeginMessage---

At 5:00 PM +0200 4/2/06, Zouari Fourat wrote:

the best april joke i got :)


It wasn't a joke.

M$ has one thing on their mind, and that is $.

If their bottom line isn't improved by whatever they produce, then 
they drop it. If it hurts thousands of developers who supported their 
product in process, then that's to be expected -- after all it's M$


That reminds me of story about a young girl who in the middle of 
winter came across a poisonous snake laying in the snow. She picked 
up the snake and took it in doors and placed it by the fire and gave 
it warm food and drink and saved the snake's life. The snake, after 
being revived, bit her. She proclaimed Why did you do that?  I saved 
your life and now because you bit me, I'll die. The snake replied I 
don't understand your confusion, you knew I was a snake when you 
found me.


Whenever possible, I now take the fork in the road not traveled by M$.

tedd

--

http://sperling.com
---End Message---
---BeginMessage---
I'm having a problem setting the return-path using the mail function. I seem to 
be able to modify any of the other header information I want, but not this one 
item. 

Here's my code:
$headers =  Return-Path: Test test@test.com\r\n .
   From: Test test@test.com\r\n .
   Reply-To: Test test@test.com\r\n;

$sub=Test sub;
$msg=Test msg;

$to=[EMAIL PROTECTED];

mail($to, $sub, $msg, $headers, '-f test@test.com');




And here's the headers that come in: 
Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Sun, 02 Apr 

Re: [PHP] microsoft PHP ?

2006-04-02 Thread Kevin Waterson
This one time, at band camp, Matt Richards [EMAIL PROTECTED] wrote:

 Zouari Fourat: lol, bet you feel silly now :)

Of course, the real give away in the original article on www.phpro.org was the
MS CEO Al Porfoli is an anagram of April Fool

Kevin


-- 
Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] microsoft PHP ?

2006-04-02 Thread tedd

At 4:20 PM -0500 4/1/06, Joe Wollard wrote:

Leave poor Zouari alone! I for one think that Microsoft buying Zend would be
the best thing to happen to PHP, EVAR!


You might not think that way if you had been developing in M$ 
QuickBASIC for the Mac. One day M$ just said Nope, the line isn't 
making the money we want, so we're dropping it. There were a lot of 
developers who were left hanging -- I wouldn't want to be there again.


If at all possible, I choose any alternative over what M$ provides.

tedd
--

http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] microsoft PHP ?

2006-04-02 Thread Miles Thompson

At 11:38 AM 4/2/2006, tedd wrote:


At 4:20 PM -0500 4/1/06, Joe Wollard wrote:

Leave poor Zouari alone! I for one think that Microsoft buying Zend would be
the best thing to happen to PHP, EVAR!


You might not think that way if you had been developing in M$ QuickBASIC 
for the Mac. One day M$ just said Nope, the line isn't making the money 
we want, so we're dropping it. There were a lot of developers who were 
left hanging -- I wouldn't want to be there again.


If at all possible, I choose any alternative over what M$ provides.

tedd
--


Ditto to what Tedd just wrote - a major client has a project stranded 
forever in VB6 because MSFT broke the model with VB.NET. There are 
constructs and structures which were perfectly legitimate when it was first 
conceived, when VB4 was the current version.


So - when I was asked to write a little app to maintain some subscriber 
billing info and create some reports on the desktop side, which could have 
been done in Excel, I opted for PHP, PHP-GTK and MySQL. There was a 
learning curve with PHP-GTK's layout (Glade helped a lot!!) but this will 
continue to work, Windows or Linux, and should run on later Macs.


Great feeling!

Miles 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 3/31/2006

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] microsoft PHP ?

2006-04-02 Thread Zouari Fourat
the best april joke i got :)

On 4/2/06, tedd [EMAIL PROTECTED] wrote:
 At 4:20 PM -0500 4/1/06, Joe Wollard wrote:
 Leave poor Zouari alone! I for one think that Microsoft buying Zend would be
 the best thing to happen to PHP, EVAR!

 You might not think that way if you had been developing in M$
 QuickBASIC for the Mac. One day M$ just said Nope, the line isn't
 making the money we want, so we're dropping it. There were a lot of
 developers who were left hanging -- I wouldn't want to be there again.

 If at all possible, I choose any alternative over what M$ provides.

 tedd
 --
 
 http://sperling.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] microsoft PHP ?

2006-04-02 Thread tedd

At 5:00 PM +0200 4/2/06, Zouari Fourat wrote:

the best april joke i got :)


It wasn't a joke.

M$ has one thing on their mind, and that is $.

If their bottom line isn't improved by whatever they produce, then 
they drop it. If it hurts thousands of developers who supported their 
product in process, then that's to be expected -- after all it's M$


That reminds me of story about a young girl who in the middle of 
winter came across a poisonous snake laying in the snow. She picked 
up the snake and took it in doors and placed it by the fire and gave 
it warm food and drink and saved the snake's life. The snake, after 
being revived, bit her. She proclaimed Why did you do that?  I saved 
your life and now because you bit me, I'll die. The snake replied I 
don't understand your confusion, you knew I was a snake when you 
found me.


Whenever possible, I now take the fork in the road not traveled by M$.

tedd

--

http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] return path of mail function

2006-04-02 Thread Andrew Darrow
I'm having a problem setting the return-path using the mail function. I seem to 
be able to modify any of the other header information I want, but not this one 
item. 

Here's my code:
$headers =  Return-Path: Test test@test.com\r\n .
   From: Test test@test.com\r\n .
   Reply-To: Test test@test.com\r\n;

$sub=Test sub;
$msg=Test msg;

$to=[EMAIL PROTECTED];

mail($to, $sub, $msg, $headers, '-f test@test.com');




And here's the headers that come in: 
Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Sun, 02 Apr 2006 15:19:45 -0500
Received: from nobody by amsterdam.servershost.net with local (Exim 4.52)
 id 1FQ933-00082V-8q
 for [EMAIL PROTECTED]; Sun, 02 Apr 2006 15:19:45 -0500
To: [EMAIL PROTECTED]
Subject: Test sub
X-PHP-Script: www.drewpydraws.com/crap.php for ip address
From: Test test@test.com
Reply-To: Test test@test.com
Message-Id: [EMAIL PROTECTED]
Date: Sun, 02 Apr 2006 15:19:45 -0500
X-Antivirus: AVG for E-mail 7.1.385 [268.3.4/299]
Mime-Version: 1.0
Content-Type: text/plain

The From and Reply-To get set correctly so it works fine on e-mail clients, 
but some of the messages will be delievered to cell phones that display the 
return-path instead of from and reply-to. 

Any thoughts on how I would go about setting the value for Return-Path?

~Drew
www.drewpydraws.com

Re: [PHP] return path of mail function

2006-04-02 Thread Chris

Andrew Darrow wrote:
I'm having a problem setting the return-path using the mail function. I seem to be able to modify any of the other header information I want, but not this one item. 


Here's my code:
$headers =  Return-Path: Test test@test.com\r\n .
   From: Test test@test.com\r\n .
   Reply-To: Test test@test.com\r\n;

$sub=Test sub;
$msg=Test msg;

$to=[EMAIL PROTECTED];

mail($to, $sub, $msg, $headers, '-f test@test.com');


No space between -f and the email.

I assume your host doesn't have safe-mode on? (You can't use this method 
if so).


Check a phpinfo page and look for:

sendmail_from

If that's set, this way won't do it either, you'll need to do:

$orig_sendmail_from = ini_get('sendmail_from');

// this should match what phpinfo tells you but replace the email. so 
might be '-f'.$return_path

ini_set('sendmail_from', $return_path);

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

and leave off the last parameter.

--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] microsoft PHP ?

2006-04-02 Thread Chris Shiflett

Joe Wollard wrote:

I made fun of Chris and Rasmus specifically because I
know they're on this list.


I appreciate being considered important enough to make fun of.

Thanks! :-)

Chris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] microsoft PHP ?

2006-04-02 Thread Joe Wollard
Just as long as everyone knows that everything I said was all in good fun.
Next time I'll be sure to use sarcasam just to be sure nothing is taken
the wrong way ;-)

On 4/2/06, Chris Shiflett [EMAIL PROTECTED] wrote:

 Joe Wollard wrote:
  I made fun of Chris and Rasmus specifically because I
  know they're on this list.

 I appreciate being considered important enough to make fun of.

 Thanks! :-)

 Chris



Re: [PHP] microsoft PHP ?

2006-04-02 Thread Matt Richards

quote:
Joe Wollard wrote:
  Just as long as everyone knows that everything I said was all in good 
fun./sarcasam
  Next time I'll be sure to use sarcasam just to be sure nothing is 
taken the wrong way ;-)


Joe Wollard wrote:
Just as long as everyone knows that everything I said was all in good 
fun. Next time I'll be sure to use sarcasam just to be sure nothing 
is taken the wrong way ;-)


On 4/2/06, *Chris Shiflett* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Joe Wollard wrote:
 I made fun of Chris and Rasmus specifically because I
 know they're on this list.

I appreciate being considered important enough to make fun of.

Thanks! :-)

Chris




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] microsoft PHP ?

2006-04-02 Thread Matt Richards

oops forgot the first sarcasam .. oh well! :(

Matt Richards wrote:

quote:
Joe Wollard wrote:
  Just as long as everyone knows that everything I said was all in 
good fun./sarcasam
  Next time I'll be sure to use sarcasam just to be sure nothing is 
taken the wrong way ;-)


Joe Wollard wrote:
Just as long as everyone knows that everything I said was all in good 
fun. Next time I'll be sure to use sarcasam just to be sure nothing 
is taken the wrong way ;-)


On 4/2/06, *Chris Shiflett* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Joe Wollard wrote:
 I made fun of Chris and Rasmus specifically because I
 know they're on this list.

I appreciate being considered important enough to make fun of.

Thanks! :-)

Chris






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] microsoft PHP ?

2006-04-02 Thread Joe Wollard
el-oh-el. See, I forgot already. Good lookin' out Matt!

On 4/2/06, Matt Richards [EMAIL PROTECTED] wrote:

 oops forgot the first sarcasam .. oh well! :(

 Matt Richards wrote:
  quote:
  Joe Wollard wrote:
Just as long as everyone knows that everything I said was all in
  good fun./sarcasam
Next time I'll be sure to use sarcasam just to be sure nothing is
  taken the wrong way ;-)
 
  Joe Wollard wrote:
  Just as long as everyone knows that everything I said was all in good
  fun. Next time I'll be sure to use sarcasam just to be sure nothing
  is taken the wrong way ;-)
 
  On 4/2/06, *Chris Shiflett* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  Joe Wollard wrote:
   I made fun of Chris and Rasmus specifically because I
   know they're on this list.
 
  I appreciate being considered important enough to make fun of.
 
  Thanks! :-)
 
  Chris
 
 
 




Re: [PHP] Looping information into a table

2006-04-02 Thread Chris

benifactor wrote:

i am creating a forum and i am having trouble getting the database information 
in to an html table

i believe it has somthing to do with the placement of the while loops because 
they repeat the segment of code over untill the statment returns false, thus 
adding extra html.. you guys are the experts so if you could help i would 
appreaciate it. i will give you the code and an example of how its shows up and 
then how i need it to show up and if you could point me in the right direction 
it would be awsome...


It sure is. You're printing out the heading over and over again inside 
the second loop.


try this code:

http://pastebin.com/637039

I don't know if it was a mail problem, but can I suggest you indent your 
code, it makes it so much easier to see where your loops are.


--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Best authentication method for user

2006-04-02 Thread Alain Roger
 Hi,

I would like to use a secure way how my user is authenticated.
For that i was thinking to use session and register his login and password
as session variable. Like that, when he will need to execute a query he will
not have to type again everything but application will do it alone.

What do you think about that ?

Moreover, it should exist a default user with which, everybody will be able
to execute some basic queries.

i was thinking to store this login and password in hardcoding in some text
file that will be used at the first web page (some file that i will include
in my PHP code) after everything will be managed by PHP sessions and
variables.

i know that hardcoding is not the best secured solution, but really default
user should not enter his login and password. So how can i do that ?

thanks a lot for your answers.
Alain


Re: [PHP] Best authentication method for user

2006-04-02 Thread Chris

Alain Roger wrote:

 Hi,

I would like to use a secure way how my user is authenticated.
For that i was thinking to use session and register his login and password
as session variable. Like that, when he will need to execute a query he will
not have to type again everything but application will do it alone.

What do you think about that ?

Moreover, it should exist a default user with which, everybody will be able
to execute some basic queries.

i was thinking to store this login and password in hardcoding in some text
file that will be used at the first web page (some file that i will include
in my PHP code) after everything will be managed by PHP sessions and
variables.

i know that hardcoding is not the best secured solution, but really default
user should not enter his login and password. So how can i do that ?


What exactly is your application doing? We can't really give much advice 
if we don't know what it's for.


--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best authentication method for user

2006-04-02 Thread Alain Roger
IN fact, i would like to have 2 profiles.

1 as common user :
everybody should use this profile, to browse website and execute common
queries.

1 as poweruser :
this profile will require a logon in some ssl webpage. it is use to
update/administrate database.

for sure, people with poweruser profile should log-in, so they will type
login and their password.

however, the users profile do not have any reason to type login and
password, they should only browse the website.
their login and password will be only use to execute stored
procedures/queries.
that's why i would like to find a way how to secure it enough but login and
password should come from somewhere.

the application : a simple MySQL-PHP website for cosmetics services. (so
prices, info, appointment reservation,..)

does it help you ?

Alain



On 4/3/06, Chris [EMAIL PROTECTED] wrote:

 Alain Roger wrote:
   Hi,
 
  I would like to use a secure way how my user is authenticated.
  For that i was thinking to use session and register his login and
 password
  as session variable. Like that, when he will need to execute a query he
 will
  not have to type again everything but application will do it alone.
 
  What do you think about that ?
 
  Moreover, it should exist a default user with which, everybody will be
 able
  to execute some basic queries.
 
  i was thinking to store this login and password in hardcoding in some
 text
  file that will be used at the first web page (some file that i will
 include
  in my PHP code) after everything will be managed by PHP sessions and
  variables.
 
  i know that hardcoding is not the best secured solution, but really
 default
  user should not enter his login and password. So how can i do that ?

 What exactly is your application doing? We can't really give much advice
 if we don't know what it's for.

 --
 Postgresql  php tutorials
 http://www.designmagick.com/



Re: [PHP] Best authentication method for user

2006-04-02 Thread Chris

Alain Roger wrote:

IN fact, i would like to have 2 profiles.

1 as common user :
everybody should use this profile, to browse website and execute common 
queries.


1 as poweruser :
this profile will require a logon in some ssl webpage. it is use to 
update/administrate database.


for sure, people with poweruser profile should log-in, so they will type 
login and their password.


however, the users profile do not have any reason to type login and 
password, they should only browse the website.
their login and password will be only use to execute stored 
procedures/queries.
that's why i would like to find a way how to secure it enough but login 
and password should come from somewhere.


the application : a simple MySQL-PHP website for cosmetics services. (so 
prices, info, appointment reservation,..)


I'd do it like this..

A non-logged-in user should only be doing searching, browsing 
categories, possibly adding to a shopping cart (if it exists).


A logged-in user can make appointments.

A super-user can change prices, make new categories and so on (in your 
admin area).


Store details in the db  session - or for a shopping cart, in a cookie 
so they can come back later and complete a purchase.




On 4/3/06, *Chris* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

Alain Roger wrote:
   Hi,
 
  I would like to use a secure way how my user is authenticated.
  For that i was thinking to use session and register his login and
password
  as session variable. Like that, when he will need to execute a
query he will
  not have to type again everything but application will do it alone.
 
  What do you think about that ?
 
  Moreover, it should exist a default user with which, everybody
will be able
  to execute some basic queries.
 
  i was thinking to store this login and password in hardcoding in
some text
  file that will be used at the first web page (some file that i
will include
  in my PHP code) after everything will be managed by PHP
sessions and
  variables.
 
  i know that hardcoding is not the best secured solution, but
really default
  user should not enter his login and password. So how can i do that ?

What exactly is your application doing? We can't really give much
advice
if we don't know what it's for.

--
Postgresql  php tutorials
http://www.designmagick.com/





--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] return path of mail function

2006-04-02 Thread Chris

[EMAIL PROTECTED] wrote:

Safe mode is indeed off and sendmail_from has no value. I've modified the
code as below:

$return=test@test.com;
$orig_sendmail_from = ini_get('sendmail_from');
ini_set('sendmail_from', $return);

$headers =  From: Test test@test.com\r\n .
   Reply-To: Test test@test.com\r\n;

$sub=Test sub;
$msg=Test msg;
$to=[EMAIL PROTECTED];

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


What headers do you get when you do this?

--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] return path of mail function

2006-04-02 Thread sub
The same as before:

Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Mon, 03 Apr 2006 00:35:34 -0500
Received: from nobody by amsterdam.servershost.net with local (Exim 4.52)
 id 1FQHiw-Kf-E4
 for [EMAIL PROTECTED]; Mon, 03 Apr 2006 00:35:34 -0500
To: [EMAIL PROTECTED]
Subject: Test sub
X-PHP-Script: www.drewpydraws.com/crap.php for ip address
From: Test test@test.com
Reply-To: Test test@test.com
Message-Id: [EMAIL PROTECTED]
Date: Mon, 03 Apr 2006 00:35:34 -0500
X-Antivirus: AVG for E-mail 7.1.385 [268.3.4/299]
Mime-Version: 1.0
Content-Type: text/plain


~Drew
www.drewpydraws.com
- Original Message - 
From: Chris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Sunday, April 02, 2006 10:31 PM
Subject: Re: [PHP] return path of mail function


 [EMAIL PROTECTED] wrote:
  Safe mode is indeed off and sendmail_from has no value. I've modified
the
  code as below:
 
  $return=test@test.com;
  $orig_sendmail_from = ini_get('sendmail_from');
  ini_set('sendmail_from', $return);
 
  $headers =  From: Test test@test.com\r\n .
 Reply-To: Test test@test.com\r\n;
 
  $sub=Test sub;
  $msg=Test msg;
  $to=[EMAIL PROTECTED];
 
  mail($to, $sub, $msg, $headers);

 What headers do you get when you do this?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] return path of mail function

2006-04-02 Thread sub
Safe mode is indeed off and sendmail_from has no value. I've modified the
code as below:

$return=test@test.com;
$orig_sendmail_from = ini_get('sendmail_from');
ini_set('sendmail_from', $return);

$headers =  From: Test test@test.com\r\n .
   Reply-To: Test test@test.com\r\n;

$sub=Test sub;
$msg=Test msg;
$to=[EMAIL PROTECTED];

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

Still doesn't work. I also tried modifying the5th argument as
[EMAIL PROTECTED] and [EMAIL PROTECTED] neither of those worked either.

I'm not sure what i'm missing here. If it would help to view the phpinfo
from my host, you may do so here http://drewpydraws.com/phpinfo.php

~Drew
www.drewpydraws.com

- Original Message - 
From: Chris [EMAIL PROTECTED]
To: Andrew Darrow [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Sunday, April 02, 2006 5:02 PM
Subject: Re: [PHP] return path of mail function


 Andrew Darrow wrote:
  I'm having a problem setting the return-path using the mail function. I
seem to be able to modify any of the other header information I want, but
not this one item.
 
  Here's my code:
  $headers =  Return-Path: Test test@test.com\r\n .
 From: Test test@test.com\r\n .
 Reply-To: Test test@test.com\r\n;
 
  $sub=Test sub;
  $msg=Test msg;
 
  $to=[EMAIL PROTECTED];
 
  mail($to, $sub, $msg, $headers, '-f test@test.com');

 No space between -f and the email.

 I assume your host doesn't have safe-mode on? (You can't use this method
 if so).

 Check a phpinfo page and look for:

 sendmail_from

 If that's set, this way won't do it either, you'll need to do:

 $orig_sendmail_from = ini_get('sendmail_from');

 // this should match what phpinfo tells you but replace the email. so
 might be '-f'.$return_path
 ini_set('sendmail_from', $return_path);

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

 and leave off the last parameter.

 -- 
 Postgresql  php tutorials
 http://www.designmagick.com/

 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





 -- 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 3/31/2006



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best authentication method for user

2006-04-02 Thread Ligaya Turmelle



For that i was thinking to use session and register his login and password
as session variable. 



What do you think about that ?

I personally would only hold a password for as long as it is needed to 
log them in.  Then I'd set a session var that they have logged in and 
another session var for their level of access.


But that's me.


--

life is a game... so have fun.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php