[PHP] Re: header() and passing sessions

2009-04-15 Thread Shawn McKenzie
Adam Williams wrote: > I need some help passing a session variable with a header() function. > According to www.php.net/header, the documentation states: > > *Note*: Session ID is not passed with Location header even if > session.use_trans_sid > is enabled. It > must by passed manually using *SI

[PHP] Re: header modify errors

2008-12-15 Thread Jon Drukman
Terion Miller wrote: *Warning*: Cannot modify header information - headers already sent by (output started at C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31) in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on line *3* Line 32-36 are: ". $msg .""; } ?> st

Re: [PHP] Re: header modify errors

2008-12-15 Thread Terion Miller
On Mon, Dec 15, 2008 at 11:29 AM, Jay Moore wrote: > Terion Miller wrote: > >> I am working from home today and getting this error with my copy of my >> project: >> *Warning*: Cannot modify header information - headers already sent by >> (output started at >> C:\Inetpub\Xampp\htdocs\SNLeader\WOSy

Re: [PHP] Re: header modify errors

2008-12-15 Thread VamVan
Hey, Few things: 1) Check to see if you have any trailing spaces after the end of the file. 2) Check to see if your session_start() is not the first line of the code. Thanks, V On Mon, Dec 15, 2008 at 9:36 AM, Terion Miller wrote: > On Mon, Dec 15, 2008 at 11:29 AM, Jay Moore wrote: > > > Te

Re: [PHP] Re: header modify errors

2008-12-15 Thread Terion Miller
On Mon, Dec 15, 2008 at 11:37 AM, Jim Lucas wrote: > Jay Moore wrote: > > Terion Miller wrote: > >> I am working from home today and getting this error with my copy of my > >> project: > >> *Warning*: Cannot modify header information - headers already sent by > >> (output started at > >> C:\Inetp

Re: [PHP] Re: header modify errors

2008-12-15 Thread Jim Lucas
Jay Moore wrote: > Terion Miller wrote: >> I am working from home today and getting this error with my copy of my >> project: >> *Warning*: Cannot modify header information - headers already sent by >> (output started at >> C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31) >> in *C:\Inetpub

[PHP] Re: header modify errors

2008-12-15 Thread Jay Moore
Terion Miller wrote: I am working from home today and getting this error with my copy of my project: *Warning*: Cannot modify header information - headers already sent by (output started at C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31) in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc

Re: [PHP] Re: Header() - POST

2008-09-21 Thread Stut
On 20 Sep 2008, at 01:23, Michelle Konzack wrote: Am 2008-09-05 17:11:58, schrieb Stut: You're trying to post to the browser which won't know how to handle it. The header() function is modifying the response headers that are being sent back to the browser, they do not create a new request. If y

Re: [PHP] Re: Header() - POST

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 14:29 +0200, Lupus Michaelis wrote: > Maciek Sokolewicz a écrit : > > > Your xss answer is moot. XSS attacks can (almost) just as easily be > > performed via POST as they can via GET. > >No, because you can't click on a link that make a post. Maybe on > unsecured brows

[PHP] Re: Header() - POST

2008-09-21 Thread Lupus Michaelis
Maciek Sokolewicz a écrit : Your xss answer is moot. XSS attacks can (almost) just as easily be performed via POST as they can via GET. No, because you can't click on a link that make a post. Maybe on unsecured browser that allows Xhr (and a POST so) on every sites on the Internet. -- Mi

[PHP] Re: Header() - POST

2008-09-21 Thread Maciek Sokolewicz
Lupus Michaelis wrote: Michelle Konzack a écrit : Why using JS? echo ""; would do the trick... No, because it'll not send back the datas in the hide form. And if you suggest to pass datas in a HTTP GET, I'll answer XSS in the scope :) Your xss answer is moot. XSS attacks can (almos

[PHP] Re: Header() - POST

2008-09-21 Thread Lupus Michaelis
Michelle Konzack a écrit : Why using JS? echo ""; would do the trick... No, because it'll not send back the datas in the hide form. And if you suggest to pass datas in a HTTP GET, I'll answer XSS in the scope :) -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP Genera

