My host is running PHP 5.2 and I thought everything would be just great. First error was in the code I use to make sure everything is initialized to include the few functions I have, login to the database, and set the time. I have the following error settings:
<?php
ini_set('display_errors',1);
error_reporting(-1);
ini_set('log_errors',1);
?>
It gave me a fatal error on this line of code:
date_default_timezone_set('America/New_York');
I currently commented this line out and have searched for the correct code. This leaves me wondering what my code should read?
My second error comes from the second line of code in this:
<?php
foreach (new DirectoryIterator('../documents') as $fileInfo) {
if($fileInfo->isDot()) continue;
echo '<p class="adobe"><img src="/images/pdficon_small.gif" width="17" height="17" title="PDF icon" alt="PDF icon" /><a href="../documents/' . $fileInfo->getFilename() . ' ">' . $fileInfo->getFilename() . '</a></p> ';
}
?>
I am trying to get a list of every file and create a link to allow that PDF to be opened.
As it stands, I have the website running, but the documents that should show are not.