Php débutant
Résolu
yesetno1000
Messages postés
62
Date d'inscription
Statut
Membre
Dernière intervention
-
yesetno1000 Messages postés 62 Date d'inscription Statut Membre Dernière intervention -
yesetno1000 Messages postés 62 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
Qu'est ce que je dois faire, pour eviter ces erreurs
Warning: include(../lib/global.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\Association\index.php on line 24
Warning: include() [function.include]: Failed opening '../lib/global.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\Association\index.php on line 24
Warning: include(../lib/nav.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\Association\index.php on line 25
Warning: include() [function.include]: Failed opening '../lib/nav.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\Association\index.php on line 25
Warning: include(../lib/content.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\Association\index.php on line 26
Warning: include() [function.include]: Failed opening '../lib/content.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\Association\index.php on line 26
home
Je vous remercie d'avance
Qu'est ce que je dois faire, pour eviter ces erreurs
Warning: include(../lib/global.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\Association\index.php on line 24
Warning: include() [function.include]: Failed opening '../lib/global.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\Association\index.php on line 24
Warning: include(../lib/nav.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\Association\index.php on line 25
Warning: include() [function.include]: Failed opening '../lib/nav.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\Association\index.php on line 25
Warning: include(../lib/content.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\Association\index.php on line 26
Warning: include() [function.include]: Failed opening '../lib/content.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\Association\index.php on line 26
home
Je vous remercie d'avance
A voir également:
- Php débutant
- Easy php - Télécharger - Divers Web & Internet
- Logiciel de programmation pour débutant - Guide
- Logiciel montage vidéo débutant - Guide
- Expert php pinterest - Télécharger - Langages
- Apprendre le coran pour débutant (+ pdf) - Télécharger - Histoire & Religion
9 réponses
Pointé vers des fichiers qui exitent...
C:\wamp\www\Association\index.php
../lib/content.php --> signifie C:\wamp\www\lib\content.php. Le fichier est bien là?
C:\wamp\www\Association\index.php
../lib/content.php --> signifie C:\wamp\www\lib\content.php. Le fichier est bien là?
Et bien la page PHP cherche les fichiers "global.php", "nav.php" et "content.php" dans le dossier lib.
Il suffit de vérifier que ces fichiers existent.
Il suffit de vérifier que ces fichiers existent.
je te remercie de me répondre
voici ce que j'ai marque dans mon dossier
<?php session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>School Handicapp</title>
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />
</head>
<body>
<div id="page">
<div id="left">
<ul class="lang">
<li><a href="index.php">FR</a> | <a href="../en/index.php">EN</a>|<a href="../it/index.php">IT</a></li>
</ul>
<!--lang-->
<div class="menu">
<?
include("../lib/global.php");
include("../lib/nav.php");
include("../lib/content.php");
?>
</div> <!--menu-->
</div><!--left-->
<div id="center">
</div><!--center-->
</div><!--page-->
</body>
</html>
</ul>
<!--lang-->
<div class="menu">
<?
include("lib/nav.php");
switch($m)/*gerer le contenue*/
{
case"1":
include("contenu/theschool.php");
break;
case"2":
include("contenu/volunters.php");
break;
case"3":
include("contenu/donations.php");
break;
case"4":
include("contenu/multimedia.php");
break;
case"5":
include("contenu/contacts.php");
break;
default:
include("contenu/home.php");
break;
}
?>
</div> <!--menu-->
</div><!--left-->
<div id="center">
</div><!--center-->
</div><!--page-->
</body>
</html>
voici ce que j'ai marque dans mon dossier
<?php session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>School Handicapp</title>
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />
</head>
<body>
<div id="page">
<div id="left">
<ul class="lang">
<li><a href="index.php">FR</a> | <a href="../en/index.php">EN</a>|<a href="../it/index.php">IT</a></li>
</ul>
<!--lang-->
<div class="menu">
<?
include("../lib/global.php");
include("../lib/nav.php");
include("../lib/content.php");
?>
</div> <!--menu-->
</div><!--left-->
<div id="center">
</div><!--center-->
</div><!--page-->
</body>
</html>
</ul>
<!--lang-->
<div class="menu">
<?
include("lib/nav.php");
switch($m)/*gerer le contenue*/
{
case"1":
include("contenu/theschool.php");
break;
case"2":
include("contenu/volunters.php");
break;
case"3":
include("contenu/donations.php");
break;
case"4":
include("contenu/multimedia.php");
break;
case"5":
include("contenu/contacts.php");
break;
default:
include("contenu/home.php");
break;
}
?>
</div> <!--menu-->
</div><!--left-->
<div id="center">
</div><!--center-->
</div><!--page-->
</body>
</html>
J'avais déja ce dossier dans un autre ordinateur avec des parametres similaires et maintenant que je viens d'installé dans un autre ordinateur, ça pose des probleme.
J'ai installe mon dossier EXPORTER FICHIER "SQL" "news" dans phpMYadmin
"j'UTILISE DREAMWEAVER" et "Wamp"pour la connection du serveur.
Je viens de regarder
mes dossier dans dans le répertoire "lib": comme tu me la demander et voici ce que j'ai.
le FICHIER" content.php"
<?
switch($m)
{
case "1":
include("contenu/ecole.php");
break;
case "2":
include("contenu/volontaire.php");
break;
case "3":
include("contenu/don.php");
break;
case "4":
include("contenu/multimedia.php");
break;
case "5":
include("contenu/contacts.php");
break;
default:
include("contenu/home.php");
}
?>
le FICHIER"global.php"
<?
//echo $PHP_SELF;
if(strstr($PHP_SELF,"/en/"))
{
$lang="en";
}
if(strstr($PHP_SELF,"/fr/"))
{
$lang="fr";
}
if(strstr($PHP_SELF,"/it/"))
{
$lang="it";
}
//echo $lang;
# Creation de la connexion au serveur MySQL
mysql_connect("localhost","root","") or die(mysql_error());
#selection de la base de donnée de travail
mysql_select_db("association")or die(mysql_error());
?>
LE FICHIER "nav.php"
<?
$navArray=array();
if($lang=="fr")
{
$navArray[0]="home";
$navArray[1]="ecole";
$navArray[2]="volontaire";
$navArray[3]="Don";
$navArray[4]="multimedia";
$navArray[5]="contacts";
}
if($lang=="en")
{
$navArray[0]="home";
$navArray[1]="theschool";
$navArray[2]="volunters";
$navArray[3]="donations";
$navArray[4]="multimedia";
$navArray[5]="contacts";
}
if($lang=="it")
{
$navArray[0]="homa";
$navArray[1]="schola";
$navArray[2]="volunteria";
$navArray[3]="dona";
$navArray[4]="multimedia";
$navArray[5]="contacto";
}
?>
<ul>
<?
foreach($navArray as $keyNav=>$menuNom)/*equivaut 0=0*/
{
if($m==$keyNav) $navon="class=\"bnt_$keyNav\"";/*code html class=*/
else $navon=NULL
?><li><a href="index.php?m=<? echo $keyNav?>" <? echo $navon; ?>><? echo $menuNom;?></a></li><?
}
?>
</ul>
ou est mon problème, merci de m'aider :-)
J'ai installe mon dossier EXPORTER FICHIER "SQL" "news" dans phpMYadmin
"j'UTILISE DREAMWEAVER" et "Wamp"pour la connection du serveur.
Je viens de regarder
mes dossier dans dans le répertoire "lib": comme tu me la demander et voici ce que j'ai.
le FICHIER" content.php"
<?
switch($m)
{
case "1":
include("contenu/ecole.php");
break;
case "2":
include("contenu/volontaire.php");
break;
case "3":
include("contenu/don.php");
break;
case "4":
include("contenu/multimedia.php");
break;
case "5":
include("contenu/contacts.php");
break;
default:
include("contenu/home.php");
}
?>
le FICHIER"global.php"
<?
//echo $PHP_SELF;
if(strstr($PHP_SELF,"/en/"))
{
$lang="en";
}
if(strstr($PHP_SELF,"/fr/"))
{
$lang="fr";
}
if(strstr($PHP_SELF,"/it/"))
{
$lang="it";
}
//echo $lang;
# Creation de la connexion au serveur MySQL
mysql_connect("localhost","root","") or die(mysql_error());
#selection de la base de donnée de travail
mysql_select_db("association")or die(mysql_error());
?>
LE FICHIER "nav.php"
<?
$navArray=array();
if($lang=="fr")
{
$navArray[0]="home";
$navArray[1]="ecole";
$navArray[2]="volontaire";
$navArray[3]="Don";
$navArray[4]="multimedia";
$navArray[5]="contacts";
}
if($lang=="en")
{
$navArray[0]="home";
$navArray[1]="theschool";
$navArray[2]="volunters";
$navArray[3]="donations";
$navArray[4]="multimedia";
$navArray[5]="contacts";
}
if($lang=="it")
{
$navArray[0]="homa";
$navArray[1]="schola";
$navArray[2]="volunteria";
$navArray[3]="dona";
$navArray[4]="multimedia";
$navArray[5]="contacto";
}
?>
<ul>
<?
foreach($navArray as $keyNav=>$menuNom)/*equivaut 0=0*/
{
if($m==$keyNav) $navon="class=\"bnt_$keyNav\"";/*code html class=*/
else $navon=NULL
?><li><a href="index.php?m=<? echo $keyNav?>" <? echo $navon; ?>><? echo $menuNom;?></a></li><?
}
?>
</ul>
ou est mon problème, merci de m'aider :-)
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
ce que je viens de faire.mais ce que j'arrive pas à comprendre c'est pourquoi ça fonctionné il y a une heure avant, dans un aute ordinateur, avec Dreamwearver CS3 et les mêmes paramètres, et que mes fichiers sont identiques, je n'ai rien changer C'est ça que je veux comprendre. je vous remercie d'avance.:-)
J'ai bien vérifié mes dossier et ça joue, comme j'ai mis mes dossier au bon endroit,
est c'est possible possible que soit à cause d'un problème phpMyadmin.
est c'est possible possible que soit à cause d'un problème phpMyadmin.