[PHP] Re: header()-question

2002-09-03 Thread Erwin

 Fatal error: Cannot redeclare createlinks()
 (previously declared in c:\apache\htdocs\ha\recycle\lankar.php:6) in
 c:\apache\htdocs\ha\recycle\lankar.php on line 5

 The problem is: the call for the function createlinks() is done from
 the previous page (index.php), the file where I user header(), and I
 can't see that the function has bin called for yet.

It doens't look like a call problem, but, as the message says, a
redeclaration in file lankar.php.
It looks like you have something like below in lankar.php at line 5 and 6.

function createlinks()
function createlinks()
{
 ...
}

The function createlinks() has been defined more then once. You should check
your include files.

HTH
Erwin



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




[PHP] Re: header()-question

2002-09-02 Thread nicos

Dont use a directory but an url
like
header(Location: http://www.php.net;);


--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
ØYstein HåLand [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 I use this code with the intension to REDIRECT to the file login.php

 if (!isset($login)) {
 header(Location: /ha/login/log.php?goal=loggoback=$PHP_SELF);
 } else {
 some code here
 }

 When I load the page the following happens: The source show the filename
 with this script and not the log.php, but the content is from log.php
 I don't understand nthing.
 So, if header() don't do redirection, which php-function does?
 (Or, is there a better way to achieve the same?)





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




[PHP] Re: header()-question

2002-09-02 Thread Øystein Håland


[EMAIL PROTECTED] skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Dont use a directory but an url
 like
 header(Location: http://www.php.net;);

Thanks, that made it work.
But now comes the next problem. When finshed logging in login.php is
reloaded with a confirmation text ('You're logged in. Click the button to go
back'). But, at the bottom of the page the following error message appears:
Fatal error: Cannot redeclare createlinks() (previously declared in
c:\apache\htdocs\ha\recycle\lankar.php:6) in
c:\apache\htdocs\ha\recycle\lankar.php on line 5

The problem is: the call for the function createlinks() is done from the
previous page (index.php), the file where I user header(), and I can't see
that the function has bin called for yet. Index.php looks as follows:
?php
if (!isset($login)) {
header(Location:
http://127.0.0.1/ha/login/login.php?goal=loggoback=$PHP_SELF;);
} else {
  include(../recycle/head.php);

 if($skrivut != jepp) { createLinks(); }

  include(../gjenvinn/foot.php);
 }
?



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




[PHP] Re: Header question

2002-04-28 Thread Yuri Petro

Just replace the last line with:

@mail ($To,$Subject,$Message,From: $EmailSender\nReply-To:
$EmailSender);

--
Kind regards,
Yuri.

 www.AceHoster.com  Quality web hosting


Dean Ouellette [EMAIL PROTECTED] ???/ ?  ?:
000e01c1eef4$07cbeb40$0200a8c0@yoda">news:000e01c1eef4$07cbeb40$0200a8c0@yoda...

 I have a tell a friend script and got the php script from a friend to
 make it work.  I am a newbie so still do not fully udners stand it.
 Here is the problem, it puts the following at the top of each e-mail:
 X-Mailer: PHP/4.1.2


 Here is the script:

 ?php
 $Subject = Look at this, I think you will like it; //The Emails
 subject
 $Email[] = [EMAIL PROTECTED];
 reset ($Email);
 while (list(, $To) = each ($Email)) {
 @mail ($To,$Subject,$Message,From: $EmailSender\nReply-To:
 $EmailSender\nX-Mailer: PHP/.phpversion());
 }

 ?





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




RE: Re[2]: [PHP] Re: Header question

2002-04-28 Thread Dean Ouellette


Not sure what is happening.  Still getting same error.  As soon as I
remove
\nX-Mailer: PHP/.phpversion()
I get the error message



___-
May be you just made incorrect modification...
Correct php code:

?php
 $Subject = Look at this, I think you will like it; //The Emails
subject
 $Message = Your message here;
 $Email[] = [EMAIL PROTECTED];
 reset ($Email);
 while (list(, $To) = each ($Email)) {
 @mail ($To,$Subject,$Message,From: $EmailSender\nReply-To:
$EmailSender);
 }
?

Best regards,
Yuri.
www.AceHoster.com - your one stop web hosting shop

 Original Message 
From: Dean Ouellette [EMAIL PROTECTED]
To: 'Yuri Petro' [EMAIL PROTECTED]
Subject: [PHP] Re: Header question


Now I get an error says Parse error: parse error in
/usr/local/psa/home/vhosts/sitename.com/httpdocs/involved/friendsubmit.p
hp on line 165

Line 165 is a /tr

-Original Message-
From: Yuri Petro [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, April 28, 2002 5:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Header question

Just replace the last line with:

@mail ($To,$Subject,$Message,From: $EmailSender\nReply-To:
$EmailSender);

--
Kind regards,
Yuri.

 www.AceHoster.com  Quality web hosting


Dean Ouellette [EMAIL PROTECTED] ???/ ? 
?:
000e01c1eef4$07cbeb40$0200a8c0@yoda">news:000e01c1eef4$07cbeb40$0200a8c0@yoda...

 I have a tell a friend script and got the php script from a friend to
 make it work.  I am a newbie so still do not fully udners stand it.
 Here is the problem, it puts the following at the top of each e-mail:
 X-Mailer: PHP/4.1.2


 Here is the script:

 ?php
 $Subject = Look at this, I think you will like it; //The Emails
 subject
 $Email[] = [EMAIL PROTECTED];
 reset ($Email);
 while (list(, $To) = each ($Email)) {
 @mail ($To,$Subject,$Message,From: $EmailSender\nReply-To:
 $EmailSender\nX-Mailer: PHP/.phpversion());
 }

 ?





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


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




RE: Re[2]: [PHP] Re: Header question

2002-04-28 Thread Miguel Cruz

You need a closing quote after $EmailSender...

  $EmailSender);

miguel

On Sun, 28 Apr 2002, Dean Ouellette wrote:
 Not sure what is happening.  Still getting same error.  As soon as I
 remove
 \nX-Mailer: PHP/.phpversion()
 I get the error message
 
 
 
 ___-
 May be you just made incorrect modification...
 Correct php code:
 
 ?php
  $Subject = Look at this, I think you will like it; //The Emails
 subject
  $Message = Your message here;
  $Email[] = [EMAIL PROTECTED];
  reset ($Email);
  while (list(, $To) = each ($Email)) {
  @mail ($To,$Subject,$Message,From: $EmailSender\nReply-To:
 $EmailSender);
  }
 ?
 
 Best regards,
 Yuri.
 www.AceHoster.com - your one stop web hosting shop
 
  Original Message 
 From: Dean Ouellette [EMAIL PROTECTED]
 To: 'Yuri Petro' [EMAIL PROTECTED]
 Subject: [PHP] Re: Header question
 
 
 Now I get an error says Parse error: parse error in
 /usr/local/psa/home/vhosts/sitename.com/httpdocs/involved/friendsubmit.p
 hp on line 165
 
 Line 165 is a /tr
 
 -Original Message-
 From: Yuri Petro [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, April 28, 2002 5:17 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: Header question
 
 Just replace the last line with:
 
 @mail ($To,$Subject,$Message,From: $EmailSender\nReply-To:
 $EmailSender);
 
 --
 Kind regards,
 Yuri.
 
  www.AceHoster.com  Quality web hosting
 
 
 Dean Ouellette [EMAIL PROTECTED] ???/ ? 
 ?:
 000e01c1eef4$07cbeb40$0200a8c0@yoda">news:000e01c1eef4$07cbeb40$0200a8c0@yoda...
 
  I have a tell a friend script and got the php script from a friend to
  make it work.  I am a newbie so still do not fully udners stand it.
  Here is the problem, it puts the following at the top of each e-mail:
  X-Mailer: PHP/4.1.2
 
 
  Here is the script:
 
  ?php
  $Subject = Look at this, I think you will like it; //The Emails
  subject
  $Email[] = [EMAIL PROTECTED];
  reset ($Email);
  while (list(, $To) = each ($Email)) {
  @mail ($To,$Subject,$Message,From: $EmailSender\nReply-To:
  $EmailSender\nX-Mailer: PHP/.phpversion());
  }
 
  ?
 
 
 
 
 
 


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




Re: Re[2]: [PHP] Re: Header question

2002-04-28 Thread Vins

in order to add a new line to a  mail header you need not use '\n'
you MUST use '\r\n' otherwise no headers will be sent.



Dean Ouellette [EMAIL PROTECTED] wrote in message
001901c1ef06$697b3910$0200a8c0@yoda">news:001901c1ef06$697b3910$0200a8c0@yoda...

 Not sure what is happening.  Still getting same error.  As soon as I
 remove
 \nX-Mailer: PHP/.phpversion()
 I get the error message



 ___-
 May be you just made incorrect modification...
 Correct php code:

 ?php
  $Subject = Look at this, I think you will like it; //The Emails
 subject
  $Message = Your message here;
  $Email[] = [EMAIL PROTECTED];
  reset ($Email);
  while (list(, $To) = each ($Email)) {
  @mail ($To,$Subject,$Message,From: $EmailSender\nReply-To:
 $EmailSender);
  }
 ?

 Best regards,
 Yuri.
 www.AceHoster.com - your one stop web hosting shop

  Original Message 
 From: Dean Ouellette [EMAIL PROTECTED]
 To: 'Yuri Petro' [EMAIL PROTECTED]
 Subject: [PHP] Re: Header question


 Now I get an error says Parse error: parse error in
 /usr/local/psa/home/vhosts/sitename.com/httpdocs/involved/friendsubmit.p
 hp on line 165

 Line 165 is a /tr

 -Original Message-
 From: Yuri Petro [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 28, 2002 5:17 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: Header question

 Just replace the last line with:

 @mail ($To,$Subject,$Message,From: $EmailSender\nReply-To:
 $EmailSender);

 --
 Kind regards,
 Yuri.

  www.AceHoster.com  Quality web hosting


 Dean Ouellette [EMAIL PROTECTED] ???/ ? 
 ?:
 000e01c1eef4$07cbeb40$0200a8c0@yoda">news:000e01c1eef4$07cbeb40$0200a8c0@yoda...
 
  I have a tell a friend script and got the php script from a friend to
  make it work.  I am a newbie so still do not fully udners stand it.
  Here is the problem, it puts the following at the top of each e-mail:
  X-Mailer: PHP/4.1.2
 
 
  Here is the script:
 
  ?php
  $Subject = Look at this, I think you will like it; //The Emails
  subject
  $Email[] = [EMAIL PROTECTED];
  reset ($Email);
  while (list(, $To) = each ($Email)) {
  @mail ($To,$Subject,$Message,From: $EmailSender\nReply-To:
  $EmailSender\nX-Mailer: PHP/.phpversion());
  }
 
  ?
 
 



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




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