Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

[PHP général] Header compressé

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
kabkab
Smarty n00b


Joined: 07 Jan 2007
Posts: 4

PostPosted: Mon Feb 05, 2007 12:08 pm    Post subject: [PHP général] Header compressé Reply with quote

Bonjour, ça sort vraiment de smarty et c'est une question PHP à laquelle je n'ai pas eu de réponse autre part.

J'ai copié un script qui permet avec un header


$fichier='matable.sql';
$bdd='ma_base';
header('Content-Type: application/octetstream');
header('Content-Disposition: filename="'.$fichier.'"');
header('Pragma: no-cache');
header('Expires: 0');


et des echo

echo "#\n# Database creation\n#\nCREATE DATABASE `".$bdd."`;\n\n";
echo "#\n# Database use\n#\nUSE `".$bdd."`;\n\n";


plus bas encore des INSERT et autres requêtes SQL et de m'envoyer le tout en fichier SQL à enregistrer sur mon disque. (c'est le backup de ma base de données).

Ce qui m'intéresse c'est que à la manière de phpmyadmin je puisse recevoir ce fichier en ZIP.

Si possible m'orienter, merci.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP