If you’ve read the PHP|Architect Magazine – March 2011 Edition, you have surely enjoyed the nice article by Jason Austin (a PHP developer from Raleigh, NC) titled “Good PHP help is hard to find“. Jason talks about ‘the why‘ and ‘the how‘ to distinguish yourself as a qualified PHP Professional from the crowd. And the [...]
Archive for the ‘My PHP Logs’ Category
$phpPost->_title(" PHP + PDO + FETCH_OBJ Issue + Notice: Trying to get property of non-object ");
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 [...]
$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://)

