function GenFile( $sTitle, $sFileName, $sContent){ global $g_ArchivosServicios_SubPath; $sPath = NormalizePath( SitePath(). '_sql/') ; $sFileName = $sPath . $sFileName. '.sql'; $fp = fopen($sFileName, 'w+'); fwrite($fp, $sContent ); fclose($fp); echo "<div class='Ficha'><table><tr><th>$sTitle</th></tr></table></div>"; echo "<br>"; echo "<pre>"; echo "$sContent"; echo "</pre>"; echo "<br>"; echo "Archivo $sFileName ..................Generado.<br>"; }
function GenFile( $sFileName, $sContent){ global $g_ArchivosServicios_SubPath; $sPath = NormalizePath( SitePath(). '_sql/') ; $sFileName = $sPath . $sFileName. '.sql'; $fp = fopen($sFileName, 'w+'); fwrite($fp, $sContent ); fclose($fp); echo "Archivo $sFileName ...Generado.<br>"; }