PHP Classes

File: gerador_classes_gerar.php

Recommend this page to a friend!
  Classes of Helio Barbosa   PHP Code Generator for MySQL Open Source   gerador_classes_gerar.php   Download  
File: gerador_classes_gerar.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Code Generator for MySQL Open Source
Generate classes to access database from dump file
Author: By
Last change:
Date: 5 years ago
Size: 1,117 bytes
 

Contents

Class file image Download
<script type="text/javascript">
    //window.setTimeout("history.back(-2)", 5000);
</script>
<head>
    <!-- <meta http-equiv="Refresh" CONTENT="5;URL=ClassesPHP.txt"> -->
    <!-- apos 5 segundos exibi o arquivo com todas as classes geradas -->
</head>
<?php
/*
    Programm: gerador_classes.php
    Objective: Generated all class for object orientation in PHP from archeve sql
    Autor: Hélio Barbosa

    http://solucaofinal.com

    GitHub: https://github.com/helhoso/PHPCodeGenerator.git
    linkedin: https://br.linkedin.com/in/helio-barbosa-32718082
    email: hflb01@gmail.com
    youtube: https://www.youtube.com/user/1908HELIO
*/
   
echo ("</br>Gerando Classes PHP....</br>") ;
    echo (
"Recebendo arquivo....</br>") ;
   
$nome_temporario=$_FILES["Arquivo"]["tmp_name"];
   
$nome_real=$_FILES["Arquivo"]["name"];
   
copy($nome_temporario,"arq_sql/$nome_real");

    include_once(
"gerador_gerar_classes.php") ;
   
$NewGerar = New Gerar() ;
   
$NewGerar->setArquivoSQL($nome_temporario);
   
$myClassGerated = $NewGerar->gerarObjPHP();
    echo (
"<a href='". $myClassGerated . "'> Baixar arquivo com Classes </a>") ;
?>
</body>