scrubbicus Posted May 15, 2009 Share Posted May 15, 2009 I'm trying to create a completely dynamic website and so I can create a search ability so I'm guessing putting all the content in MySQL will make it easier for me to be able to create a search function. Anyway since all my content is in MySQL I'm trying to call classes in PHP within the MySQL area... and it's not working so I'm guessing MySQL doesn't support this? Quote Link to comment https://forums.phpfreaks.com/topic/158325-using-mysql-for-all-content/ Share on other sites More sharing options...
gregor171 Posted May 16, 2009 Share Posted May 16, 2009 As far as I know, it doesn't. But what you can do and it will work a similar way is to use php function serialize and store serialized object to mySql. When reading from mySql use unserialize. But. Best practice would be to use mySql as little as possible. You could store serialized objects into file system but should consider some security here. Quote Link to comment https://forums.phpfreaks.com/topic/158325-using-mysql-for-all-content/#findComment-835430 Share on other sites More sharing options...
Mchl Posted May 16, 2009 Share Posted May 16, 2009 The following question is directed to both of you: What??? scrubbicus: Explain what you mean by 'to call classes in PHP within the MySQL area' gregor171: I have no idea what are you talking about? Why serializing? Why storing in plain file? Quote Link to comment https://forums.phpfreaks.com/topic/158325-using-mysql-for-all-content/#findComment-835468 Share on other sites More sharing options...
Ken2k7 Posted May 16, 2009 Share Posted May 16, 2009 Mchl, I believe scrubbicus wants everything dynamic as to store every bit of data in the DB, including PHP codes? (I think that's right). gregor171 suggested serializing class objects and storing them in DB and or flat file. Why the heck would someone serialize objects like that? ... I am not making sense. Don't mind me. Please forgive me. Quote Link to comment https://forums.phpfreaks.com/topic/158325-using-mysql-for-all-content/#findComment-835477 Share on other sites More sharing options...
fenway Posted May 19, 2009 Share Posted May 19, 2009 Why wouldn't the content be in mysql anyway? Quote Link to comment https://forums.phpfreaks.com/topic/158325-using-mysql-for-all-content/#findComment-837330 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.