[PHP] RE: headers help

2010-03-12 Thread MEM
> I've had a quick look and this: http://pastebin.com/RswEBPLd may work; > if not though you want to view the source of an email from anywhere > which displays correctly; and the source of one from your application - > then compare to get the fix :) > > Regards! Thanks Nathan, I will give it a t

[PHP] Re: headers help

2010-03-12 Thread Nathan Rixham
MEM wrote: > Hello all, > > I must confess I know the very basics on this language and have even less > knowledge about http headers. I wish you could help me out on this: mime headers not http :) > I have a form that sends html e-mails and an optional file as attachment. > The issue is that, if

[PHP] Re: headers-excel file-bad data

2007-07-31 Thread blackwater dev
Looks like I have an empty space somewhere...this code is called down in a class and if I just cut this out and copy into it's own file and call that file from the browser, it works fine. It is someone getting garbled down in the class. On 7/31/07, blackwater dev <[EMAIL PROTECTED]> wrote: > > He

Re: [PHP] Re: headers and newline at end of script

2006-07-22 Thread Robert Cummings
On Sat, 2006-07-22 at 07:54, Martin Marques wrote: > On Thu, 20 Jul 2006, Robert Cummings wrote: > > > On Thu, 2006-07-20 at 17:09, John Nichel wrote: > >> Adam Zey wrote: > >> > >>> Note that just because the fact that it works is a feature, doesn't mean > >>> it's good coding style. register gl

Re: [PHP] Re: headers and newline at end of script

2006-07-22 Thread Martin Marques
On Thu, 20 Jul 2006, Robert Cummings wrote: On Thu, 2006-07-20 at 17:09, John Nichel wrote: Adam Zey wrote: Note that just because the fact that it works is a feature, doesn't mean it's good coding style. register globals is a feature too, but it isn't exactly a good idea to use it. Ding d

Re: [PHP] Re: headers and newline at end of script

