ASSUMPTIONS: I’m expecting only 1 row of data for the fetch-ing I need the fetched-data to be in the form of an stdClass object You are familiar with using PDO – PHP Data Objects This PDO error typically occurs when you try to fetch data into an stdClass object by using fetchAll() By definition fetchAll [...]
Archive for the ‘My PHP Logs’ Category
$phpPost->_title(" PHP 5.3 + How To Completely Destroy Session Variables In PHP ");
The Sessions Bonanza By default sessions are stored on the disk your server, you can find out the path by echo-ing for the attribute session.save_path: echo ini_get( “session.save_path” ); (You can change that path in php.ini) PHP Sessions are destroyed automatically when you close your browser. But what if you want to destroy the session [...]
$phpPost->_title(" How To Install A Fresh MantisBT – OpenSource Bug Tracker ");
Assumptions: You know how to setup your LAMP stack and any related Apache setups to run a website You know how to use phpMyAdmin or any other MySql query browser We are setting this up in a LOCAL environment and we are not bothering about any security or good practice scenarios Step by Step Of [...]
$phpPost->_title(" How To Quickly Know Which PDO Driver Is Available For Your LAMP Stack ");
How To Quickly Know Which PDO Driver Is Available For Your LAMP Stack. Instead of looking all through your phpinfo()
$phpPost->_title(" PHP PDO + Warning: PDO::__construct() [pdo.--construct]: [2002] Invalid argument (trying to connect via unix://) ");
If you are trying to establish a connection handle by using PDO, you might have encountered this error: Warning: PDO::__construct() : Invalid argument (trying to connect via unix://)
$phpPost->_title(" DooPHP + Alloy Framework + Zend Framework + Object not found! + The requested URL was not found on this server ");
Assumption: You are using a Linux distro + You are using Xampp as your LAMP stack If you are new to using MVC frameworks, for instance DooPHP, AlloyFramework or ZendFramework, it might be that you have been bumping your head against the wall when you browser outputs the following error message: “Object not found! The [...]

