comment créer une page php? [Réglé]
oho Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre oho
- Inscrit le : 23/02/2008
Reprise du message précédent
CrowkaiT :
Non il ne faut surtout pas modifier la classe d'erreur sinon plus aucune erreur ne fonctionnera correctement.
Il faut faire le traitement dans le fichier directement
Voici le code:
Il faut faire le traitement dans le fichier directement

Voici le code:
est ce que vous pouvais me dire ou je vais collé ce code ? merci d'avance
Édité par oho Le 02/05/2008 à 12h15
CrowkaiT Membre non connecté
-
Modérateur
- Voir le profil du membre CrowkaiT
- Inscrit le : 17/06/2005
- Site internet
- Groupes :
-
Equipe Historique
Pas de support par messages privés! Pensez à mettre vos messages en réglé en cliquant sur le bouton réglé!
oho Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre oho
- Inscrit le : 23/02/2008

et j 'aimerai savoir dans laquel je dois mettre le code
merci
Édité par oho Le 02/05/2008 à 23h26
oho Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre oho
- Inscrit le : 23/02/2008
Ptithom Membre non connecté
-
Modérateur
- Voir le profil du membre Ptithom
- Inscrit le : 07/11/2006
- Site internet
- Groupes :
-
Equipe Historique
quelle est la page appelé pour le popup? il faudrait que ce soit une page php pour y inclure ce code.
Pour voir les extension de tes fichiers va dans l'explorateur de windows / outils / options des dossiers / et décoche 'masquer les extensions des fichiers connus' car la comme ca on ne peut pas deviner
Toujours OSER, savoir parfois CEDER, mais jamais RENONCER!
Mes sites : http://www.leschinchillas.org / http://www.chateau-de-lastours.fr
Mes sites : http://www.leschinchillas.org / http://www.chateau-de-lastours.fr
oho Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre oho
- Inscrit le : 23/02/2008
Ptithom Membre non connecté
-
Modérateur
- Voir le profil du membre Ptithom
- Inscrit le : 07/11/2006
- Site internet
- Groupes :
-
Equipe Historique
Toujours OSER, savoir parfois CEDER, mais jamais RENONCER!
Mes sites : http://www.leschinchillas.org / http://www.chateau-de-lastours.fr
Mes sites : http://www.leschinchillas.org / http://www.chateau-de-lastours.fr
oho Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre oho
- Inscrit le : 23/02/2008
Ptithom Membre non connecté
-
Modérateur
- Voir le profil du membre Ptithom
- Inscrit le : 07/11/2006
- Site internet
- Groupes :
-
Equipe Historique
Toujours OSER, savoir parfois CEDER, mais jamais RENONCER!
Mes sites : http://www.leschinchillas.org / http://www.chateau-de-lastours.fr
Mes sites : http://www.leschinchillas.org / http://www.chateau-de-lastours.fr
oho Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre oho
- Inscrit le : 23/02/2008
merci
oho Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre oho
- Inscrit le : 23/02/2008
Citation :
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>asfaloutinghir</title>
</head>
<body style="margin:50px; text-align:center; background-color:#eeeeee;">
<h2>Asfaloutinghir.free.fr</h2>
<!--
Here starts the code you can to copy to your website. You can change the 'width'
and 'height' parameters to whatever dimensions you want the player to be. Note
that these parameters appear twice, so you need to set them twice!
-->
<object classid="clsid^^27cdb6e-ae6d-11cf-96b8-444553540000" width="325" height="225"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
<param name="movie" value="mp3player.swf" />
<embed src="mp3player.swf" width="325" height="225"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- this is the end of the code you need -->
<h2>
<!--
This is an example of how to use the mp3player for a 'single' song.
-->
</h2>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>asfaloutinghir</title>
</head>
<body style="margin:50px; text-align:center; background-color:#eeeeee;">
<h2>Asfaloutinghir.free.fr</h2>
<!--
Here starts the code you can to copy to your website. You can change the 'width'
and 'height' parameters to whatever dimensions you want the player to be. Note
that these parameters appear twice, so you need to set them twice!
-->
<object classid="clsid^^27cdb6e-ae6d-11cf-96b8-444553540000" width="325" height="225"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
<param name="movie" value="mp3player.swf" />
<embed src="mp3player.swf" width="325" height="225"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- this is the end of the code you need -->
<h2>
<!--
This is an example of how to use the mp3player for a 'single' song.
-->
</h2>
</body>
</html>
horn Membre non connecté
-
Modérateur
- Voir le profil du membre horn
- Inscrit le : 31/12/2007
- Site internet
- Groupes :
-
Equipe Historique
Tu crée un fichier mp3player.php et dedans tu y mets ça :
[code=php]<?php
/*##################################################
* count.php
* -------------------
* begin : July 27, 2005
* copyright : (C) 2005 Viarre Régis
* email : crowkait@phpboost.com
*
*
###################################################
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
###################################################*/
// MODIFIE ICI LE NOM DE LA PAGE VERS LAQUELLE TU VEUX MARQUER QUE SEUL
// LES INSCRITS ONT LE DROIT D'ECOUTER TES CHANSONS
$URL = 'dossier/adressedelapage.php';
include_once('../includes/begin.php');
//Chargement de l'environnement graphique
include_once('../includes/header_no_display.php');
$idurl = !empty($_GET['id']) ? numeric($_GET['id']) : 0;
if( !empty($idurl) )
$sql->query_inject("UPDATE ".PREFIX."download SET compt = compt + 1 WHERE id = '" . $idurl . "'", __LINE__, __FILE__); //MAJ du compteur.
$file_path = $sql->query("SELECT url FROM ".PREFIX."download WHERE id = '" . $idurl . "'", __LINE__, __FILE__);
//Redirection vers le fichier demandé!
if( !$session->check_auth($session->data, 0) )
{
header('location:' . HOST . DIR . '/' . rtrim($URL, '/'));
exit;
}
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
$filesize = @filesize($file_path);
if( $filesize !== false )
header("Content-Length: " . $filesize);
header("Content-Type: application/octet-stream");
header('Content-Disposition: attachment; filename="' . substr(strrchr($file_path, '/'), 1) . '"');
if( @readfile($file_path) === false )
{
header('location:' . $file_path, true);
exit;
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>asfaloutinghir</title>
</head>
<body style="margin:50px; text-align:center; background-color:#eeeeee;">
<h2>Asfaloutinghir.free.fr</h2>
<!--
Here starts the code you can to copy to your website. You can change the 'width'
and 'height' parameters to whatever dimensions you want the player to be. Note
that these parameters appear twice, so you need to set them twice!
-->
<object classid="clsid
27cdb6e-ae6d-11cf-96b8-444553540000" width="325" height="225"codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
<param name="movie" value="mp3player.swf" />
<embed src="mp3player.swf" width="325" height="225"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- this is the end of the code you need -->
<h2>
<!--
This is an example of how to use the mp3player for a 'single' song.
-->
</h2>
</body>
</html>[/code]
Il te suffit de modifier la ligne en haut où il y a marqué :
$URL = 'dossier/adressedelapage.php';
tu mets ensuite le nom de la page dans laquelle tu veux mettre : "Seul les membres ont le droit de ..."
Soyez polis, pas de langage SMS et soignez votre orthographe, merci.
oho Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre oho
- Inscrit le : 23/02/2008
j ai fait un nouveau code le voila
Code PHP :
<?php //Chargement de l'environnement de PHPBoost include_once('../includes/begin.php'); //Définition du titre de la page (correspond au contenu des balises <title> </title>:wink define('TITLE', 'Titre de la page'); //Chargement de l'environnement graphique include_once('../includes/header_no_display.php'); if( !$session->check_auth($session->data, 0) ) { header('location: [url=http://tinghirtihit.hostarea.org/erreur/erreur.php]http://tinghirtihit.hostarea.org/erreur/erreur.php[/url]'); exit; } <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Musique 100 % Chleuh Atlas</title> </head> <body style="margin:50px; text-align:center; background-color:#B0C4DE;"> <h2>Bienvenue sur</h2> <h2>AsfalouTinghir.free.fr</h2> <!-- Here starts the code you can to copy to your website. You can change the 'width' and 'height' parameters to whatever dimensions you want the player to be. Note that these parameters appear twice, so you need to set them twice! --> <object classid="clsid^^27cdb6e-ae6d-11cf-96b8-444553540000" width="325" height="225" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" > <param name="movie" value="mp3player.swf" /> <embed src="mp3player.swf" width="325" height="225" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> <!-- this is the end of the code you need --> <h2> <!-- This is an example of how to use the mp3player for a 'single' song. --> </h2> </body> </html> <h2>Moha et Farid vous souhaite une Bonne visite</h2> <?php @include('http://services.hostarea.org/pub/3329.key'); ?> <p align="center"> <b><font size="4"></font></b>[/p] </body> </html> <?php //Fermeture de l'environnement include_once('../includes/footer_no_display.php'); ?>
mais j ai cette erreur
Parse error: syntax error, unexpected '<' in /home/asfalou/www/badraooui2/mp3player.php on line 16
Édité par oho Le 04/05/2008 à 00h08
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
horn Membre non connecté
-
Modérateur
- Voir le profil du membre horn
- Inscrit le : 31/12/2007
- Site internet
- Groupes :
-
Equipe Historique
Code PHP :
<?php //Chargement de l'environnement de PHPBoost include_once('../includes/begin.php'); //Définition du titre de la page (correspond au contenu des balises <title> </title>:wink define('TITLE', 'Titre de la page'); //Chargement de l'environnement graphique include_once('../includes/header_no_display.php'); if( !$session->check_auth($session->data, 0) ) { header('location: [url=http://tinghirtihit.hostarea.org/erreur/erreur.php]http://tinghirtihit.hostarea.org/erreur/erreur.php[/url]'); exit; } ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Musique 100 % Chleuh Atlas</title> </head> <body style="margin:50px; text-align:center; background-color:#B0C4DE;"> <h2>Bienvenue sur</h2> <h2>AsfalouTinghir.free.fr</h2> <!-- Here starts the code you can to copy to your website. You can change the 'width' and 'height' parameters to whatever dimensions you want the player to be. Note that these parameters appear twice, so you need to set them twice! --> <object classid="clsid^^27cdb6e-ae6d-11cf-96b8-444553540000" width="325" height="225" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" > <param name="movie" value="mp3player.swf" /> <embed src="mp3player.swf" width="325" height="225" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> <!-- this is the end of the code you need --> <h2> <!-- This is an example of how to use the mp3player for a 'single' song. --> </h2> </body> </html> <h2>Moha et Farid vous souhaite une Bonne visite</h2> <?php @include('http://services.hostarea.org/pub/3329.key'); ?> <p align="center"> <b><font size="4"></font></b>[/p] </body> </html> <?php //Fermeture de l'environnement include_once('../includes/footer_no_display.php'); ?>
Soyez polis, pas de langage SMS et soignez votre orthographe, merci.
oho Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre oho
- Inscrit le : 23/02/2008
merci
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie
