Archive for the ‘My PHP Logs’ Category

$phpPost->_title(" PHP + PDO + FETCH_OBJ Issue + Notice: Trying to get property of non-object ");

$phpPost->_comments(" No reaction thrown, try-catch{} one? ");

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 [...]

[ Read more, click here! ]

$phpPost->_tag(" ");

$phpPost->_title(" PHP 5.3 + How To Completely Destroy Session Variables In PHP ");

$phpPost->_comments(" 2 reactions catched - throw another? ");

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 [...]

[ Read more, click here! ]

$phpPost->_tag(" ");

$phpPost->_title(" How To Install A Fresh MantisBT – OpenSource Bug Tracker ");

$phpPost->_comments(" No reaction thrown, try-catch{} one? ");

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 [...]

[ Read more, click here! ]

$phpPost->_tag(" , ");

$phpPost->_title(" How To Quickly Know Which PDO Driver Is Available For Your LAMP Stack ");

$phpPost->_comments(" No reaction thrown, try-catch{} one? ");

How To Quickly Know Which PDO Driver Is Available For Your LAMP Stack. Instead of looking all through your phpinfo()

[ Read more, click here! ]

$phpPost->_tag(" , , ");

$phpPost->_title(" PHP PDO + Warning: PDO::__construct() [pdo.--construct]: [2002] Invalid argument (trying to connect via unix://) ");

$phpPost->_comments(" No reaction thrown, try-catch{} one? ");

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://)

[ Read more, click here! ]

$phpPost->_tag(" , , ");

$phpPost->_title(" DooPHP + Alloy Framework + Zend Framework + Object not found! + The requested URL was not found on this server ");

$phpPost->_comments(" No reaction thrown, try-catch{} one? ");

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 [...]

[ Read more, click here! ]