-1

All,

Does anyone know if there is a package available to allow PHP programmers to store their PHP Objects / Instances into mySQL, and still allow them to be searchable? ie .. not serialized?

Looking forward to your responses,

E,

4
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by somedude3488
0

Instead of storing alot of code into a database and making extremely confusing code, couldn't you just make a file named "functions&objects.inc.php"? And then include this into your php-script:

<?php
// 
// Filename: functions&objects.inc.php
//
function sayHi() {
echo "Hi!";
}
var x = new Array();
?>
<?php
//
// Filename: myfile.php
//
include("functions&objects.inc.php");
sayHi();
var x[0] = "This is a value";
?>
0

Graphix,

Actually what I'm looking for would look more like ...

PHP Syntax

1. <?
2.    $Address = new Address();
3.    $Address->setName (...);
4.    // ... more set functions here
5.    mySQL->Store($Address);
6. ?>
0

All,

Does anyone know if there is a package available to allow PHP programmers to store their PHP Objects / Instances into mySQL, and still allow them to be searchable? ie .. not serialized?

Looking forward to your responses,

E,

I don't think so. You have to use serialize to store something like an object in mysql.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.