php-general Digest 30 Jun 2011 09:48:49 -0000 Issue 7383

Topics (messages 313813 through 313822):

Re: Time zones are spinning my brain
        313813 by: Brian Dunning
        313814 by: Geoff Shang

I want to use POST when redirect via PHP Header function.
        313815 by: Md Ashickur Rahman Noor
        313817 by: Ashley Sheridan
        313818 by: Md Ashickur Rahman Noor
        313819 by: admin.buskirkgraphics.com
        313820 by: Ashley Sheridan
        313821 by: Geoff Lane
        313822 by: Md Ashickur Rahman Noor

Reporting Tools
        313816 by: sudarshana sampath

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Thanks everyone. It seems to be working correctly. You gave me some extra peace 
of mind. I did set the date_default_timezone_set('America/Los_Angeles') but it 
looks like that was in the defaults anyway.  :-)

--- End Message ---
--- Begin Message ---
On Wed, 29 Jun 2011, Brian Dunning wrote:

Thanks everyone. It seems to be working correctly. You gave me some extra peace of mind. I did set the date_default_timezone_set('America/Los_Angeles') but it looks like that was in the defaults anyway. :-)

It probably is if this is where your site is hosted. But all you need to do is change hosting providers to one somewhere else, or for someone who's not careful to mess something up on the system, and the script will break all because you assumed it would always be right. So better to set it and know it's right.

Geoff.


--- End Message ---
--- Begin Message ---
I want to use POST when redirect via PHP Header function. Is it possible?
----------------------------------------------------------
Dedicated Linux Forum in
Bangladesh<http://forums.linuxdesh.com/member.php?action=register&referrer=3%20>
Follow Me Twiter <https://twitter.com/#%21/AshickunNoor>
Thank you
Md Ashickur Rahman

--- End Message ---
--- Begin Message ---

Md Ashickur Rahman Noor <ashickur.n...@gmail.com> wrote:

>I want to use POST when redirect via PHP Header function. Is it
>possible?
>----------------------------------------------------------
>Dedicated Linux Forum in
>Bangladesh<http://forums.linuxdesh.com/member.php?action=register&referrer=3%20>
>Follow Me Twiter <https://twitter.com/#%21/AshickunNoor>
>Thank you
>Md Ashickur Rahman

Erm, a bit vague. Use POST for *what* during the redirect?

Thanks,
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

--- End Message ---
--- Begin Message ---
For passing value to other page.
----------------------------------------------------------
Dedicated Linux Forum in
Bangladesh<http://forums.linuxdesh.com/member.php?action=register&referrer=3%20>
Follow Me Twiter <https://twitter.com/#%21/AshickunNoor>
Thank you
Md Ashickur Rahman




On Thu, Jun 30, 2011 at 12:34 PM, Ashley Sheridan
<a...@ashleysheridan.co.uk>wrote:

>
>
> Md Ashickur Rahman Noor <ashickur.n...@gmail.com> wrote:
>
> >I want to use POST when redirect via PHP Header function. Is it
> >possible?
> >----------------------------------------------------------
> >Dedicated Linux Forum in
> >Bangladesh<
> http://forums.linuxdesh.com/member.php?action=register&referrer=3%20>
> >Follow Me Twiter <https://twitter.com/#%21/AshickunNoor>
> >Thank you
> >Md Ashickur Rahman
>
> Erm, a bit vague. Use POST for *what* during the redirect?
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>

--- End Message ---
--- Begin Message ---
I could be wrong on this but,
I am pretty sure you can use GET variables but not POST in a header
redirect.

Example 
header('Location:http://www.yourmom.com/?large=incharge&hasorbit=yes');





Richard L. Buskirk

-----Original Message-----
From: Md Ashickur Rahman Noor [mailto:ashickur.n...@gmail.com] 
Sent: Thursday, June 30, 2011 2:36 AM
To: Ashley Sheridan
Cc: php-gene...@lists.php.net
Subject: Re: [PHP] I want to use POST when redirect via PHP Header function.

For passing value to other page.
----------------------------------------------------------
Dedicated Linux Forum in
Bangladesh<http://forums.linuxdesh.com/member.php?action=register&referrer=3
%20>
Follow Me Twiter <https://twitter.com/#%21/AshickunNoor>
Thank you
Md Ashickur Rahman




On Thu, Jun 30, 2011 at 12:34 PM, Ashley Sheridan
<a...@ashleysheridan.co.uk>wrote:

>
>
> Md Ashickur Rahman Noor <ashickur.n...@gmail.com> wrote:
>
> >I want to use POST when redirect via PHP Header function. Is it
> >possible?
> >----------------------------------------------------------
> >Dedicated Linux Forum in
> >Bangladesh<
> http://forums.linuxdesh.com/member.php?action=register&referrer=3%20>
> >Follow Me Twiter <https://twitter.com/#%21/AshickunNoor>
> >Thank you
> >Md Ashickur Rahman
>
> Erm, a bit vague. Use POST for *what* during the redirect?
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>


