Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Feb 2, 2013

// // Leave a Comment

Unix Timestamp and January 1, 1970

Unix timestamp
While coding in PHP and Open Source Technologies i always used to see this date -'January 1, 1970'. Always wondered what could be the reason this date has been set as default, and some research and reading this is what I understood.

Read More

Jan 8, 2013

// // Leave a Comment

Locate PHP configuration file

Locate your php.ini location

1.Create a new file say version.php
2.Type in the code
        echo phpinfo();

3.Save the file.
4.Upload to your web server and access the same file using the web url.
5.Check for 'Loaded Configuration File'  section and you will see the location where php.ini is saved.
Read More