During all these ages I spent on various PHP forums, I've got a small collection of funny or peculiar issues that I want to share.
I am the only person to hold a gold badge in
on Stack Overflow and I am eager to show the right way for PHP developers.
Besides, your questions let me make my articles even better, so you are more than welcome to ask any question you got.
Click here to ask!
Please refrain from sending spam or advertising of any sort.
Messages with hyperlinks will be pending for moderator's review.
Markdown is now supported:
If you want to get a reply from admin, you may enter your Eómail address above
Thanks for the most excellent PDO tutorials. I would like to hire a programmer to create complete, best practices PDO examples to replace the PDOModel examples used on xlsql.net. Please advise. Thanks.
From a quick look, PDOModel should be pretty solid, at least from PDO standpoint. But I'd be glad to do some review. Write me to firstname.lastname@example.org
Hey, I hated to see that you were "banned" from SO because you ' tirelessly chased people who wrote bad answers'. I really despise bad or simplistic answers as well. You really helped me on an issue that was driving me nuts (regarding checkboxes).
Seems like, instead of complaining, people should try to learn something if/when the comment is tactful and informative.
I adhere to your recommendation to NOT output any (php) error messages to the browser (say, via a directive in htaccess on the live server).
My question is how to output a useful message to the website visitor?
Example: I have a page which allows my client to upload language CSV strings to a database. I DO want them to be able to notify me of a generic error description if the process fails. So, if I use mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); then how can I output a generic error to the browser - especially if the db code is contained in a "DB" class as you recommend here:
You have to create an error handler. The idea is that you create a single funtion that will handle all errors at once. There is a simple example in the related article, https://phpdelusions.net/articles/error_reporting#error_page
It's only a basic implementation, feel free to modify it for your needs.
Congratulations for site quality. Yours articles help me in complicated php project.
I am sorry for posting on your website as it's.
My post has nothing to do with the above mentioned.
I was hoping to have direct contact with you via mail to and i will explain in details why.
Was not able to find any other way.
I left my email so you can contact me.
Looking forward to hearing from you.
I use myself eclipse PDT, not bad at all (but memory-hungry because, well, it's eclipse)...
You say that most of the problems with PHP can be solved by a good IDE. What is your recommendation in that area?
Thank you for the good question!
I meant that any good IDE has a code completion feature, that will suggest you both a function name as soon as you start typing it, and its arguments and their order. So you don't care for the alleged "inconsistency" in the functions naming or parameters.
I would recommend two IDEs - one is paid, which costs $90, called PHPStorm, I am using it myself, and every day I am discovering new wonderful feature.
Another one is NetBeans, which is free but still very rich with features. Both are multi-platform and work on any OS.
Feel free to ask if you have any other question!
Is it possible with PDO to make a MySQL connection without using a password?
Not sure what you mean and which driver you are using, but at least you can provide an empty password if password for your database is empty.