[PHP] Re: Header() - POST

2008-09-20 Thread Michelle Konzack
Hi Stut, Am 2008-09-05 17:11:58, schrieb Stut: > You're trying to post to the browser which won't know how to handle > it. The header() function is modifying the response headers that are > being sent back to the browser, they do not create a new request. > > If you want to do a new request I

Re: [PHP] Re: header

2008-09-17 Thread mike
On Wed, Sep 17, 2008 at 2:31 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > off on a tangent.. I made this some time ago which is rather useful: > > $url = new url('http://php.net/some.page'); > > echo $url; > echo $url->scheme; Why would you need this with parse_url() ? Seems like that functio

Re: [PHP] Re: header

2008-09-17 Thread Nathan Rixham
Micah Gersten wrote: Wouldn't it be nice if in the $_SERVER array you could get the whole URL now that PHP has a parse_url function? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com off on a tangent.. I made this some time ago which is rather useful: class

Re: [PHP] Re: header

2008-09-17 Thread Nathan Rixham
Jochem Maas wrote: Robert Cummings schreef: On Tue, 2008-09-16 at 21:18 +0100, Nathan Rixham wrote: Jim Lucas wrote: Robert Cummings wrote: On Tue, 2008-09-16 at 18:13 +0100, Nathan Rixham wrote: I also meant: define('PUBLIC_BASE_HREF' , 'http://php.net/') and further thinking there has

Re: [PHP] Re: header

2008-09-17 Thread mike
On Tue, Sep 16, 2008 at 11:40 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > Wouldn't it be nice if in the $_SERVER array you could get the whole URL > now that PHP has a parse_url function? That actually would be a nice thing to have, instead of having to build it yourself (considering people do

Re: [PHP] Re: header

2008-09-16 Thread Micah Gersten
Wouldn't it be nice if in the $_SERVER array you could get the whole URL now that PHP has a parse_url function? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Jochem Maas wrote: > Robert Cummings schreef: >> On Tue, 2008-09-16 at 21:18 +0100, Nathan Rixham w

Re: [PHP] Re: header

2008-09-16 Thread Jochem Maas
Robert Cummings schreef: On Tue, 2008-09-16 at 21:18 +0100, Nathan Rixham wrote: Jim Lucas wrote: Robert Cummings wrote: On Tue, 2008-09-16 at 18:13 +0100, Nathan Rixham wrote: I also meant: define('PUBLIC_BASE_HREF' , 'http://php.net/') and further thinking there has to be an easier / cl

Re: [PHP] Re: header

2008-09-16 Thread Robert Cummings
On Tue, 2008-09-16 at 21:18 +0100, Nathan Rixham wrote: > Jim Lucas wrote: > > Robert Cummings wrote: > >> On Tue, 2008-09-16 at 18:13 +0100, Nathan Rixham wrote: > >>> I also meant: > >>> define('PUBLIC_BASE_HREF' , 'http://php.net/') > >>> > >>> > >>> > >>> > >>> and further thinking there has

Re: [PHP] Re: header

2008-09-16 Thread Nathan Rixham
Jim Lucas wrote: Robert Cummings wrote: On Tue, 2008-09-16 at 18:13 +0100, Nathan Rixham wrote: I also meant: define('PUBLIC_BASE_HREF' , 'http://php.net/') and further thinking there has to be an easier / cleaner way of getting "http://"; / "https://"; in php.. What's wrong with $_SERVER

Re: [PHP] Re: header

2008-09-16 Thread Jim Lucas
Robert Cummings wrote: > On Tue, 2008-09-16 at 18:13 +0100, Nathan Rixham wrote: >> I also meant: >> define('PUBLIC_BASE_HREF' , 'http://php.net/') >> >> >> >> >> and further thinking there has to be an easier / cleaner way of getting >> "http://"; / "https://"; in php.. > > What's wrong with

Re: [PHP] Re: header

