473,407 Members | 2,676 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,407 software developers and data experts.

Recommendation for a PHP ORM library?

Hi,

I'm using PHP 5.2. I am looking for some library or framework that
can map/generate PHP objects to MySQL database tables. I found
Propel, though a Google search, but it requires me to turn off magic
quotes in my php.ini file and too many of my applications depend on
that setting.

Anyway, your experiences and recommendations are greatly appreciated,
- Dave
Jul 4 '08 #1
5 1535
la***********@gmail.com schrieb:
Hi,

I'm using PHP 5.2. I am looking for some library or framework that
can map/generate PHP objects to MySQL database tables. I found
Propel, though a Google search, but it requires me to turn off magic
quotes in my php.ini file and too many of my applications depend on
that setting.
Are you sure?
I found in the code:
--------------------------------
this->value = $_POST[$varName];
if ( ini_get( 'magic_quotes_gpc' ) )
$this->value = $this->rStripSlashes( $this->value );
--------------------------------

So it will checked, if MQ is on or not.

Jul 4 '08 #2
la***********@gmail.com wrote:
Hi,

I'm using PHP 5.2. I am looking for some library or framework that
can map/generate PHP objects to MySQL database tables. I found
Propel, though a Google search, but it requires me to turn off magic
quotes in my php.ini file and too many of my applications depend on
that setting.

Anyway, your experiences and recommendations are greatly appreciated,
- Dave
So, fix your applications. Test for magic quotes as Olaf suggested,
then turn them off.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jul 4 '08 #3
..oO(la***********@gmail.com)
>I'm using PHP 5.2. I am looking for some library or framework that
can map/generate PHP objects to MySQL database tables. I found
Propel, though a Google search, but it requires me to turn off magic
quotes in my php.ini file and too many of my applications depend on
that setting.
You should start fixing your applications, because magic quotes will
be completely removed from PHP 6. They never worked properly and won't
prevent SQL injection.

Micha
Jul 4 '08 #4
On Jul 3, 9:53*pm, Olaf Schinkel <tr...@schinkel.tvwrote:
laredotorn...@gmail.com schrieb:Hi,
I'm using PHP 5.2. *I am looking for some library or framework that
can map/generate PHP objects to MySQL database tables. *I found
Propel, though a Google search, but it requires me to turn off magic
quotes in my php.ini file and too many of my applications depend on
that setting.

Are you sure?
I found in the code:
--------------------------------
this->value *= * * * $_POST[$varName];
* * * * * * * * * * * * if ( ini_get( 'magic_quotes_gpc' ) )
* * * * * * * * * * * * * * * * $this->value = $this->rStripSlashes( $this->value );
--------------------------------

So it will checked, if MQ is on or not.
Oh, I hadn't looked at the Propel source code. I just read from their
installation page that it was a requirement for that to be turned
off. So have you used Propel as an ORM tool and is it working well
for you? Thanks, - Dave
Jul 5 '08 #5
On Jul 3, 10:23*pm, "laredotorn...@gmail.com"
<laredotorn...@gmail.comwrote:
Hi,

I'm using PHP 5.2. *I am looking for some library or framework that
can map/generate PHP objects to MySQL database tables. *I found
Propel, though a Google search, but it requires me to turn off magic
quotes in my php.ini file and too many of my applications depend on
that setting.

Anyway, your experiences and recommendations are greatly appreciated,
- Dave
I use Propel with the symfony PHP framework. I think it is excellent
but it does have some drawbacks like limited support for many to many
relationships. Also, if not coded correctly it can make some simple
database query go very slowly due to have to create many objects.
Joins for example are done very slow if not used correctly.

If you do use Propel be sure to read the docs. If done correctly it
can be a blast!
Jul 11 '08 #6

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

Similar topics

2
by: Allan Bruce | last post by:
Hi there, I am wanting to learn c++ better. I can get by in c, and have really just used c++ as a 'c with classes' approach. I want to learn the object-oriented approach, STL and streams. ...
5
by: D. Alvarado | last post by:
Hello, DOes anyone have a recommendation for some free code to send out HTML-formatted emails? The code does not have to be cross-browser compatible. Thanks for any advice, - Dave
36
by: Peter Brause | last post by:
Hello, my stylesheet shows different colors for visited, active and hovered links. It works fine in IE 6, but in Opera 7 the color for the active link (red background) is never shown. How to...
1
by: Marc Ouellette | last post by:
Hi Everyone, I need to get some components for some tasks and would like to know what you recommend. -Chart Control(Dundas,ComponentOne,xceed chart?) -Flow Chart(Diagram Control) -Image...
7
by: Markus Dehmann | last post by:
Is there a good book on STL containers and how to use the STL efficiently, in general? I often don't know if a map, hash_map (not STL?), or vector would be more efficient. Or list? What is a...
4
by: PCHOME | last post by:
Hi! I have a Waite Group Turbo C++ bilble(1990) ISBN 0-672-22742-8. I like it because it gives me examples of most of C library I may use. But that book is a little bit old. Does anyone know any...
6
by: msnews.microsoft.com | last post by:
I am a C# programmer with a little C++ experience from a few years ago. I need to write some ISAPI filters and extensions to run on the latest version of IIS on .net Server 2003. Can anyone...
6
by: ted | last post by:
Hi, I have been programming for about 5 years mainly on client apps that are standalone and n-tier. I have very little experience with web development. I need a recommendation on a book that...
1
by: Ratbert | last post by:
Hi, I'm searching for a portable library, providing some sort of parsing functionality. The library should help to encode and decodes command phrases. Commands are plain text C-strings,...
1
by: Sudo Nim | last post by:
Does anyone have a recommendation for a good javascript encryption library? Preferably AES and well tested.
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.