Posts Tagged ‘php’

Importing Excel files into MySQL with PHP

If you have Excel files that need to be imported into MySQL, you can import them easily with PHP. First, you will need to download some prerequisites:
PHPExcelReader - http://sourceforge.net/projects/phpexcelreader/
Spreadsheet_Excel_Writer - http://pear.php.net/package/Spreadsheet_Excel_Writer
Once you’ve downloaded both items, upload them to your server. Your directory listing on your server should have two directories: Excel (from PHPExcelReader) [...]

SquirrelMail: 127 Can’t execute command

I found a Plesk 8.3 server running RHEL 4 last month that was presenting errors when users attempted to send e-mail via SquirrelMail:
ERROR:
Email delivery error
Server replied: 127 Can’t execute command ‘/usr/sbin/sendmail -i -t -fsomeuser@somedomain.com’.
The error was appearing because safe_mode was enabled and SquirrelMail was unable to drop e-mails into /usr/sbin/squirrelmail. After disabling safe_mode on [...]

Strange error with Horde 3.1.3 and Plesk 8.1.1

I saw a ticket the other day where a customer received this error from Horde when trying to expand items on the left pane of the interface:
Fatal error: Cannot use string offset as an array in /www/horde/lib/Horde/Block/Layout/Manager.php on line 389
It turns out that Plesk 8.1.1 bundles Horde 3.1.3 which has an occasional bug within the [...]