<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CUEDRns4cSp7ImA9WxNWFUg.&quot;"><id>tag:blogger.com,1999:blog-5699608902832804332</id><updated>2009-10-14T13:54:37.539-07:00</updated><title>Nadir Nasir - as Whebb d'zine`r</title><subtitle type="html">Nadir Nasir's Web Design and PHP Developer Blog</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://nadirwebs.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://nadirwebs.blogspot.com/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><author><name>Nadir Nasir</name><uri>http://www.blogger.com/profile/01120929061701252909</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><link rel="self" href="http://feeds.feedburner.com/nadirwebs" type="application/atom+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry gd:etag="W/&quot;DEQCQ30yfCp7ImA9WxVXEkw.&quot;"><id>tag:blogger.com,1999:blog-5699608902832804332.post-1009481392180927701</id><published>2009-02-09T13:46:00.000-08:00</published><updated>2009-02-09T13:52:42.394-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-02-09T13:52:42.394-08:00</app:edited><title>Cannot enter Site Admin after installing WordPress 2.7 (1 post)</title><content type="html">&lt;div class="threadpost col-7"&gt;    &lt;div class="post"&gt;&lt;p&gt;My problem is that I can't get into my Site Admin after installing the newest version of wordpress 2.7, Let me give you a little over view of my setup.&lt;/p&gt; &lt;p&gt;OS: Windows Vista&lt;br /&gt;IIS: Version 7&lt;br /&gt;PHP: 4.3 (Installed on IIS)&lt;br /&gt;Browser: Firefox 3.06&lt;br /&gt;Cookies: Enabled&lt;br /&gt;Firewall: Enabled&lt;br /&gt;Server: Localhost&lt;br /&gt;Database: MySQL 4.0.20a-nt &lt;/p&gt; &lt;p&gt;After exploring a lot of resources and trying out a million things I just couldn't find out why it is not allowing me to get into site admin. I tried out things like these and nothing worked...&lt;/p&gt; &lt;p&gt;- Enabling Cookies, Clearing etc&lt;br /&gt;- Restarting browsers&lt;br /&gt;- Trying multiple browsers&lt;br /&gt;- Making sure sessions are enabled&lt;br /&gt;- Enabling / Disabling firewalls&lt;br /&gt;- resetting password manually from database (after md5-hashing)&lt;br /&gt;- Adding values to wp-config files&lt;br /&gt;- Making sure ABSPATH was set, ech-ing it&lt;br /&gt;- Even reinstalling the whole PHP, mySQL and wordpress a number of times&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Problem Elaborated:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;When I installed the complete blog locally, everything went well, but as soon as it comes to the login screen, and I enter the username and the random password it generated. It redirects me back to the login page without any error messages. If I am in &lt;a href="http://localhost/mynewblog/wp-login.php" rel="nofollow"&gt;http://localhost/mynewblog/wp-login.php&lt;/a&gt; and enter the admin username and password, as soon as I press the enter button, it goes to &lt;a href="http://localhost/nadir/wp-admin/login.php" rel="nofollow"&gt;http://localhost/nadir/wp-admin/login.php&lt;/a&gt; and then suddenly it returns to the same page with something like this in the address bar &lt;a href="http://localhost/mynewblog/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2mynewblog%2Fwp-admin%2Findex.php" rel="nofollow"&gt;http://localhost/mynewblog/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2mynewblog%2Fwp-admin%2Findex.php&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Also when I get redirected back to the login page, it has already registered the user at this point, because if I go back to the main page of the blog &lt;a href="http://localhost/mynewblog/" rel="nofollow"&gt;http://localhost/mynewblog/&lt;/a&gt; it shows me the LOGOUT link at the lower right corner of the right panel. This means that the user is already authenticated but it’s just not going into the site admin.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Temporary Solution:&lt;/strong&gt;&lt;br /&gt;After digging a little deeper and debugging the whole thing by putting echo “I’m now here”; after each line I would try to figure out at which step it has a problem, I followed every ‘include’ and ‘require’ in each file in the process and then suddenly I found the step where it just allowed me to login.&lt;/p&gt; &lt;p&gt;The file is =&gt; &lt;siteroot&gt;/admin/admin.php&lt;br /&gt;Line Number 28 or around&lt;br /&gt;Function:  &lt;code&gt;auth_redirect();&lt;/code&gt;&lt;br /&gt;I comment this and voila! I’m in the site admin!&lt;br /&gt;Now I searched out what this function did… I found the above function defined in the following file&lt;br /&gt;File: &lt;siteroot&gt;/wp-includes/pluggable.php&lt;br /&gt;Line:  721 or around:&lt;br /&gt;The function is this;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;function auth_redirect() {&lt;br /&gt; // Checks if a user is logged in, if not redirects them to the login page&lt;br /&gt;&lt;br /&gt; if ( is_ssl() || force_ssl_admin() )&lt;br /&gt;  $secure = true;&lt;br /&gt; else&lt;br /&gt;  $secure = false;&lt;br /&gt;&lt;br /&gt; // If https is required and request is http, redirect&lt;br /&gt; if ( $secure &amp;amp;&amp;amp; !is_ssl() &amp;amp;&amp;amp; false !== strpos($_SERVER['REQUEST_URI'], 'wp-admin') ) {&lt;br /&gt;  if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {&lt;br /&gt;   wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));&lt;br /&gt;   exit();&lt;br /&gt;  } else {&lt;br /&gt;   wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);&lt;br /&gt;   exit();&lt;br /&gt;  }&lt;br /&gt; }&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;I have skipped this step and have no absolute idea what this function does that caused it to take me back to the login page again and again. I’m guessing by the comments in the code that it has something to do with the http / https request!? I’ve been using a normal http connection throughout everything.&lt;/p&gt; &lt;p&gt;Guys all of you out there let me know what this function does as I have already spend a whole day figuring this out its 2:30 in the morning and my head is spinning. I can’t do more searching on this. If the function was there it was there for a reason. We need to know what reason was it. &lt;/p&gt;&lt;/div&gt;   &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5699608902832804332-1009481392180927701?l=nadirwebs.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nadirwebs/~4/UV2fbVoZHZA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadirwebs.blogspot.com/feeds/1009481392180927701/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5699608902832804332&amp;postID=1009481392180927701" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5699608902832804332/posts/default/1009481392180927701?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5699608902832804332/posts/default/1009481392180927701?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/nadirwebs/~3/UV2fbVoZHZA/cannot-enter-site-admin-after.html" title="Cannot enter Site Admin after installing WordPress 2.7 (1 post)" /><author><name>Nadir Nasir</name><uri>http://www.blogger.com/profile/01120929061701252909</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="09122888271463742282" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://nadirwebs.blogspot.com/2009/02/cannot-enter-site-admin-after.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEAERn88cCp7ImA9WxRbFEQ.&quot;"><id>tag:blogger.com,1999:blog-5699608902832804332.post-8476427450528177036</id><published>2008-12-05T08:54:00.000-08:00</published><updated>2008-12-05T09:05:07.178-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-05T09:05:07.178-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Facebook Issues" /><title>SO! Irresponsible Facebook!</title><content type="html">I just received an email from Facebook as under. I'm just amazed to see how irresponsible this mega website can be! The way this issue was addressed in the email sounds like this doesn't mean anything to the user nor the website itself.&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="color: rgb(204, 51, 204);"&gt;Unfortunately, the settings that control which email notifications get sent to you were lost. We're sorry for the inconvenience.&lt;br /&gt;&lt;br /&gt;To reset your email notification settings, go to:&lt;br /&gt;&lt;br /&gt;  &lt;a href="http://www.facebook.com/editaccount.php?notifications" target="_blank"&gt;http://www.facebook.com/&lt;wbr&gt;editaccount.php?notifications&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;The Facebook Team&lt;/blockquote&gt;&lt;br /&gt;They don't seem to notice that this could have a very negative impact on the image of facebook. Who knows what they loose next, private photos, passwords, chats or what! and you'll be getting and email, Sorry we lost your private data!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5699608902832804332-8476427450528177036?l=nadirwebs.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nadirwebs/~4/Q_fGZ6cHtF8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadirwebs.blogspot.com/feeds/8476427450528177036/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5699608902832804332&amp;postID=8476427450528177036" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5699608902832804332/posts/default/8476427450528177036?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5699608902832804332/posts/default/8476427450528177036?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/nadirwebs/~3/Q_fGZ6cHtF8/so-irresponsible-facebook.html" title="SO! Irresponsible Facebook!" /><author><name>Nadir Nasir</name><uri>http://www.blogger.com/profile/01120929061701252909</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="09122888271463742282" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://nadirwebs.blogspot.com/2008/12/so-irresponsible-facebook.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UBRn8_fyp7ImA9WxdTEkk.&quot;"><id>tag:blogger.com,1999:blog-5699608902832804332.post-7084900657180874862</id><published>2008-05-08T04:08:00.001-07:00</published><updated>2008-05-08T04:14:17.147-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-05-08T04:14:17.147-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Qubit" /><category scheme="http://www.blogger.com/atom/ns#" term="Moore's Law Defied" /><category scheme="http://www.blogger.com/atom/ns#" term="Quantum Mechamnics and Computing" /><category scheme="http://www.blogger.com/atom/ns#" term="300GHz Processor" /><category scheme="http://www.blogger.com/atom/ns#" term="Moore's Law dead" /><category scheme="http://www.blogger.com/atom/ns#" term="The fastest Computer in History" /><category scheme="http://www.blogger.com/atom/ns#" term="Computing at speed of light" /><title>Computer that runs at the speed of light (Literally)!</title><content type="html">IBM is about to unveil a revolutionary form of computing that could tranform the World of information. It is known as the Crystal Computer and it is a way to use pulses of light to transfer and store digital information as quantum bits. A processor so fast it is capable of running the eqivilatent of 300GHz, or about 400 Gflop/sec, that’s about 100 times faster than today’s fastest consumer microprocessors.&lt;br /&gt;&lt;br /&gt;.... The advance is similar to the one made by Australian National University, which used two lasers to focus at a silicate crystal holding atoms of an element known as praseodymium. The element absorbed the light and stored the quantum information as quantum bits.&lt;br /&gt;&lt;br /&gt;....IBM scientists will use a complex process to evenly distribute the rare element neodymium inside silicate crystal. The process works by transferring information onto light beams utilizing the natural "nuclear spin" of the photons in the laser beam. When a series of three lasers are beamed in sequence on the crystal, digital information stored as quantum bits are released and the quantum information is encoded on the neodymium atoms. These atoms can store massive amounts of information. Because of the laws governing quantum mechanics, particles that make up the atoms can be oriented both up and down at the same time. This unit of information is called a qubit, and can hold much more information than a standard digital bit made up of either a 1 or 0.&lt;br /&gt;&lt;br /&gt;....The best part about this breakthrough is that it shatters Moore’s Law, which states the number of transistors per square inch on integrated circuits will doubled every 18 months. The Crystal computer changes the computer paradyme by taking the transitor right out of the mix, and replacing it with the atom. Processor heat and complexity will be replaced with the cool methodical spin of the atom.&lt;br /&gt;&lt;br /&gt;....Plans are speeding ahead for a 2009 introduction date, the working name for the chip is “neoton”. Can the Crystal Computer deliver the kind of performance promised and the reliability needed to capture the PC market. Only time and Moore’s unstoppable Law will tell..... " This is clearly the dawning of a new age in computers "&lt;br /&gt;&lt;br /&gt;Source: &lt;a href="http://www.newtechspy.com/articles06/crystalcomputer.html"&gt;http://www.newtechspy.com/articles06/crystalcomputer.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5699608902832804332-7084900657180874862?l=nadirwebs.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nadirwebs/~4/0mfmbFsIjEM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadirwebs.blogspot.com/feeds/7084900657180874862/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5699608902832804332&amp;postID=7084900657180874862" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5699608902832804332/posts/default/7084900657180874862?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5699608902832804332/posts/default/7084900657180874862?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/nadirwebs/~3/0mfmbFsIjEM/computer-that-runs-at-speed-of-light.html" title="Computer that runs at the speed of light (Literally)!" /><author><name>Nadir Nasir</name><uri>http://www.blogger.com/profile/01120929061701252909</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="09122888271463742282" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://nadirwebs.blogspot.com/2008/05/computer-that-runs-at-speed-of-light.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEECSXk-fCp7ImA9WxdTEEU.&quot;"><id>tag:blogger.com,1999:blog-5699608902832804332.post-4310528002945153578</id><published>2008-05-06T06:35:00.000-07:00</published><updated>2008-05-06T08:11:08.754-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-05-06T08:11:08.754-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Expired Cirtificate" /><category scheme="http://www.blogger.com/atom/ns#" term="Working Nokia E61i Themes." /><category scheme="http://www.blogger.com/atom/ns#" term="Invalid date" /><category scheme="http://www.blogger.com/atom/ns#" term="Installing Themes on Nokia E61i" /><title>Working Steps for Installing Themes on Nokia E61i</title><content type="html">I have been searching the internet ever since I got my E61i about installing themes to my new phone.&lt;br /&gt;&lt;br /&gt;I use to get the error or "Expired Certificate", so I found that changing my phone date to almost one year back can do the trick, but there was no luck. I then get an error of 'Invalid Certificate and You System Date seems to be invalid'. Then someone wrote that the date should be after one or two weeks after the publishing date of the theme, I did that too but there was no luck.&lt;br /&gt;&lt;br /&gt;I discovered that not only you have to change the date back but you also have to change the settings for application that are installed on the phone.&lt;br /&gt;&lt;br /&gt;Here are some easy steps for installing themes to your Nokia E61i. It is guaranteed to work, if everything is compatible. It did for me, I hope it will do the same for you too.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Go to Tools &gt;&gt; Clock &gt;&gt; Settings and change the time back one year. (if its 5/6/2008, change it to 5/6/2007) - In case the "Auto-Update" is enabled, it will prompt you "Auto Update Date Time Disabled"&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Then go to Applications &gt;&gt; App Mgr &gt;Go To the Options Menu &gt; Settings, In the settings change the "Software Installation" value to "ALL" from "Signed Only". Signed only is usually the default selected value.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Now copy the theme to your phone (.sis file) and open it. It will verify to continue installing unsigned application, select "Continue", every time is asks for confirmation. Then select where to install the theme, that is phone or memory card.&lt;/li&gt;&lt;li&gt;In the last go to Tools &gt;&gt; Themes &gt;&gt; and select the theme you just installed.&lt;/li&gt;&lt;/ol&gt;Enjoy the new themes on your new Nokia E61i, but don't forget to change back the date to the real date. You can find more themes on &lt;a href="http://www.mobile9.com/"&gt;http://www.mobile9.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Cheers!&lt;br /&gt;&lt;br /&gt;You can post comments and feedback in case you are finding problems on your Nokia E61i.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5699608902832804332-4310528002945153578?l=nadirwebs.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nadirwebs/~4/bC7Z1GQjxDc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadirwebs.blogspot.com/feeds/4310528002945153578/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5699608902832804332&amp;postID=4310528002945153578" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5699608902832804332/posts/default/4310528002945153578?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5699608902832804332/posts/default/4310528002945153578?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/nadirwebs/~3/bC7Z1GQjxDc/working-steps-for-installing-themes-on.html" title="Working Steps for Installing Themes on Nokia E61i" /><author><name>Nadir Nasir</name><uri>http://www.blogger.com/profile/01120929061701252909</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="09122888271463742282" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://nadirwebs.blogspot.com/2008/05/working-steps-for-installing-themes-on.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUBQH4yfip7ImA9WB9aEkQ.&quot;"><id>tag:blogger.com,1999:blog-5699608902832804332.post-1981367601621075983</id><published>2008-01-02T05:36:00.000-08:00</published><updated>2008-01-02T09:50:51.096-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-01-02T09:50:51.096-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="nadir nasir" /><category scheme="http://www.blogger.com/atom/ns#" term="nadir" /><category scheme="http://www.blogger.com/atom/ns#" term="internet" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><category scheme="http://www.blogger.com/atom/ns#" term="web devlopment. designing." /><category scheme="http://www.blogger.com/atom/ns#" term="karachi" /><title>Internet - A Vital Need / PHP getdate() Function</title><content type="html">&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-family:georgia;"&gt;It is vital to have an internet connection in your life. No matter what field you are in, internet makes your life a piece of cake when it comes to gathering information or learning.&lt;br /&gt;&lt;br /&gt;I find myself clinging between two different fields, that is, IT and Creative Designing. Being a Graphics Designer at core - I don't find myself very strong in programming / scripting.&lt;br /&gt;&lt;br /&gt;There was a task when I had to retrieve the date form the database which is OLDER THAN 1 MONTH and is left unverified (a specific system was designed when the user who filled the form will confirm his/her e-mail address by clicking on the link in the dynamically-generated e-mail in their inbox).&lt;br /&gt;&lt;br /&gt;For that I need to find the current date and perform a date calculation to get the only data which is 1 month old. Simple additions and subtraction of the Months or Days will some day / month give a negative value and the system will crash. I did not know how to make proper date-calculation in mySQL queries or PHP, I was very confused how to achieve this task, the other way around was to write a conditional code with a lot of &lt;span style="color: rgb(0, 153, 0);"&gt;if&lt;/span&gt; and &lt;span style="color: rgb(0, 153, 0);"&gt;elseif&lt;/span&gt; to detect and solve this problem.&lt;br /&gt;&lt;br /&gt;I spend more than an hour to figure out all the values that we get when we use a function getdate() -- Due to no internet connection! If there was an internet connection it would have taken a minute or two to find it out. Basically when you use the following code;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;&lt;span style="color: rgb(51, 51, 51);"&gt;$cur_date&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;getdate()&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;print_r&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:courier new;" &gt;$cur_date&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="color: rgb(0, 0, 0);font-family:courier new;" &gt;) &lt;span style="color: rgb(153, 0, 0);"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;getdate()&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; f&lt;/span&gt;unction gets the current date and time of the system in an ARRAY. You will get an out put of this sort;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);font-family:times new roman;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;blockquote&gt;Array (     [seconds] =&gt; 10     [minutes] =&gt; 5     [hours] =&gt; 19     [mday] =&gt; 2     [wday] =&gt; 3     [mon] =&gt; 1     [year] =&gt; 2008     [yday] =&gt; 1     [weekday] =&gt; Wednesday     [month] =&gt; January     &lt;span style="font-weight: bold;"&gt;[0] =&gt; 1199282710&lt;/span&gt; )&lt;/blockquote&gt;&lt;/span&gt;&lt;/span&gt;Notice the value in bold &lt;span style="color: rgb(51, 204, 0);font-family:times new roman;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;[0] =&gt; 1199282710 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;This is a very confusing value for me (as I didn't know the basics), anyway I figured out that it is &lt;span style="font-weight: bold;"&gt;number of seconds &lt;/span&gt;from the early / initial time.&lt;br /&gt;&lt;br /&gt;-- I'm going to shorten the explanation here-for details you may contact / comment --&lt;br /&gt;&lt;br /&gt;Windows Early / beginning time is &lt;span style="color: rgb(51, 51, 255);"&gt;1st Jan 1970 05:00:00&lt;/span&gt; (that is, 5 in the morning)&lt;br /&gt;which in terms of timestamp is written as ZERO (0)&lt;br /&gt;&lt;br /&gt;If you get a current timestamp it is the number of seconds added to the begining time, that is, zero.&lt;br /&gt;&lt;br /&gt;So if you want to get to 1st of February 1970 then you should add something like this&lt;br /&gt;&lt;br /&gt;(days * hours * minutes * seconds) this will give you the seconds in 1 month, which is;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 51, 204);font-family:courier new;" &gt;31*24*60*60 = 2678400 = 1 Month = 31 Days&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 51, 204);font-family:courier new;" &gt;30*24*60*60 = 2592000 = 1 Month = 30 Days&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 51, 204);font-family:courier new;" &gt;24*60*60    =   86400 = 1 Day&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 51, 204);font-family:courier new;" &gt;3*24*60*60  =  259200 = 3 Days&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 51, 204);font-family:courier new;" &gt;7*24*60*60  =  604800 = 7 Days - Week&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The system also knows which month has 28 days and 31 days. so when you are adding 2 months to a timestamp, note that its not always 2678400* 2 :)&lt;br /&gt;&lt;br /&gt;Here is the code which I played with, take a look at it it may help you out.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;$current_date = &lt;span style="color: rgb(51, 51, 255);"&gt;getdate&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;()&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$current_timestamp = $current_date&lt;span style="color: rgb(0, 0, 153);"&gt;[&lt;span style="color: rgb(255, 0, 0);"&gt;'0'&lt;/span&gt;]&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;"Current Timestamp: "&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;.&lt;/span&gt; $current_timestamp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;"&lt;br /&gt;"&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$current_date_formatted = &lt;span style="color: rgb(51, 51, 255);"&gt;date&lt;span style="color: rgb(0, 0, 153);"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;'d M, Y H:m:s A'&lt;/span&gt;, $current_timestamp&lt;span style="color: rgb(0, 0, 153);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;"Current Date Formatted: "&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;.&lt;/span&gt; $current_date_formatted;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;"&lt;br /&gt;"&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$current_date_sysformatted = &lt;span style="color: rgb(51, 51, 255);"&gt;date&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;'Y-m-d H:m:s'&lt;/span&gt;, $current_timestamp&lt;span style="color: rgb(0, 0, 153);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;"Current Date System Formatted: "&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;.&lt;/span&gt; $current_date_sysformatted;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;"&lt;br /&gt;"&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$older_timestamp = &lt;span style="color: rgb(0, 0, 153);"&gt;(&lt;/span&gt;$current_timestamp - &lt;span style="color: rgb(255, 0, 0);"&gt;2678400&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;"Older Timestamp: " &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;.&lt;/span&gt; $older_timestamp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;"&lt;br /&gt;"&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$older_date_formatted = &lt;span style="color: rgb(51, 51, 255);"&gt;date&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;'d M, Y H:m:s A'&lt;/span&gt;, $older_timestamp&lt;span style="color: rgb(0, 0, 153);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;"Older Date Formatted: "&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;. &lt;/span&gt;$older_date_formatted;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;"&lt;br /&gt;"&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$older_date_sysformatted = &lt;span style="color: rgb(51, 51, 255);"&gt;date&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;'Y-m-d H:m:s'&lt;/span&gt;, $older_timestamp&lt;span style="color: rgb(0, 0, 153);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;"Current Date System Formatted: "&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;. &lt;/span&gt;$older_date_sysformatted;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5699608902832804332-1981367601621075983?l=nadirwebs.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nadirwebs/~4/vGYs6s-aKDc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadirwebs.blogspot.com/feeds/1981367601621075983/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5699608902832804332&amp;postID=1981367601621075983" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5699608902832804332/posts/default/1981367601621075983?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5699608902832804332/posts/default/1981367601621075983?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/nadirwebs/~3/vGYs6s-aKDc/internet-vital-need.html" title="Internet - A Vital Need / PHP getdate() Function" /><author><name>Nadir Nasir</name><uri>http://www.blogger.com/profile/01120929061701252909</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="09122888271463742282" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://nadirwebs.blogspot.com/2008/01/internet-vital-need.html</feedburner:origLink></entry></feed>