2008-09-16 Thread Robert Cummings
On Tue, 2008-09-16 at 18:13 +0100, Nathan Rixham wrote: > > I also meant: > define('PUBLIC_BASE_HREF' , 'http://php.net/') > > > > > and further thinking there has to be an easier / cleaner way of getting > "http://"; / "https://"; in php.. What's wrong with $_SERVER['HTTPS'] ? Cheers, Rob.

Re: [PHP] Re: header

2008-09-16 Thread Nathan Rixham
Robert Cummings wrote: On Tue, 2008-09-16 at 17:49 +0100, Nathan Rixham wrote: tedd wrote: At 3:16 PM +0100 9/16/08, Nathan Rixham wrote: Alain R. wrote: Hi, how in PHP can i create the similar header as following ? thx. A. just incase everybody else went down a complete tangent on thi

Re: [PHP] Re: header

2008-09-16 Thread Robert Cummings
On Tue, 2008-09-16 at 17:49 +0100, Nathan Rixham wrote: > tedd wrote: > > At 3:16 PM +0100 9/16/08, Nathan Rixham wrote: > >> Alain R. wrote: > >>> Hi, > >>> > >>> how in PHP can i create the similar header as following ? > >>> > >>> > >>> > >>> > >>> thx. > >>> > >>> A. > >> > >> just incase ev

Re: [PHP] Re: header

2008-09-16 Thread Nathan Rixham
tedd wrote: At 3:16 PM +0100 9/16/08, Nathan Rixham wrote: Alain R. wrote: Hi, how in PHP can i create the similar header as following ? thx. A. just incase everybody else went down a complete tangent on this one it's not nice, elegant, the *proper* way to do things but it'll do th

[PHP] Re: header

2008-09-16 Thread tedd
At 3:16 PM +0100 9/16/08, Nathan Rixham wrote: Alain R. wrote: Hi, how in PHP can i create the similar header as following ? thx. A. just incase everybody else went down a complete tangent on this one it's not nice, elegant, the *proper* way to do things but it'll do the job if I u

[PHP] Re: header

2008-09-16 Thread Nathan Rixham
Alain R. wrote: Hi, how in PHP can i create the similar header as following ? thx. A. just incase everybody else went down a complete tangent on this one it's not nice, elegant, the *proper* way to do things but it'll do the job if I understand you correctly -- PHP General Mailing

[PHP] Re: header

2008-09-16 Thread Nathan Rixham
Alain R. wrote: Hi, how in PHP can i create the similar header as following ? thx. A. just incase everybody ese went down a complete tangent: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: header( 'refresh' ), form data, and IE

2007-07-25 Thread Daniel Brown
On 7/25/07, Tijnema <[EMAIL PROTECTED]> wrote: You Dans driving me insine with all those dans :P Tijnema -- Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info Be jealous and afraid. It's not just a name it's a race. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [m

Re: [PHP] Re: header( 'refresh' ), form data, and IE

2007-07-25 Thread Tijnema
On 7/25/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 7/25/07, Tijnema <[EMAIL PROTECTED]> wrote: > You Dans driving me insine with all those dans :P > > Tijnema > -- > Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info > Be jealous and afraid. It's not just a name it's a r

Re: [PHP] Re: header( 'refresh' ), form data, and IE

2007-07-25 Thread Tijnema
On 7/25/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 7/24/07, Daniel Kasak <[EMAIL PROTECTED]> wrote: > On Tue, 2007-07-24 at 08:13 -0400, Daniel Brown wrote: > > > Hello, Dans! > > > > Dan K., is there any reason the validation can't reside within the > > same script as the form, then

Re: [PHP] Re: header( 'refresh' ), form data, and IE

2007-07-25 Thread Daniel Brown
On 7/24/07, Daniel Kasak <[EMAIL PROTECTED]> wrote: On Tue, 2007-07-24 at 08:13 -0400, Daniel Brown wrote: > Hello, Dans! > > Dan K., is there any reason the validation can't reside within the > same script as the form, then forward on success? A very simple > example: > > if($_POST) {

Re: [PHP] Re: header( 'refresh' ), form data, and IE

2007-07-24 Thread Daniel Kasak
On Tue, 2007-07-24 at 08:13 -0400, Daniel Brown wrote: > Hello, Dans! > > Dan K., is there any reason the validation can't reside within the > same script as the form, then forward on success? A very simple > example: > > if($_POST) { > // Check to ensure that your variables are al

Re: [PHP] Re: header( 'refresh' ), form data, and IE

2007-07-24 Thread Tijnema
On 7/24/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 7/23/07, Daniel Kasak <[EMAIL PROTECTED]> wrote: > Thanks for the response Dan. Us Dans have to stick together :) > > On Mon, 2007-07-23 at 17:37 -0700, Dan wrote: > > > Then validate the field obviously! > > $description = ""; > > $categoryi

