473,405 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

elaborate PDO documentation: recommendations?

Hi,

Can anyone recommend some extensive PDO documentation? Especially
documentation that describes PDO's security capabilities. For instance what
measurements does the PDO::prepare take to prevent SQL injection, etc.? And
what extra measurements would be appropriate.

PHP's PDO manual isn't very elaborate IMO.

I was also wondering whether it is safe to asume that a fair amount of
(shared) hosting providers will have PDO (and thus PHP5?) installed. Any
experiences?

Thanks!

A.
Aug 17 '06 #1
3 1507

amygdala wrote:
Hi,

Can anyone recommend some extensive PDO documentation? Especially
documentation that describes PDO's security capabilities. For instance what
measurements does the PDO::prepare take to prevent SQL injection, etc.? And
what extra measurements would be appropriate.

PHP's PDO manual isn't very elaborate IMO.
Yeah, the PDO documentation is rather sparse. AFAIK, it will use the
underlying database driver's implementation for escaping strings to
make them safe for queries, and it can't get much better than that,
since those take into account the character specifics of that database.

For database's that don't have prepared statements (ie: mysql < 4.0,
iirc), i believe it emulates them. Not sure what it does exactly, most
likely escapes common characters like ' and "

PDO is very lightweight for a database layer. While it is very fast,
it doesn't have as many features as PEAR::DB or equiv. If you need
more capabilities or options, I suggest another abstraction layer, like
MDB2, adoDB, or any of the other ones.
>
I was also wondering whether it is safe to asume that a fair amount of
(shared) hosting providers will have PDO (and thus PHP5?) installed. Any
experiences?

Thanks!

A.
I'm not sure on how widespread PHP5 is. A few hosters I know of have
it, many don't. The same goes for PDO, since it must be manually
specified in configure and added to the ini file.

Aug 18 '06 #2

"Richard Levasseur" <ri********@gmail.comschreef in bericht
news:11*********************@i3g2000cwc.googlegrou ps.com...
>
amygdala wrote:
>Hi,

Can anyone recommend some extensive PDO documentation? Especially
documentation that describes PDO's security capabilities. For instance
what
measurements does the PDO::prepare take to prevent SQL injection, etc.?
And
what extra measurements would be appropriate.

PHP's PDO manual isn't very elaborate IMO.

Yeah, the PDO documentation is rather sparse. AFAIK, it will use the
underlying database driver's implementation for escaping strings to
make them safe for queries, and it can't get much better than that,
since those take into account the character specifics of that database.
Hmm maybe indeed that's all there is to know. I'm just pretty new to PHP and
databases, so I wanna get a clear understanding of what's going on in the
background of things, to build up confidence that I'm taking the appropriate
measures, etc. etc.
For database's that don't have prepared statements (ie: mysql < 4.0,
iirc), i believe it emulates them. Not sure what it does exactly, most
likely escapes common characters like ' and "

PDO is very lightweight for a database layer. While it is very fast,
it doesn't have as many features as PEAR::DB or equiv. If you need
more capabilities or options, I suggest another abstraction layer, like
MDB2, adoDB, or any of the other ones.
Well, so far PDO met my needs just fine. I'm not doing anything fancy.
>>
I was also wondering whether it is safe to asume that a fair amount of
(shared) hosting providers will have PDO (and thus PHP5?) installed. Any
experiences?

Thanks!

A.

I'm not sure on how widespread PHP5 is. A few hosters I know of have
it, many don't. The same goes for PDO, since it must be manually
specified in configure and added to the ini file.
I understand. While we're on the subject. Can you, or anyone else, recommend
a / some good PHP5 hosting provider(s) offering all around reasonable
prices, good service and undesputed (!! (-; ) knowledge ?

Thanks in advance!
Aug 19 '06 #3
amygdala wrote:
Can anyone recommend some extensive PDO documentation? Especially
documentation that describes PDO's security capabilities. For instance what
measurements does the PDO::prepare take to prevent SQL injection, etc.? And
what extra measurements would be appropriate.

PHP's PDO manual isn't very elaborate IMO.
<snip>

FWIW, you may check the links I added long time ago in the user
notes section at <http://in2.php.net/pdo>

PDO is actually data access layer--which means you don't have to
remember mysql_*, pgsql_*, etc function sets.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Aug 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Linus Nikander | last post by:
Browsing peoples comments at amazon might be rewarding, but it sure takes a lot of time. I'm trying to find good (best) books for a couple of java-related areas. As most people who subscribe to...
3
by: mscir | last post by:
I'm trying to find thorough documentation for creating graphs using serverside Excel from ASP. Any book recommendations? A well-documented COM wrapper would be nice if it allowed us to create...
0
by: Laurens | last post by:
Hi, Any recommendations for a good - and free - schema documentation tool? The tool should be able to output as HTML. Thanks -Laurens
6
by: Peter E. Granger | last post by:
First, I would like to apologize in advance if this is not the appropriate place to post this message; of the .NET-related newsgroups I found, this seemed to be the most general. If the information...
2
by: MLH | last post by:
I want to read more about the microsoft user interface specification for windows applications. I know there are standards that have been developed and I want to gain a little more expertise in the...
1
by: Craig | last post by:
Am looking for recommendations for MS's Application Center Test (ACT) documentation. Thanks in advance. - Craig
97
by: Cameron Laird | last post by:
QOTW: "Python makes it easy to implement algorithms." - casevh "Most of the discussion of immutables here seems to be caused by newcomers wanting to copy an idiom from another language which...
11
by: barcaroller | last post by:
I'm looking for a free software documentation tool that works equally well with C and C++. The ones I have found so far with Google are: - Doxygen - Robodoc - Natural Docs There probably...
4
by: Torsten Robitzki | last post by:
Hi, I'm searching for a documentation system like JavaDoc or DoxyGen that is capable to document JavaScript sources. Sure google leads me to some tools, but without recommendations from real...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.