Re: [PHP-DB] XML coming out from MySQL

2001-11-10 Thread Tomas Garcia Ferrari
> I've never parsed XML with PHP, but it might help if you can show the > document that's breaking the parser, and also let us know if other > documents are working fine... > > -Lorenzo Hi, The document is like this: Some text Some text Some text Some text http://whatever.com/ Whomever 2001

[PHP-DB] XML coming out from MySQL

2001-11-09 Thread Tomas Garcia Ferrari
Hello, I'm trying to parse an XML file stored on MySQL. I'm using this code: > global $CFG, $ME; > > $qid = db_query(" > SELECT texto > FROM articulos > WHERE id = $id > "); > > $r = db_fetch_object($qid); > $file = $r->texto; > > > $map_array = array( > "ARTICULO" => "", > "VOLANTA" =>

Re: [PHP-DB] Backups, best practices

2001-09-06 Thread Tomas Garcia Ferrari
I use a script, written in Perl, that I run manually (but could be added to a cron tab): --- Starting of the script #!/usr/bin/perl print "Starting...\n"; ### Some variables $BASEDIR = "/home/backup"; $dump_path = "/usr/bin/mysqldump"; $date_path = "/bin/date"; # path to "date" $date_format = "

[PHP-DB] How to use GnuPG to store data on MySQL

2001-07-10 Thread Tomas Garcia Ferrari
Hello, I'm trying to store some encrypted data on MySQL using GnuPG and eventually send this information via e-mail. Is somebody using this solution? Has somebody links on this topic where I can look and see how to do it? Regards, Tomás +-- --+ Tom