The file is clearly there, yet require_once(./*.php) throws an error

Problem description:Right after installing PMA, accessing it in Firefox shows a blank page with no output at all. In IE you can see a 500 error (Internal Server Error). Turn on error reporting and you find this: Warning: require_once(./libraries/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in ***\mousebomb\pma\index.php on line 35 Fatal error: require_once() [function.require]: Failed opening required ‘./libraries/common.inc.php’ (include_path=’.;C:\php5\pear’) in ***\mousebomb\pma\index.php on line 35 And yet the file really does exist, and IUSR (the IIS anonymous access user) has permission on it.

Backend Server

Spending your whole life loading org.eclipse.php.core?

Problem description:At the company I use Zend Studio for Eclipse Professional Edition to write PHP projects. It’s a great piece of software, but it still has plenty of bugs. This morning it suddenly refused to start — it got stuck on loading org.eclipse.php.core and the progress bar never moved again. I tried reinstalling over the existing installation and it still didn’t work, which left me baffled. Was I going to be stuck at loading org.eclipse.php.core forever?

Backend Server

PDO transaction error?

Today I hit an error in the PDO transaction-handling part: Fatal error: Uncaught exception ‘PDOException’ with message ‘There is no active transaction’ in /data/www/web.passport/pay/classes/class.Mydb.php:145 Stack trace: #0 /data/www/web.passport/pay/classes/class.Mydb.php(145): PDO->rollBack() #1 /data/www/web.passport/pay/yeepayOrder.php(138): Mydb->transaction(Array) #2 {main} thrown in /data/www/web.passport/pay/classes/class.Mydb.php on line 145 Looking through the error log I saw:

Backend Server

Core features of the e-magazine publishing platform completed

Based on the requirements FL鱼SH laid out originally, I’ve been tinkering with this for over a month, and the e-magazine publishing platform’s basic functionality is OK — there’s still a lot of grap...

Works

The Ultimate Fix for Garbled Text When Flash Fetches PHP-Generated XML

I’m never one to back down from wrestling with the most bizarre problems—let’s see who comes out on top. It’s been ages since I hit an obstacle while coding, yet today I ran into a little snag—XML generated by PHP came out as garbled text when fetched with FLASH. After some digging I finally solved it. Recording it here, and also jotting down the general solution. If you also run into XML <-> FLASH garbled text, here’s a quick reference: 1. When you’re certain the XML is absolutely fine:First, FLASH reading XML and getting garbled text involves the static property System.useCodepage. Official description: “A Boolean value that tells Flash Player which code page to use to interpret external text files.” Defaults to false.

Flash

How to fix session_start() errors in PHP

I’m not doing .net for now — I’ve gotten interested in PHP, so I’m learning PHP while working on it. There are a shocking number of baffling things in the beginner stage; good thing I was mentally prepared. Last night I ran into a problem: in PHP, session_start() always threw an error: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:wwwrootEZineTest.php:1) in D:wwwrootEZineTest.php on line 1 I searched all over the web and found three explanations and fixes for it:

Backend Server