Re: l’instruction php <?php print getcwd();?> | Titre du sujet : Re: l’instruction php <?php print getcwd();?> par jbboschung sur 22/06/2007 07:46:09
Slt,
Cette instruction va te donner le chemin physique de ton site, sur le serveur de ton hébergeur, que tu pourras ainsi reporter dans ton fichier mainfile.php
Pour ce faire,
Crée un fichier MyPath.php ou tu colleras ce code dedans :
<?php
print getcwd();
?>
Transfert via ftp ce fichier à la racine de ton site et exécute le -> http://{MonSite.com}/MyPath.php
En retour tu obtiendras quelque chose qui varie d'un hébergeru à un autre. Exemple '/home/www/dd147e743f81/web'
C'est ton chemin physique (ou est ton site réellement), alors que ton chemin virtuel c'est http://www.monsite.com
Ensuite tu ouvres ton fichier manifile.dist.php et tu insères ces deux valeurs ici
// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_ROOT_PATH', '/path/to/xoops/directory');
define('XOOPS_ROOT_PATH', '/home/www/dd147e743f81/web');
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://url_to_xoops_directory');
define('XOOPS_URL', 'http://monsite.com');
Tu n'as plus qu'a retrsnférer ce fichier à la racine de ton site, le renommer en enlevant le '.dist' et écraser le mainfile.php existant (qui est la config locale) et surtout effacer le fichier MyPath.php de la racine de ton site.
Si tu as des problèmes, n'hésite pas
|
|