Login   Register  
PHP Classes
elePHPant
Icontem

File: test3.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Huda M Elmatsani  >  Sync DB Content  >  test3.php  >  Download  
File: test3.php
Role: Example script
Content type: text/plain
Description: upload the sql file and execute it.
Class: Sync DB Content
Synchronize MySQL database copies
Author: By
Last change:
Date: 10 years ago
Size: 484 bytes
 

Contents

Class file image Download
<form name="form1" method="post" action="test3.php" enctype="multipart/form-data">
  <input type="file" name="file">
  <input type="submit" name="Submit" value="Submit">
</form>
<?
if($_POST['Submit']) {
include(
"sync.php");
    if (
is_uploaded_file($_FILES['file']['tmp_name'])){

        
$syncfile = new SyncDBContent("webhosting","quotes","x2345","hajimete4532");
        
$syncfile->exec_syncfile($_FILES['file']['tmp_name']);

     } else {
        echo 
"error on uploading file";
    }
}
?>