Sorry John went up the wrong branch! It's to do with the $userDir This works for me: $configFile = $userDir . "/user.cfg"; to $configFile = "user.cfg"; $dir = opendir ($userDir); to $dir = opendir ('./'); $downloadLink = '<a href="' . $outputFile . to $downloadLink = '<a href="userFiles/'. $uniqueId . '/' . $outputFile . readfile ($userDir . "/" . $fileName); to readfile ($fileName); $message = "# " . $fileName . "\n" . file_get_contents ($userDir . "/" . $fileName); to $message = "# " . $fileName . "\n" . file_get_contents ($fileName); Paul -----Original Message----- From: Paul Wood Sent: 20 October 2009 13:33 To: liblouis-liblouisxml@xxxxxxxxxxxxx Subject: [liblouis-liblouisxml] The new liblouisxml Web Demo Branch liblouisxml svn branches now contains a directory called web-demo . It holds files intended for putting up a demonstration of liblouisxml on a website. Right now there is a problem with translate.php under php version 5.1.6. It ran on a server with a different version. The problem is with the 'filename' index in the declaration of $outputFile, if anyone cares to take a look. Thanks, John -- John J. boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities For a description of the software and to download it go to http://www.jjb-software.com Privileged/Confidential Information may be contained in this message. If you are not the intended recipient please destroy this message and kindly notify the sender by reply email. The computer from which this mail originates is equipped with virus screening software. However Torch Trust cannot guarantee that the mail and its attachments are free from virus infection. Privileged/Confidential Information may be contained in this message. If you are not the intended recipient please destroy this message and kindly notify the sender by reply email. The computer from which this mail originates is equipped with virus screening software. However Torch Trust cannot guarantee that the mail and its attachments are free from virus infection. Privileged/Confidential Information may be contained in this message. If you are not the intended recipient please destroy this message and kindly notify the sender by reply email. The computer from which this mail originates is equipped with virus screening software. However Torch Trust cannot guarantee that the mail and its attachments are free from virus infection. Privileged/Confidential Information may be contained in this message. If you are not the intended recipient please destroy this message and kindly notify the sender by reply email. The computer from which this mail originates is equipped with virus screening software. However Torch Trust cannot guarantee that the mail and its attachments are free from virus infection.