Re: [PHP-DB] PHP Script to Run SQL file

2007-07-30 Thread Goltsios Theodore
In an another case that you have exported the database using mysqldump (using unix) then this could do the job: $cmd = '/usr/bin/mysql -h '.$dbhost.' -u '.$dbuser.' -p '.$dbpass.' < '.$file; exec($cmd,$out,$retval); } else { $cmd = '/usr/bin/mysql -h '.$dbhost.' -u '

Re: [PHP-DB] PHP Script to Run SQL file

2007-07-29 Thread Chris
Arena Servers wrote: If it helps, after posting this question, I did some searching, and I found an installation script which creates a database and creates the tables using pure sql statements in a php file. Here's the coding... '; exit; } } -- Postgresql & php tutorials http://www.de