Ancre et include

Par Envalfadir, il y a 11 ans


Bonjour à tous,

Une petite question car je galère sur mon site. J'utilise l'url rewriting et des includes. Mais j'ai un souci j'utilise ce plugin de Jquery UI : http://jqueryui.com/tabs/#collapsible

En gros j'ai fait ceçi pour tombé directement sur mon ancre

include("page/statistique.php#tab2");

Mais je me fais gentiment insulté par wamp :

( ! ) Warning: include(page/statistique.php#tab2): failed to open stream: No such file or directory in C:\wamp\www\index.php on line 162 Call Stack # Time Memory Function Location 1 0.0000 160824 {main}( ) ..\index.php:0 ( ! ) Warning: include(): Failed opening 'page/statistique.php#tab2' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\index.php on line 162 Call Stack # Time Memory Function Location 1 0.0000 160824 {main}( ) ..\index.php:0

Je dois surement m'y prendre comme un manche si quelqu'un peut m'indiquer l'erreur.

Merci pour vos futur réponse :)

2 réponses

Uneo7, il y a 11 ans

Php cherche la page avec le nom complet qui lui est passé il cherche donc un fichier qui se nommerais statistique.php#tab2 je ne sais pas si faire ça avec un include est possible ... essaye avec curl.

Envalfadir, il y a 11 ans

Après plusieurs recherche, j'abandone l'ancre et j'opte pour mon include directement sur statistique.php. Je perd une étape mais c'est pas si grave en tout cas merci de ta réponse :).