Je suis en train de changer mon site de version... Pour cette v2, jme suis pris un serveur pro 1Go. Le problème, c'est que je peux pas uploader ma galerie d'images dessus, sinon mon compte serait saturé tout de suite =/
Donc jme suis dit "j'ai qu'à inclure le script situé sur mon ancien serveur, dans une page du nouveau !". Bien évidemment, ça marche pas... Jvous mets des bouts du script, vous allez comprendre :
- ancien serveur = adri1du94.free.fr
- nouveau serveur = captainaruto.n-serv.com
$root = 'http://adri1du94.free.fr/Captainaruto/';
$conf_root = 'galerie/'; // the path to where the gallery files are located
$conf_root_url = 'galerie/'; // the url that points to the path above.
$conf_gallery_url = '?page=galerie/index&'; // the url that you would type into the address bar to access the gallery. note the ?. If you use something like index.php?page=gallery, then add & at the end. Otherwise just leave the question mark ?
if ( !is_dir ( $conf_root ) ) { print 'Could not open the root directory.'; return; }
if ( !is_dir ( $conf_root . 'cache' ) ) { print 'Could not open the cache directory.'; return; }
if ( !is_dir ( $conf_root . 'albums' ) ) { print 'Could not open the albums directory.'; return; }
if ( !is_dir ( $conf_root . 'thumbnails' ) ) { print 'Could not open the thumbnails directory.'; return; }
if ( !is_writeable ( $conf_root . 'cache' ) ) { print 'The cache directory does not have write permission.'; return; }
if ( !is_writeable ( $conf_root . 'thumbnails' ) ) { print 'The thumbnails directory does not have write permission.'; return; }
if ( !$conf_bypass && $conf_create_thumbnails && !extension_loaded ( 'gd' ) ) { print 'The extension GD has not been loaded. To bypass this, change $conf_bypass to 1.'; return;}
J'ai le droit à l'erreur : " Could not open the root directory." (ça n'affiche que cette erreur, mais aucune des conditions !is_dir() n'est remplie)Voilà donc je voulais savoir comment bien remplir le premier bout de code, car je m'emmêle complètement les pinceaux !
Un grand merci d'avance !
ps : le script est situé là : http://adri1du94.free.fr/Captainaruto/galerie, et je veux l'afficher là: http://captainaruto.n-serv.com/index.php?page=galerie