Displaying Current Year In PHP
To display the current year in php, use the example below: <?php echo date("Y") ?>
To display the current year in php, use the example below: <?php echo date("Y") ?>
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.
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)