Jump to content

phpsort

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Everything posted by phpsort

  1. Thanks PFMaBiSmAd. I realise that now, but it certainly wasn't an obvious cause when I was searching for the meaning of the Can't fetch message! The message is not exactly helpful, but PHP doesn't plan to change the system soon - see http://bugs.php.net/bug.php?id=51818 I've only just moved to mysqli, and what's missing from the PHP site is a thorough overview and definitions of the basic concepts, such as 'connection', 'statement', 'result'. The PHP notes are often woolly, misleading or just totally missing. If you know of a 'Mysqli for intelligent dummies' article, let me know! Ian
  2. The notes below might not explain the OP's case, but I'm posting here because this thread came up prominently when I was searching for a solution to my own problem and this may help others. I have a shopping cart object stored serialized in a database session. This object has a mysqli object as a property, which is left open for reuse. I was getting the "Couldn't fetch" error every time a new Ajax call tried to access the mysqli object (with OOP) (unless this was a brand new session and the mysqli object had only just been created). I think the problem is that the database connection is lost between Ajax calls. I have solved it for now by adding a destructor to the cart object, which does mysqli->close() (if the object exists - my cart only instantiates it if needed, not in the cart constructor). I haven't checked, but it might also be possible to solve the problem with __sleep. Or you could just be more ruthless and ensure that you never ever leave the mysqli object open.
  3. I'm using a standalone computer with XP SP2, IIS 5.1, PHP 4.3.9, MySQL 4.1.22. I installed IIS6-FastCGI-TechPreview2-x86.zip and mostly it's been the answer to a prayer in curing The specified CGI application misbehaved... But PHP will no longer create a directory or save a file in wwwroot. There are no error messages. This worked before FastCGI, and I can still create directories elsewhere. If I set fastcgi.impersonate = 1 in php.ini, nothing works. I get " FastCGI Handler Extension Error 0x800700e9 occurred processing request. No process is on the other end of the pipe. " I'm extremely ignorant about permissions etc so please feel free to address your reply to an idiot!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.