--- End Message ---
--- Begin Message ---

ad...@buskirkgraphics.com wrote:

>I could be wrong on this but,
>I am pretty sure you can use GET variables but not POST in a header
>redirect.
>
>Example
>header('Location:http://www.yourmom.com/?large=incharge&hasorbit=yes');
>
>
>
>
>
>Richard L. Buskirk
>
>-----Original Message-----
>From: Md Ashickur Rahman Noor [mailto:ashickur.n...@gmail.com]
>Sent: Thursday, June 30, 2011 2:36 AM
>To: Ashley Sheridan
>Cc: php-gene...@lists.php.net
>Subject: Re: [PHP] I want to use POST when redirect via PHP Header
>function.
>
>For passing value to other page.
>----------------------------------------------------------
>Dedicated Linux Forum in
>Bangladesh<http://forums.linuxdesh.com/member.php?action=register&referrer=3
>%20>
>Follow Me Twiter <https://twitter.com/#%21/AshickunNoor>
>Thank you
>Md Ashickur Rahman
>
>
>
>
>On Thu, Jun 30, 2011 at 12:34 PM, Ashley Sheridan
><a...@ashleysheridan.co.uk>wrote:
>
>>
>>
>> Md Ashickur Rahman Noor <ashickur.n...@gmail.com> wrote:
>>
>> >I want to use POST when redirect via PHP Header function. Is it
>> >possible?
>> >----------------------------------------------------------
>> >Dedicated Linux Forum in
>> >Bangladesh<
>> http://forums.linuxdesh.com/member.php?action=register&referrer=3%20>
>> >Follow Me Twiter <https://twitter.com/#%21/AshickunNoor>
>> >Thank you
>> >Md Ashickur Rahman
>>
>> Erm, a bit vague. Use POST for *what* during the redirect?
>>
>> Thanks,
>> Ash
>> http://www.ashleysheridan.co.uk
>> --
>> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


Following on from what Richard said, the post data is part of a request made by 
a browser, not the response made by the server, which is what a header is, a 
response.

Maybe you need to look into cURL, which make a request and forward the response 
on to the browser.

Ps. Could people please avoid top posting, as it does make it rather difficult 
for the automated archive and some screen readers.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

--- End Message ---
--- Begin Message ---
 On Thursday, June 30, 2011, Md Ashickur Rahman Noor wrote:

> I want to use POST when redirect via PHP Header function. Is it
> possible?

AFAICT, it isn't. You can use GET variables by passing them on the
querystring. These can then be accessed via $_REQUEST, which is an
amalgamation of $_POST, $_GET, and $_COOKIE. So if you have a script
that might take input from either $_POST or $_GET, you can usually
code fairly transparently by replacing both by $_REQUEST.

Alternatively, you can create a form on the page and use client-side
javascript to 'auto-submit' via the body onLoad event. However, this
does require JS on the client and so cannot be guaranteed.

HTH,

-- 
Geoff


--- End Message ---
--- Begin Message ---
>
> On Thu, Jun 30, 2011 at 1:52 PM, Geoff Lane <ge...@gjctech.co.uk> wrote:
>  On Thursday, June 30, 2011, Md Ashickur Rahman Noor wrote:
>
> > I want to use POST when redirect via PHP Header function. Is it
> > possible?
>
> AFAICT, it isn't. You can use GET variables by passing them on the
> querystring. These can then be accessed via $_REQUEST, which is an
> amalgamation of $_POST, $_GET, and $_COOKIE. So if you have a script
> that might take input from either $_POST or $_GET, you can usually
> code fairly transparently by replacing both by $_REQUEST.
>
> Alternatively, you can create a form on the page and use client-side
> javascript to 'auto-submit' via the body onLoad event. However, this
> does require JS on the client and so cannot be guaranteed.
>
> HTH,
>
> --
> Geoff
>

Thank you every one. If I use GET then the value will be shown in the
address bar, Which I don't want to do.

Can any one describe me the $_REQUEST and $_COOKIE, if you can give example
it will be helpful for me.
----------------------------------------------------------
Dedicated Linux Forum in
Bangladesh<http://forums.linuxdesh.com/member.php?action=register&referrer=3%20>
Follow Me Twiter <https://twitter.com/#%21/AshickunNoor>
Thank you
Md Ashickur Rahman

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

Are there any PHP reporting tools?
eg: adhoc reporting etc...

Any help is much appreciated.

-- 
Cheers,
Sudarshana Sampath.

--- End Message ---

Reply via email to