[PHP] function.include
TheTROLL
Messages postés
4429
Statut
Contributeur
-
TheTROLL Messages postés 4429 Statut Contributeur -
TheTROLL Messages postés 4429 Statut Contributeur -
Bonjour,
voila cela fait environ 3h que je cherche le problème mais je tourne en rond!!
voici se que me dit ma page dans mon navigateur (Firefox):
Warning: include(fa2/sondages.php3) [function.include]: failed to open stream: No such file or directory in /homepages/6/*******/htdocs/f-a2/fa2/index.php on line 12
Warning: include() [function.include]: Failed opening 'fa2/sondages.php3' for inclusion (include_path='.:/usr/lib/php5') in /homepages/6/********/htdocs/f-a2/fa2/index.php on line 12
hors le trouve pas le problème et sa commence a me gonflé!
et voici le code PHP de la page:
et voici se que je cherche a inclure dans ma page:
la BD MySQL a été créé sa pas de problème, mais c'est la page impossible d'afficher le sondage, et j'en est vraiment besoin.
merci a Celles et ceux qui pourrons m'aider.
Amicalement
TheTROLL
voila cela fait environ 3h que je cherche le problème mais je tourne en rond!!
voici se que me dit ma page dans mon navigateur (Firefox):
Warning: include(fa2/sondages.php3) [function.include]: failed to open stream: No such file or directory in /homepages/6/*******/htdocs/f-a2/fa2/index.php on line 12
Warning: include() [function.include]: Failed opening 'fa2/sondages.php3' for inclusion (include_path='.:/usr/lib/php5') in /homepages/6/********/htdocs/f-a2/fa2/index.php on line 12
hors le trouve pas le problème et sa commence a me gonflé!
et voici le code PHP de la page:
<html>
<head>
<title>Sondage</title>
</head>
<body bgcolor="#666666">
<p align="center"><font color="#999999"><strong><br>
</strong></font><font color="#999999"><strong>[ Sondage ]</strong></font></p>
<p align="left"><font color="#FFFFFF">
<?
$sondage = "6";
include("fa2/sondages.php3");
?>
</font></p>
</body>
</html>
et voici se que je cherche a inclure dans ma page:
<?
$sondage = "6";
include("fa2/sondages.php3");
?>
la BD MySQL a été créé sa pas de problème, mais c'est la page impossible d'afficher le sondage, et j'en est vraiment besoin.
merci a Celles et ceux qui pourrons m'aider.
Amicalement
TheTROLL
A voir également:
- [PHP] function.include
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Retour à la ligne php ✓ - Forum PHP
- Alert php - Forum PHP
- Retour a la ligne php ✓ - Forum PHP
10 réponses
l'erreur affichée:
/homepages/6/*******/htdocs/f-a2/fa2/index.php
veut dire que ton fichier index dans lequel tu as ton include est sous le dossier fa2 c'est bien ça ?
donc si tu veux faire un include depuis cet index.php il faut mettre le chemin relatif
hors tu mets:
include("fa2/sondages.php3")
ca voudrait dire qu'il y a un autres sous dossier fa2 sous le dossier fa2
mets simplement
/homepages/6/*******/htdocs/f-a2/fa2/index.php
veut dire que ton fichier index dans lequel tu as ton include est sous le dossier fa2 c'est bien ça ?
donc si tu veux faire un include depuis cet index.php il faut mettre le chemin relatif
hors tu mets:
include("fa2/sondages.php3")
ca voudrait dire qu'il y a un autres sous dossier fa2 sous le dossier fa2
mets simplement
include("sondages.php3")
@ Alain_42:
1- oui c'est bien sa!
index.php est dans le sous dossier:
/f-a2/fa2/index.php
ce qui donne sa dans la barre d'adresse:
www.monsite.xx/fa2/index.php
ok je vais testé ta proposition.
merci a toi
je te tien au courent.
1- oui c'est bien sa!
index.php est dans le sous dossier:
/f-a2/fa2/index.php
ce qui donne sa dans la barre d'adresse:
www.monsite.xx/fa2/index.php
ok je vais testé ta proposition.
merci a toi
je te tien au courent.
bon voila j'ai modifier mais il me sort autre chose a nouveau!!
et la par-contre je comprend pas!
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2) in /homepages/6/*******/htdocs/f-a2/fa2/sondages.php3 on line 35 Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2) in /homepages/6/********/htdocs/f-a2/fa2/sondages.php3 on line 36 Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /homepages/6/*******/htdocs/f-a2/fa2/sondages.php3 on line 36 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /homepages/6/*******/htdocs/f-a2/fa2/sondages.php3 on line 166 Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /homepages/6/******/htdocs/f-a2/fa2/sondages.php3 on line 168 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /homepages/6/*****/htdocs/f-a2/fa2/sondages.php3 on line 276 Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /homepages/6/*****/htdocs/f-a2/fa2/sondages.php3 on line 278 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /homepages/6/*****/htdocs/f-a2/fa2/sondages.php3 on line 299 Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /homepages/6/******/htdocs/f-a2/fa2/sondages.php3 on line 301 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /homepages/6/*****/htdocs/f-a2/fa2/sondages.php3 on line 314 Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /homepages/6/*****/htdocs/f-a2/fa2/sondages.php3 on line 322
et la par-contre je comprend pas!
Ton serveur n'est pas démarré.
Si tu l'as installé via les paquets, il doit être présent dans init.
Dans un terminal et en root.
Si tu l'as installé via les paquets, il doit être présent dans init.
Dans un terminal et en root.
/etc/init.d/mysql start
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
mon server pas démarré ??
je suis chez 1&1 et mon site principal fonctionne très bien !! et sa m'étonnerai que 1&1 est un serveur qui soit arrêté!!
et c'est pas installé via un paquet ! sa na rien a voir avec joomla!
je suis chez 1&1 et mon site principal fonctionne très bien !! et sa m'étonnerai que 1&1 est un serveur qui soit arrêté!!
et c'est pas installé via un paquet ! sa na rien a voir avec joomla!
Je te parlais de paquet linux ;)
Je pensais que tu étais en local.
Donc si, le server mysql à bien un problème, contacte les via leur support..
Je pensais que tu étais en local.
Donc si, le server mysql à bien un problème, contacte les via leur support..
à mon avis, tu saisie pas les bon parametre pour te connecter a la BDD 1&1 après le premier message tu doit avoir utiliser localhost / root / null