View Single Post
  #2 (permalink)  
Old 08-28-2006, 08:36 AM
Jordan's Avatar   
Jordan Jordan is online now
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 10,967
Last Blog:
Artificial Intelligenc...
Credits: 1
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

hmm, I'm not sure what you mean. You want a PHP app to build your database from a exported .sql file?

If so, you can just load the SQL from the backup file as a query and execute the query. When you export as SQL the SQL code in the file will execute as a query.

So basically build your fopen and do

PHP Code:
// Connec to SQL
.......

// Open/Read file
$fp fopen("sqlfile.sql","r");
$query fread($fp);

// Execute the query
$results mysql_query($query);

// close your connects
...... 
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Reply With Quote