 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Bob Majdak: On SQL in PHP
by Chris Cornutt May 16, 2013 @ 10:11:29
In a new post to his site Bob Majdak looks at using SQL in PHP and some of the challenges he's come across (some of them with his own tools). He talks about things line inline SQL, loading SQL by unique key or creating a "build object".
There is no right or wrong way, but no matter what there is no *pretty* way to do SQL inside of a PHP application. I have been having a personal debate with myself all week about how to make SQL statements nicer in an application without going to a huge DBAL package like Doctrine.
He looks at each idea and provides some of the pros and cons about each of them, noting that he hasn't quite decided on which is the best method. Some sample code is included to help clarify the points, showing the "find by unique key" version and how a more complex query might be created with the "builder object."
voice your opinion now!
sql load unique key build object pros cons method inline
7PHP.com: Zend Certifications Tips & Tricks - Michelangelo van Dam
by Chris Cornutt February 04, 2013 @ 11:22:16
On 7PHP.com today there's a new interview posted, a different kind of one from their usual "community spotlight" series. In this new article they talk with Michelangelo van Dam about the Zend Certified Engineer test and any advice he can offer to those wanting to take it.
This is the 1st set of Zend Certification Tips and Advice to help anyone taking either of the two Zend Exams powered by Zend Technologies: the Zend PHP Certification Exam and/or the Zend Framework Certification Exam. The aim being to help people who want to sit for those exams and inform them what it is all about & what to expect by hearing it from (pro) PHP Guys who have already been through it, that is.
There's a long list of questions in the interview covering a wide range of things about the test everything from what its about out to some of Michelangelo's own opinions about the tests:
- Can you briefly give us an idea of what ZC is about, what it tries to achieve?
- Can you give us an idea of what need to be studied and what kind of stuffs we should expect..etc
- Parts of the modules that you think is more complex and one should pay special attention to?
- What TWO questions can you remember that you can share with us
- Do you recommend PHP guys to get certified?
Check out the answers to these and more questions in the full interview.
voice your opinion now!
zend certification zce framework zfce interview michaelangelovandam opinion
PHPMaster.com: PHP and the i, Part 2
by Chris Cornutt January 24, 2013 @ 12:57:03
On PHPMaster.com today they've posted the second part of their "PHP and the i" series (here's part one). In this new article, he looks a bit closer at what kind of knowledge is needed to develop PHP on the IBM i.
In this somewhat risqué episode, we'll look at just what you need to be able to do development work on the i. Many people in the i world will that PHP is native to the i, but I don't think that's really true. To me, native means that it just runs, no problems or questions asked, nothing special needs to be done, it just sort of happens like when you see someone across a crowded room and know she/he is "the one". That's not the way it works with PHP and the i.
He starts off by talking about Zend and its contribution to the IBM i's abilities to run PHP through RPG thanks to a "bridge" they created. There are other options, but as he points out, they're not as well developed (or supported) as Zend's offering (being Zend Server, Zend Studio and Zend Framework).
He then talks about the details of creating and running scripts - where to put them, what kind of RPG knowledge you'll need to implement them, and which parts of the typical MVC stack work best where.
voice your opinion now!
ibmi systemi as400 development zend rpg mvc
PHPMaster.com: Password Hashing In PHP
by Chris Cornutt January 14, 2013 @ 11:57:32
On PHPMaster.com there's a new tutorial that wants to help you keep your application and users a bit safer - a guide to password hashing for PHP applications.
You must always think about security. If passwords are stored in plain text, what happens if an attacker gains access to your database? He can easily read all of the users' passwords. That's why we use a technique called password hashing to prevent attackers from getting user passwords. In this article you'll learn how to store the passwords securely in the database so that, even if your database falls into wrong hands, no damage will be done.
He starts off describing what password hashing is and why it's important (and better than it's plain-text alternative). He gives some examples of using some of the built-in hashing functions PHP has to offer to generate the hashes. He starts with md5/sha1 (note, these are not recommended) but moves into more effective options like sha256, salted hashing and even bcrypting passwords with crypt.
Be sure to check out the comments for other security concerns and links to suggested tools and resources.
voice your opinion now!
password hash tutorial md5 sha1 sha256 bcrypt
Qafoo.com: Black Magic with Regular Expresions
by Chris Cornutt November 29, 2012 @ 10:21:47
If you've been mystified by regular expressions in the past and want to learn more about their effective use, you should check out these two webcasts from Qafoo - "Black Magic with Regular Expressions" and "Understanding Regular Expressions".
We are happy to announce the availability of my second Regular Expression webinar recording. It was a fun event, which I used to explain all the attendees a little bit more about the PCRE Regular Expression engine available in PHP and some other languages. I am covering some slightly advanced topics, like subpattern options, unicode and backtracking aka. greediness and performance.
You can watch these two recordings over on the Zend.com site:
voice your opinion now!
blackmagic regularexpressions regex webcast recording zend
|
Community Events
Don't see your event here? Let us know!
|