PHP

Displaying Current Year In PHP

Posted by on November 8, 2010 at 1:22 pm

To display the current year in php, use the example below: <?php echo date("Y") ?>

Need PHP Server Information

Posted by on May 6, 2010 at 2:28 pm

If you ever need to get your php server setting information, the easiest way is to create a file called phpinfo.php and then drop the following information into the file: <?php   phpinfo(); ?> FTP the file up to your server and then go to it with your browser.

File Size Too Large When Importing To mySQL Database

Posted by on March 28, 2010 at 4:47 pm

This is an easy fix as long as you have access to the php.ini file. If you run into a file size error, open php.ini in your PHP folder and make changes to the following lines: values of upload_max_filesize (Default 2M) memory_limit (Default 16M) and post_max_size (Default 8M)