[PHP] Need help on increment date
HI all I need help to increment date in php. I found this code helpful $date = strtotime(+1 day, strtotime(2007-02-28)); echo date(Y-m-d, $date); But when My date is 2008-02-28 this code give output 2012-03-01. But it should be 2008-02-29. Where I am getting wrong. -- Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck 2048R/89C932E1 http://goo.gl/TkP5U Volunteer, FOSS Bangladesh http://fossbd.org/ Mozilla Repshttp://reps.mozilla.org 01199151550
Re: [PHP] Need help on increment date
Get this from herehttp://stackoverflow.com/questions/660501/simplest-way-to-increment-a-date-in-php -- Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck 2048R/89C932E1 http://goo.gl/TkP5U Volunteer, FOSS Bangladesh http://fossbd.org/ Mozilla Repshttp://reps.mozilla.org 01199151550 Have you extracted the above from other code, or are you seeing this behaviour with just those two lines? -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/
Re: [PHP] Need help on increment date
It works. Thanks you two. Thanks Shiplu bro for the advice. -- Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck 2048R/89C932E1 http://goo.gl/TkP5U Volunteer, FOSS Bangladesh http://fossbd.org/ Mozilla Repshttp://reps.mozilla.org 01199151550 On 24 May 2012 15:08, shiplu shiplu@gmail.com wrote: $date = strtotime http://www.php.net/strtotime(2008-02-28 +1 day);
Re: [PHP] What type of PHP5 shall I install to learn PHP5 together with Apache, Please specify the Apache type too Since There are Two Apache types also
Install lamp, it is a virtual package which will install all the basic necessary thing that is need for web development. -- Dedicated Linux Forum in Bangladeshhttp://forums.linuxdesh.com/member.php?action=registerreferrer=3%20 Follow Me Twiter https://twitter.com/#%21/AshickunNoor Thank you Md Ashickur Rahman On Fri, Jul 8, 2011 at 7:42 AM, Varuna Seneviratna varunawith...@gmail.comwrote: I am Using Ubuntu 11.04 Desktop as my OS.Below are the two types of PHP5 available for installation php5 - server-side, HTML-embedded scripting language (metapackage) php5-cgi - server-side, HTML-embedded scripting language (CGI binary) I got the above by running the command apt-cache search PHP5 1 What is the difference between the two. 2 What shall I install to learn PHP with apache(Please specify the apache version too since there are two types available for Ubuntu) -- VS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I want to use POST when redirect via PHP Header function.
For passing value to other page. -- Dedicated Linux Forum in Bangladeshhttp://forums.linuxdesh.com/member.php?action=registerreferrer=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.ukwrote: 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=registerreferrer=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.
Re: [PHP] I want to use POST when redirect via PHP Header function.
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 Bangladeshhttp://forums.linuxdesh.com/member.php?action=registerreferrer=3%20 Follow Me Twiter https://twitter.com/#%21/AshickunNoor Thank you Md Ashickur Rahman
[PHP] I want to use POST when redirect via PHP Header function.
I want to use POST when redirect via PHP Header function. Is it possible? -- Dedicated Linux Forum in Bangladeshhttp://forums.linuxdesh.com/member.php?action=registerreferrer=3%20 Follow Me Twiter https://twitter.com/#%21/AshickunNoor Thank you Md Ashickur Rahman