Je voudrai mettre un chemin absolu a la place de http//:www.monsite.com/
j'ai vu que l'on pouvais mettre ceci $_SERVER['HTTP_HOST'] , j'ai essayer de le placer à plusieur endroit mais rien ne se passe.
En local j'avais mi header("Location: http://127.0.0.1/memb.membre.php"); et ca fonctionner parfaitement et dés que je l'ai mis sur le serveur il ne m'affiche pas la page membre
je viens d'essayer avec mozilla et ca fait exactement pareil et je n'est meme pas d'erreur php.
Ce que je ne comprend pas c'est qu'en local ca fonctionne trés bien mais sur mon serveur non
Quand je me connecte a mon espace membre, je n'arrive pas à acceder à membre/membre.php
mais si je rentre directement l'adresse dans le navigateur j'arrive à y acceder tous en etant connecter à mon espace membre (je ne perd pas la session)
voici en gros à quoi ressemble ma page membre
comment on fais pour afficher les erreur en php car avant j'utilisé easyphp il m'afficher des erreurs mais pas tout a mon avis. Maintenant je suis sur wamp et c'est pareil que easyphp.
Es-ce qu'il faut configurer php ou lui ajouter une extention ??
Et laquel??
voici comment sont configurer mes deux valeurs.
- display_errors = On [Security]
; With this directive set to off, errors that occur during the execution of
; scripts will no longer be displayed as a part of the script output, and thus,
; will no longer be exposed to remote users. With some errors, the error message
; content may expose information about your script, web server, or database
; server that may be exploitable for hacking. Production sites should have this
; directive set to off.
; - log_errors = On [Security]
; This directive complements the above one. Any errors that occur during the
; execution of your script will be logged (typically, to your server's error log,
; but can be configured in several ways). Along with setting display_errors to off,
; this setup gives you the ability to fully understand what may have gone wrong,
; without exposing any sensitive information to remote users.
; - output_buffering = 4096 [Performance]
; Set a 4KB output buffer. Enabling output buffering typically results in less
; writes, and sometimes less packets sent on the wire, which can often lead to
; better performance. The gain this directive actually yields greatly depends
; on which Web server you're working with, and what kind of scripts you're using.
; - register_argc_argv = Off [Performance]
; Disables registration of the somewhat redundant $argv and $argc global
; variables.
; - magic_quotes_gpc = Off [Performance]
; Input data is no longer escaped with slashes so that it can be sent into
; SQL databases without further manipulation. Instead, you should use the
; function addslashes() on each input element you wish to send to a database.
; - variables_order = "GPCS" [Performance]
; The environment variables are not hashed into the $_ENV. To access
; environment variables, you can use getenv() instead.
; - error_reporting = E_ALL [Code Cleanliness, Security(?)]
; By default, PHP suppresses errors of type E_NOTICE. These error messages
; are emitted for non-critical errors, but that could be a symptom of a bigger
; problem. Most notably, this will cause error messages about the use
; of uninitialized variables to be displayed.
Il y a t'il un champ mal remplit? j'ai mis display_errors sur On