par
Yo63 » 02 mars 2010, 09:34
Bonjour,
en fait la variable est déjà en majuscule (il s'agit simplement d'une omission dans mon post)
voici un bout du code:
weave-registration
require_once 'weave_user_constants.php';
require_once 'utils.php';
require_once 'weave_user/' . WEAVE_AUTH_ENGINE . '.php';
if (!empty($_SERVER['PATH_INFO']))
$path = $_SERVER['PATH_INFO'];
else if (!empty($_SERVER['ORIG_PATH_INFO']))
$path = $_SERVER['ORIG_PATH_INFO'];
else
report_problem("No path found", 404);
weave sync:
require_once 'weave_constants.php';
require_once 'weave_storage/' . WEAVE_STORAGE_ENGINE . '.php';
require_once 'weave_basic_object.php';
require_once 'weave_metadata.php';
require_once 'weave_utils.php';
header("Content-type: application/json");
$server_time = round(microtime(1), 2);
header("X-Weave-Timestamp: " . $server_time);
$storage_time = round($server_time * 100); #internal representation as bigint
#Basic path extraction and validation. No point in going on if these are missing
$path = '/';
if (!empty($_SERVER['PATH_INFO']))
$path = $_SERVER['PATH_INFO'];
else if (!empty($_SERVER['ORIG_PATH_INFO']))
$path = $_SERVER['ORIG_PATH_INFO'];
else
report_problem("No path found", 404);
j'ai, comme vous le voyez, le même soucis sur les 2 fichiers index.php
par contre j'ai une différence au niveau du comportement.
Pour l'index de weave-sync j'ai la page 404 (fichier introuvable) --> Si je met en commentaire la ligne:
header("Content-type: application/json");
alors j'ai une page blanche avec le message "no path found)
pour l'index de weave register, j'ai simplement la page blanche avec le message idem "No path found)
les fichiers "require once" sont bien présents. J'ai juste dézippé le paquet donc ils sont sensés se trouver au bon endroit.
Merci de votre retour
Yo