dbutil->backup newline problem (\n) |
[eluser]dootzky[/eluser]
Hi guys, I've used database utility, and I'm using it for my users to quickly download and backup the entire MySQL database. And it works great. But now I have a problem - in my CMS, I have, for example, "Webpages" control, where users can edit their own webpages, in properly implemented FCK editor. That works great, everything is by the book, etc. And now, the problem - when ever I backup my database with dbutil class, I can import that database on my local Linux development server, but, FCK texts are getting bunch of "\n" characters all over the place, and it messes up everything in my CMS that uses FCK for editing (Webpages, Email Templates, etc.) here's my code, it's rather straightforward and simple: Code: $folder = 'db_backup/'; I think that's pretty simple, right? :| Oh, yes, one more thing that could be helpfull for you to know - when I export the database in the old, classic way from live server, from CPanel->phpMyAdmin->Export, and then I import that file on my server - it works flawlessly. Of course. The only problem here in my thread is that I'm getting "\n" overhead, and I don't think that dbutil class should insert newline characters in SQL VALUES, but only in SQL commands... ? Can anyone tell me where I'm mistaken? Or at least point me to some reading materials? (I've already read: http://ellislab.com/codeigniter/user-gui...ities.html , thanks ) Thanks for your time and effort, dootzky p.s. please see attachment picture for more graphical explanation... |
Messages In This Thread |
dbutil->backup newline problem (\n) - by El Forum - 04-14-2009, 12:18 PM
dbutil->backup newline problem (\n) - by El Forum - 04-14-2009, 02:33 PM
dbutil->backup newline problem (\n) - by El Forum - 04-15-2009, 10:20 AM
dbutil->backup newline problem (\n) - by El Forum - 04-15-2009, 10:51 AM
dbutil->backup newline problem (\n) - by El Forum - 04-18-2009, 01:10 AM
dbutil->backup newline problem (\n) - by El Forum - 04-22-2009, 06:15 AM
dbutil->backup newline problem (\n) - by El Forum - 04-23-2009, 09:02 AM
dbutil->backup newline problem (\n) - by El Forum - 04-23-2009, 02:22 PM
|