Re: [PHP] Re: header( 'refresh' ), form data, and IE

2007-07-24 Thread Daniel Brown
On 7/23/07, Daniel Kasak <[EMAIL PROTECTED]> wrote: Thanks for the response Dan. Us Dans have to stick together :) On Mon, 2007-07-23 at 17:37 -0700, Dan wrote: > Then validate the field obviously! > $description = ""; > $categoryid = ""; > > if(isset($_POST['description'])) > $description = "?

Re: [PHP] Re: header( 'refresh' ), form data, and IE

2007-07-23 Thread Daniel Kasak
Thanks for the response Dan. Us Dans have to stick together :) On Mon, 2007-07-23 at 17:37 -0700, Dan wrote: > Then validate the field obviously! > $description = ""; > $categoryid = ""; > > if(isset($_POST['description'])) > $description = "?description=$_POST['description']"; > > if(isset($_P

[PHP] Re: header( 'refresh' ), form data, and IE

2007-07-23 Thread Dan
Then validate the field obviously! $description = ""; $categoryid = ""; if(isset($_POST['description'])) $description = "?description=$_POST['description']"; if(isset($_POST['categoryid'])) { if($description != "") $categoryid = "&"; else $categoryid = "?"; // if a description has been entered

Re: [PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Philip Thompson
On Apr 16, 2007, at 12:44 PM, Ross wrote: ok I have a page that calls my my functions, basically a 6 step signup. All the steps look like this function step_one() { $_SESSION['property_id'] =$_POST['property_id']; $property_id = $_POST['property_id']; $postcode= $_POST['postcode']; Escape

RE: [PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Tim
> -Message d'origine- > De : Tim [mailto:[EMAIL PROTECTED] > Envoyé : lundi 16 avril 2007 19:54 > À : 'Ross'; php-general@lists.php.net > Objet : RE: [PHP] Re: header('Location:') works locally but > not remotely > > > > >

RE: [PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Tim
> -Message d'origine- > De : Ross [mailto:[EMAIL PROTECTED] > Envoyé : lundi 16 avril 2007 19:45 > À : php-general@lists.php.net > Objet : [PHP] Re: header('Location:') works locally but not remotely > > ok I have a page that calls my my function

[PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Ross
ok I have a page that calls my my functions, basically a 6 step signup. All the steps look like this function step_one() { $_SESSION['property_id'] =$_POST['property_id']; $property_id = $_POST['property_id']; $postcode= $_POST['postcode']; $query = "INSERT INTO properties (property_id, postcode

[PHP] Re: header

2006-11-24 Thread Jo�o C�ndido de Souza Neto
I found the trouble... My index.php file had been corrupted. I deleted and recreated it and works fine. Thanks a lot for your tips. ""João Cândido de Souza Neto"" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > In my index.php file of my system i have got just one php tag i

[PHP] Re: header lost session variables.

2006-08-15 Thread Jo�o C�ndido de Souza Neto
So, could anyone here then explain why in other server my system it works fine? I check the two servers configuration and it´s the same, they has only one difference, one´s running php 5.0 and the other´s running php 5.1.4 Is there some difference between this two versions? ""João Cândid

Re: [PHP] RE: header data being inserted into message

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 9:12 am, ET Support wrote: > I am having a problem using PHP's mail function to send mail via BCC > to > multiple recipients. Here's my code; > -- > $get_emails = pg_exec($dbh,"SELECT email FROM mailing_list WHERE conf > = 1"); > $count =

RE: [PHP] RE: header data being inserted into message

2006-01-18 Thread ET Support
ot; Thanks for the input! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 18, 2006 11:29 AM To: ET Support Subject: RE: [PHP] RE: header data being inserted into message what you're showing indicates that an MTA is getting confused about th

RE: [PHP] RE: header data being inserted into message

2006-01-18 Thread ET Support
rking then maybe I'll go to majordomo2. Anyone else have some advice for me here? Thanks, Ben -Original Message- From: Richard Correia [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 17, 2006 12:37 PM To: ET Support Cc: php-general@lists.php.net Subject: Re: [PHP] RE: header data bein

Re: [PHP] RE: header data being inserted into message

2006-01-17 Thread Richard Correia
Hey, You can use the readymase mailer class from http://www.weberdev.com/get_example-462.html and http://www.weberdev.com/get_example-3724.html Thanks Richard On 1/17/06, ET Support <[EMAIL PROTECTED]> wrote: > > Hello all, > > I am having a problem using PHP's mail function to send mail via

[PHP] RE: header data being inserted into message

2006-01-17 Thread ET Support
Hello all, I am having a problem using PHP's mail function to send mail via BCC to multiple recipients. Here's my code; -- $get_emails = pg_exec($dbh,"SELECT email FROM mailing_list WHERE conf = 1"); $count = pg_numrows($get_emails); $bcc_count = $envelope_count

[PHP] Re: header()

2005-04-14 Thread chris
But you can design the script to redirect to a page with a JavaScript to open a file(PDF) by using the target="_new" and then it redirects to the home page. CJ "Matthew Weier O'Phinney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >* Martín Marqués : >> I'm having a bit of a pro

[PHP] Re: header()

2005-04-14 Thread Matthew Weier O'Phinney
* Martín Marqués : > I'm having a bit of a problem understanding how the header() sends the HTTP > headers. > > Here's what I want to do: > > 1) Send a PDF file which will be printed in the client (the client will read > it and print it if he wants to. > 2) Redirect to the main page of the aplica

[PHP] Re: header("Location: page.php target=_parent")?????

2005-03-26 Thread Ospinto
use javascript not the header function. "Jacques" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How should I formulate the header function to replace the current frameset > page with a new one? I have tried a combination of header("Location: > page.php target=_parent"); but I get

[PHP] Re: header variable ?

2004-11-11 Thread Sebastian Mendel
Jerry Swanson wrote: What variable "header" use? If I send something in header, what GLOBAL variable header use? do you mean $_SERVER ? $_SERVER holds some header-information sent by the client to the webserver -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.

[PHP] Re: Header or includes for one-level up access?

2004-07-02 Thread Daniel Kullik
Andre Dubuc wrote: Orginally when I designed my site, I put the db access file, conn.php, in the webarea - where all files reside. After reading a recent thread, I realize that this may not be too secure. Therefore, I would like to shove conn.php one level above the webarea. However, I don't fee

Re: [PHP] Re: Header target?

2004-06-14 Thread Marek Kilimajer
Bob Lockie wrote --- napísal:: On 06/12/04 19:05 Kim Steinhaug spoke: Steve Douville had a long answer, the short answer : no Ok, thanks. I want to avoid relying on Javascript anyways. Make _top the target of the form, then rebuild the frameset based on your logic. -- PHP General Mailing List (h

Re: [PHP] Re: Header target?

2004-06-14 Thread Bob Lockie
On 06/12/04 19:05 Kim Steinhaug spoke: Steve Douville had a long answer, the short answer : no Ok, thanks. I want to avoid relying on Javascript anyways. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Header target?

2004-06-12 Thread Kim Steinhaug
Steve Douville had a long answer, the short answer : no -- -- Kim Steinhaug -- There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't. -

[PHP] Re: header(Location: question

2004-02-29 Thread DvDmanDT
That will tell the browser "The movie is there!Go there instead!" umm.. Kinda like that anyway.. It lets the user download from there, and not your server.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "John" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > wh

Re: [PHP] Re: header() function...

2003-10-15 Thread Tristan . Pretty
You are all heart... ;-) Curt Zirzow <[EMAIL PROTECTED]> 14/10/2003 17:23 To [EMAIL PROTECTED] cc Subject Re: [PHP] Re: header() function... I officially declare this thread foobar. Curt -- "My PHP key is worn out" PHP List stats since 1997:

Re: [PHP] Re: header() refresh vs location

2003-10-14 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- Kevin Stone <[EMAIL PROTECTED]> wrote: > > The Refresh directive is a valid header. I've used it for many > > years and it seems to be supported by the majority of browsers. > > My experience has been the same. > > > However I've never read

Re: [PHP] Re: header() refresh vs location

2003-10-14 Thread Chris Shiflett
--- Kevin Stone <[EMAIL PROTECTED]> wrote: > The Refresh directive is a valid header. I've used it for many > years and it seems to be supported by the majority of browsers. My experience has been the same. > However I've never read anything that would indicate that Refresh > works any different

[PHP] Re: header() refresh vs location

2003-10-14 Thread Kevin Stone
The Refresh directive is a valid header. I've used it for many years and it seems to be supported by the majority of browsers. However I've never read anything that would indicate that Refresh works any differently than Location. The only difference is that Refresh allows you to set a number

Re: [PHP] Re: header() function...

2003-10-14 Thread Scott Fletcher
ws server I think... (sadly) > > > > > > "Scott Fletcher" <[EMAIL PROTECTED]> > 14/10/2003 16:25 > > To > [EMAIL PROTECTED] > cc > > Subject > [PHP] Re: header() function... > > > > > > > Web Server's log file

Re: [PHP] Re: header() function...

2003-10-14 Thread Curt Zirzow
I officially declare this thread foobar. Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: header() function...

2003-10-14 Thread Tristan . Pretty
Bog standard web server logs... We're hosted on a windows server I think... (sadly) "Scott Fletcher" <[EMAIL PROTECTED]> 14/10/2003 16:25 To [EMAIL PROTECTED] cc Subject [PHP] Re: header() function... Web Server's log file or user defined log file (Sort o

[PHP] Re: header() function...

2003-10-14 Thread Scott Fletcher
Web Server's log file or user defined log file (Sort of Like PHP Log)? "Tristan Pretty" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > We've just moved sites, to a new URL... > on the home page of the old url, I simply had a page that was; > > header(Location: http://www.newsite.co

Re: [PHP] Re: header() function for displaying an opened PDF document.

2003-10-14 Thread Scott Fletcher
Aw, scratch that HTML conversion to PDF feature. It require an installation of a couple of other stuffs. I'm going to stick back to fpdf library for now. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm using the library from www.fpdf.org. I currently using the

Re: [PHP] Re: header() function for displaying an opened PDF document.

2003-10-14 Thread Scott Fletcher
I'm using the library from www.fpdf.org. I currently using the method on storing the file to the server because of two features. One so I can have php script to use the email to pick up the file and send it to my boss. Two, an optional option to view the billing invoice. I am beginning to think

Re: [PHP] Re: header() function for displaying an opened PDF document.

2003-10-14 Thread Chris Hayes
It might help to have a peek at how the php Pdf libraries are doing this (www.php.net/pdflib, fpdf.org, www.ros.co.nz/pdf) . There are a lot of things to worry about with pdf, not the least the fact that older acrobat readers will give plenty of errors when the page is not send fast enough an

[PHP] Re: header() function for displaying an opened PDF document.

2003-10-14 Thread Scott Fletcher
Well, now, I get an unknown file type. I have already specified the application type. This was yesterday. Today, I get the file type as 'Acrobat Control for Active X'. That doesn't look right... Oh well... Will have to play around and see what can I do to make it work better. A couple of mont

[PHP] Re: header() function for displaying an opened PDF document.

2003-10-13 Thread Kevin Stone
I'm sorry but it can't be done. You cannot output a file without printing it to the output buffer. You cannot print a file to the output buffer without opening the file into memory. You cannot open a file into memory without using a function like fopen() or readfile(). It's as simple as that

[PHP] Re: header() function for displaying an opened PDF document.

2003-10-13 Thread Scott Fletcher
I can't do readfile() because of lots of bug in IE (Internet Explorer) "Kevin Stone" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Forget the content length and disposition headers. Just set the content type then output the file.. > > header("Content-type: application/pdf"); >

[PHP] Re: header() function for displaying an opened PDF document.

2003-10-13 Thread Kevin Stone
Forget the content length and disposition headers. Just set the content type then output the file.. header("Content-type: application/pdf"); readfile("junk.pdf"); - Kevin "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I seem to be having problem with sending the

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Curt Zirzow
* Thus wrote Jonathan Duncan ([EMAIL PROTECTED]): > Jay, > > Try replying to the group so that your contributions stay with the thread > instead of being orphaned and lost. he did. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Scott Fletcher
But Jay Blanchard situation wasn't the only one. It's the same for other people. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well, I'm using Outlook Express and it looked fine for an hour or so now. > But not with the ones earlier in the morning. Strange though

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Scott Fletcher
Well, I'm using Outlook Express and it looked fine for an hour or so now. But not with the ones earlier in the morning. Strange though! Scott F. "Jonathan Duncan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Perhaps it is just Outlook Express but many of your replies are showing

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Jonathan Duncan
Perhaps it is just Outlook Express but many of your replies are showing as ophans. Jonathan "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] Try replying to the group so that your contributions stay with the thread instead of being orphaned and lost. [/snip] I

RE: [PHP] Re: Header won't redirect

2003-09-19 Thread Jay Blanchard
[snip] Try replying to the group so that your contributions stay with the thread instead of being orphaned and lost. [/snip] I always do, did something weird happen? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Jonathan Duncan
Jay, Try replying to the group so that your contributions stay with the thread instead of being orphaned and lost. Regards, Jonathan Duncan "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] Jay, good guess, but wrong! While register_globals does equal off, I am

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Jonathan Duncan
Marek and Rob, Doh! That was it. I am still finding things that I used to assign globally. It is a good thing, but it makes for a bit of work. Thanks to Jay too. I appreciate everyone's help. Have a good one, Jonathan Duncan "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMA

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Scott Fletcher
Try $_REQUEST['pagename'] instead. Oh before you do that, try this and see if you have any received data at all in the first place. just look for 'pagename' in any arrays, don't look for $_GET['pagename'], just look for 'pagename' and see if there is any. --snip-- --snip-- "Jay Blanchard" <[EMA

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Robert Cummings
Here's an idea... echo each of the values and see what they actually contain. While you grab $pagename from $_GET, where are you getting $HTTPS? Is it a superglobal too? Maybe it's $_SERVER['HTTPS'] Cheers, Rob. On Fri, 2003-09-19 at 10:57, PHP wrote: > Jay, good guess, but wrong! While register

RE: [PHP] Re: Header won't redirect

2003-09-19 Thread Jay Blanchard
[snip] Jay, good guess, but wrong! While register_globals does equal off, I am using $_GET['pagename'] to assign the value to $pagename before the snippet of code that I sent. Sorry I didn't mention that earlier. I tried putting the _GET in my header redirection directly, but that didn't help.

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Marek Kilimajer
And what about $_SERVER["HTTPS"], are you using it? PHP wrote: Jay, good guess, but wrong! While register_globals does equal off, I am using $_GET['pagename'] to assign the value to $pagename before the snippet of code that I sent. Sorry I didn't mention that earlier. I tried putting the _GET

[PHP] Re: Header won't redirect

2003-09-19 Thread PHP
Jay, good guess, but wrong! While register_globals does equal off, I am using $_GET['pagename'] to assign the value to $pagename before the snippet of code that I sent. Sorry I didn't mention that earlier. I tried putting the _GET in my header redirection directly, but that didn't help. Any ot

[PHP] Re: Header()

2003-09-05 Thread Bogdan Stancescu
I don't think you can using headers. Why not Javascript? Bogdan Mixmastr wrote: How can i do so header opens a new page in a new browser, instead of opening the page inside the current browser? -kjetil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Re: header & headers_sent BUG

2003-07-27 Thread Marek Kilimajer
read www.php.net/variables.scope Eric Fleming wrote: I am having some problems using variables in included files. Can someone please look at my code below and see how I might accomplish what I am trying to do? The content would go here. Now, when I try to reference the subnav variable in

[PHP] Re: header & headers_sent BUG

2003-07-24 Thread Eric Fleming
I am having some problems using variables in included files. Can someone please look at my code below and see how I might accomplish what I am trying to do? The content would go here. Now, when I try to reference the subnav variable in the inHeader.php or incFooter.php files, it comes up

Re: [PHP] Re: header & headers_sent BUG

2003-07-23 Thread James M. Luedke
according to the php doc, online the headers are not affected by the Output Buffer, so any functions that manipulate the OB should have no effect. flush I do not beleive will fix this issue. (* I have tested it and it did not *) Still need a good way to accomplish this. Thanks, James Ivo Fokke

[PHP] Re: header & headers_sent BUG

2003-07-23 Thread Ivo Fokkema
You might want to check whether or not your header output is getting buffered. My suggestion is a flush() after the fist call. I'm not an expert on this, it's just an idea. HTH -- Ivo Fokkema PHP & MySQL programmer Leiden University Medical Centre Netherlands "James M. Luedke" <[EMAIL PROTECTED

[PHP] Re: Header, Directory, and SESSIONs

2003-06-21 Thread nabil
As I said before that I don't want the same user to confuse in which part of the site he is ... because as I said it is same PHP files but dealing with different databases and tables.. so I can't let him jump in between , and cause some confusion and data mess when he's entering data.. PLEASE COMM

[PHP] Re: Header, Directory, and SESSIONs

2003-06-21 Thread Andrew Warner
At 9:43 AM +0300 6/21/03, nabil wrote: 4- I want if any user jumped to the other directory and logged in with the correct requested password TO HAVE THE FIRST SESSION UNREGISTERED automatically, so he can't be logged in in both at same time.. and keep only the new.. and ofcourse have to re logging

RE: [PHP] Re: header(); Issue

2003-06-19 Thread Mike At Spy
TED] > Sent: Thursday, June 19, 2003 12:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: header(); Issue > > > Try > > header("Location: ".$Relative."/outstanding.php?pdd=1&pddid=".$poid.""); > > EF. > > > "Spypro

[PHP] Re: header(); Issue

2003-06-19 Thread Esteban Fernandez
Try header("Location: ".$Relative."/outstanding.php?pdd=1&pddid=".$poid.""); EF. "Spyproductions Support Team" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > > I have this in a script: > > header("Location: $Relative/outstanding.php?pdd=1&pddid=$poid"); > > It works fine el

[PHP] Re: header() and mozilla - HELP!

2003-06-13 Thread DvDmanDT
You could always try header("Location: www.url.com"); (uppercase)... "Deno Vichas" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > i'm runnig into a random problem of having all the headers being > displayed instead on the actual web page in mozilla, Ie doesn't seem to > suffer fro

[PHP] Re: Header order

2003-03-16 Thread John Taylor-Johnston
You do have to declare the headers first !!?? John Taylor-Johnston wrote: > For the record, am I declaring these in the correct order? > Thanks, > John > > > header("Content-type: text/notabene"); > header("Content-Disposition: attachment; filename=".$dbtable.".nb"); > > ob_start("ob_gzhandler")

[PHP] Re: Header order

2003-03-16 Thread John Taylor-Johnston
You do have to declare the headers first !!?? John Taylor-Johnston wrote: > For the record, am I declaring these in the correct order? > Thanks, > John > > > header("Content-type: text/notabene"); > header("Content-Disposition: attachment; filename=".$dbtable.".nb"); > > ob_start("ob_gzhandler")

[PHP] Re: Header information ...

2003-01-10 Thread Philippe Saladin
>"Anders mellström" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] >Hello. I can't get this code to work. The error message I get is that the header could be added, cause it has allready >been sent. What shalll I do to get it to work? Please have a look at http://www.php.net/ma

[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 he

[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 t

  1   2   >