2006-07-21 Thread Jochem Maas
Robert Cummings wrote: > On Thu, 2006-07-20 at 16:50, Jochem Maas wrote: >> Robert Cummings wrote: >>> On Thu, 2006-07-20 at 14:15, Martin Marques wrote: On Thu, 20 Jul 2006 13:06:10 -0400, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2006-07-20 at 12:12, Adam Zey wrote:

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Robert Cummings
On Thu, 2006-07-20 at 17:09, John Nichel wrote: > Adam Zey wrote: > > > Note that just because the fact that it works is a feature, doesn't mean > > it's good coding style. register globals is a feature too, but it isn't > > exactly a good idea to use it. > > > > Ding ding ding > > Give that

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Adam Zey
Martin Marques wrote: On Thu, 20 Jul 2006, Adam Zey wrote: Jochem Maas wrote: Robert Cummings wrote: I don't understand - the links point to posts by Rasmus saying that's 'beneficial' - seems to me to be a fairly robust endorsement yet you consider leaving off trailing '?>' wrong (and use Ra

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread John Nichel
Adam Zey wrote: Note that just because the fact that it works is a feature, doesn't mean it's good coding style. register globals is a feature too, but it isn't exactly a good idea to use it. Ding ding ding Give that man a cigar. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Robert Cummings
On Thu, 2006-07-20 at 16:53, Adam Zey wrote: > Jochem Maas wrote: > > I don't understand - the links point to posts by Rasmus saying that's > > 'beneficial' - seems to me to be a fairly robust endorsement yet you > > consider leaving off trailing '?>' wrong (and use Rasmus' comments to > > back tha

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Martin Marques
On Thu, 20 Jul 2006, Adam Zey wrote: Jochem Maas wrote: Robert Cummings wrote: I don't understand - the links point to posts by Rasmus saying that's 'beneficial' - seems to me to be a fairly robust endorsement yet you consider leaving off trailing '?>' wrong (and use Rasmus' comments to back

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Jochem Maas
Robert Cummings wrote: > On Thu, 2006-07-20 at 14:15, Martin Marques wrote: >> On Thu, 20 Jul 2006 13:06:10 -0400, Robert Cummings <[EMAIL PROTECTED]> >> wrote: >>> On Thu, 2006-07-20 at 12:12, Adam Zey wrote: Martin Marques wrote: > Now, my question is: Is it a bad practice to "NOT" c

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Robert Cummings
On Thu, 2006-07-20 at 16:50, Jochem Maas wrote: > Robert Cummings wrote: > > On Thu, 2006-07-20 at 14:15, Martin Marques wrote: > >> On Thu, 20 Jul 2006 13:06:10 -0400, Robert Cummings <[EMAIL PROTECTED]> > >> wrote: > >>> On Thu, 2006-07-20 at 12:12, Adam Zey wrote: > Martin Marques wrote: >

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Adam Zey
Jochem Maas wrote: Robert Cummings wrote: On Thu, 2006-07-20 at 14:15, Martin Marques wrote: On Thu, 20 Jul 2006 13:06:10 -0400, Robert Cummings <[EMAIL PROTECTED]> wrote: On Thu, 2006-07-20 at 12:12, Adam Zey wrote: Martin Marques wrote: > Now, my question is: Is it

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Martin Marques
On Thu, 20 Jul 2006, Stephen Lake wrote: As far as getting the header error resolved, try this: http://ca3.php.net/manual/en/function.ob-start.php I'll stick with not closing my scripts, just like Rasmus said. :-) -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 --

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Stephen Lake
As far as getting the header error resolved, try this: http://ca3.php.net/manual/en/function.ob-start.php HTH Steve "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 2006-07-20 at 14:15, Martin Marques wrote: >> On Thu, 20 Jul 2006 13:06:10 -0400, Robert Cumm

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Robert Cummings
On Thu, 2006-07-20 at 14:15, Martin Marques wrote: > On Thu, 20 Jul 2006 13:06:10 -0400, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Thu, 2006-07-20 at 12:12, Adam Zey wrote: > >> Martin Marques wrote: > >> > Now, my question is: Is it a bad practice to "NOT" close the script > >> with > >>

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Martin Marques
On Thu, 20 Jul 2006 13:06:10 -0400, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2006-07-20 at 12:12, Adam Zey wrote: >> Martin Marques wrote: >> > Now, my question is: Is it a bad practice to "NOT" close the script >> with >> > the PHP closing "?>"? I mean, just leave the script without

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Robert Cummings
On Thu, 2006-07-20 at 12:12, Adam Zey wrote: > Martin Marques wrote: > > Now, my question is: Is it a bad practice to "NOT" close the script > with > > the PHP closing "?>"? I mean, just leave the script without a closing > > PHP simbols, as this scripts are included? > > Yes. Wrong :) Cheer

[PHP] Re: headers and newline at end of script

2006-07-20 Thread tedd
Hi: So is the consensuses here to NOT close the "?>" tag? tedd -- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: headers and newline at end of script

2006-07-20 Thread Adam Zey
Martin Marques wrote: > Now, my question is: Is it a bad practice to "NOT" close the script with the PHP closing "?>"? I mean, just leave the script without a closing PHP simbols, as this scripts are included? Yes. Regards, Adam. -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Re: headers .vs javascript location.href

2005-09-19 Thread Al
bruce wrote: hi.. need to talk to someone to figure out how/what i need to do to use the php 'headers' function, as opposed to the javascript 'location.href'. i've tried to implement the buffering functions, but still get the same error... is there someone that i can talk to about this, who ha

Re: [PHP] Re: headers .vs javascript location.href

2005-09-18 Thread Gustav Wiberg
- Original Message - From: "bruce" <[EMAIL PROTECTED]> To: "'Jasper Bryant-Greene'" <[EMAIL PROTECTED]>; Sent: Monday, September 19, 2005 6:14 AM Subject: RE: [PHP] Re: headers .vs javascript location.href regardless... i've tried to

Re: [PHP] Re: headers .vs javascript location.href

2005-09-18 Thread Jasper Bryant-Greene
bruce wrote: i've tried to resolve my issue using the buffering functions and still get the same error... if someone wants to look/examine my code, i'm more than willing to let you see it... it's a test app so there's nothing of critical importance. Please don't top-post. Fire the trimmed-down

RE: [PHP] Re: headers .vs javascript location.href

2005-09-18 Thread bruce
al Message- From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED] Sent: Sunday, September 18, 2005 6:03 PM To: php-general@lists.php.net Subject: Re: [PHP] Re: headers .vs javascript location.href Tim Van Wassenhove wrote: > On 2005-09-17, "bruce" <[EMAIL PROTECTED]> wrote: >

Re: [PHP] Re: headers .vs javascript location.href

2005-09-18 Thread Jasper Bryant-Greene
Tim Van Wassenhove wrote: On 2005-09-17, "bruce" <[EMAIL PROTECTED]> wrote: need to talk to someone to figure out how/what i need to do to use the php 'headers' function, as opposed to the javascript 'location.href'. i've tried to implement the buffering functions, but still get the same error

[PHP] Re: headers .vs javascript location.href

2005-09-18 Thread Tim Van Wassenhove
On 2005-09-17, "bruce" <[EMAIL PROTECTED]> wrote: > need to talk to someone to figure out how/what i need to do to use the php > 'headers' function, as opposed to the javascript 'location.href'. > > i've tried to implement the buffering functions, but still get the same > error... Now, if you read

[PHP] Re: headers and session (question)

2005-06-06 Thread JamesBenson
It wont get passed because your not passing it along to the script in anyway, at line 3/4 you set the details into the session, then you redirect them to the login page so in your login.php just call the session variables which you just stored at line 3/4. login.php example: Now when you

[PHP] Re: headers and session (question)

2005-06-06 Thread Matthew Weier O'Phinney
* "Alessandro Rosa" <[EMAIL PROTECTED]>: > Here's below the solution (the encryption will be shortly performed > into login.php). > > 1 2 session_start(); > > 3 $_SESSION['session_user'] = $_POST['txtIdUtente']; > 4 $_SESSION['session_password'] = $_POST['txtPassword']; > > 5 $PHPcmd = "login.php"

[PHP] Re: headers and session (question)

2005-06-06 Thread JamesBenson
I use sessions, I also dont store the users password into the session, if you use flat file sessions on a shared server then storing the password should be avoided, What I do is take a username and password, verify their details against database, if their details match one in database I simply

[PHP] Re: headers and session (2)

2005-06-06 Thread JB05UK
Ahhh, for storing session passwords...if you really need to store a password in the session then try using md5, like so... $psw = md5($_POST['txtPassword']); Then to verify a users password just do the same and compare to the stored md5 value in your database. But, its a very bad idea stori

[PHP] Re: headers and session

2005-06-06 Thread JB05UK
You have two calls to header? The first should be changed to:- session_cache_limiter('private'); http://php.net/manual/en/function.session-cache-limiter.php Alessandro Rosa wrote: Hi to all, I got a problem while storing session variables. After the call to header(...), the values of

[PHP] Re: headers and session

2005-06-06 Thread Matthew Weier O'Phinney
* "Alessandro Rosa" <[EMAIL PROTECTED]>: > Hi to all, > > I got a problem while storing session variables. > > session_start(); > header( "Cache-control: private" ); > > require_once("config.inc.php"); > > > $_SESSION['session_psw'] = $_

[PHP] Re: Headers and sessions in php .cgi

2004-01-10 Thread Justin Patrin
BøRge Strand wrote: Hi there, I have a problem setting my headers right with php running as .cgi. I have to specify a Content-type for the cgi file to work. But how should I do both that and start a session? I have a few options: #! /usr/local/bin/php This way $_SESSION['count'] stays unset even

[PHP] Re: Headers Sent Message

2003-11-14 Thread pete M
If the files are included then one of the "catch me's" is when theres a space before or after the tags pete Mark Roberts wrote: Could someone help me out with this. I had this problem about a year ago with another site and I can't for the life of me remember what I had to do to fix it. I am in

[PHP] Re: Headers bust ?

2003-02-15 Thread Malcolm
Hello, I just got two emails explaining my error. Thanks to all. I wasn't thinking right and sort of had my cart before my horse. The fix is simple, put the header call before anything else. I was thinking I had to get the input first -- wrong. All I needed was to put this line first, at the v

Re: Fw: [PHP] Re: headers and cookies

2002-10-30 Thread rolf vreijdenberger
what I found out in the meantime is that you CAN use cookies and headers, just like you said, but my particular problem arose because a notice was issued for an undefined variable; I didn't check correctly for it's existence. so any output, and also output like notices, warnings and errors, just

Re: Fw: [PHP] Re: headers and cookies

2002-10-29 Thread Chris Shiflett
There is no such "restriction of cookies." I think what the manual meant to say was that cookies must be sent prior to any output, which is the same restriction any other header has that you wish to set with the header() function, for example. I have forwarded this along to the documentation te

Fw: [PHP] Re: headers and cookies

2002-10-29 Thread Kevin Stone
kies after you set other headers then use Output Buffering. http://www.php.net/manual/en/function.ob-start.php -Kevin - Original Message - From: "rolf vreijdenberger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 29, 2002 1:59 PM Subject: [PHP] R

[PHP] Re: headers and cookies

2002-10-29 Thread rolf vreijdenberger
but are you really sure that you cannot use setcookie() and header() at the same time?? I cannot find it anywhere, either in the manuals or in tutorials or in the output control functions! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: headers already sent

2002-09-12 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I'm doing a little form: > In the first page i have the form to insert datas,then redirect the > control to a script that check if the filds are correct.If they are > correct redirect the output to a prospect else to the first page.The

[PHP] Re: Headers already sent (Sometimes)

2002-07-23 Thread Richard Lynch
>Im getting Warnings about headers being already sent. But not on my local >web server > >Im sending the headers (to try and make the page not cache) before anything >is echoed to the browser. Somebody somewhere is sending *SOMETHING* to the browser -- possibly a NEWLINE at the tail end of one of

[PHP] Re: Headers not working

2002-04-06 Thread Michael Virnstein
this might be because you use the cgi version of php. to be able to send e.g. 404 header, you have to run php as webserver module which currently only works with apache and linux afaik. otherwise these headers get send by the webserver and you cannot affect them. if you use php with apache as mod

[PHP] Re: headers

2001-12-05 Thread Julio Nobrega Trabalhando
header("Location: example.php?var=$value"); etc... Or sessions... -- Julio Nobrega Don't eat the yellow snow. "Wilbert Enserink" <[EMAIL PROTECTED]> wrote in message 00e101c17d86$a2c391a0$[EMAIL PROTECTED]">news:00e101c17d86$a2c391a0$[EMAIL PROTECTED]... > Hi all, > > > my q: The results o