Merci, en fait j'arrive bien à scanner les répertoires mais c'est l'utilisation de timthumb.php qui pose problème, il n'affiche pas les images.
le html généré est :
<div class="fotorama__stage__frame fotorama__error fotorama__active" style="left: 0px;"></div>
et cela me génère plein d'erreurs, sur la console avec f12 j'ai pleins d'erreur 400 style:
timthumb.php:1 GET
http://10.50.0.19/timthumb.php?src=/img ... JPG&w=1000 400 (Bad Request)
Pourtant je n'ai pas changé timthumb.php je viens juste de tout réinstaller sur un nouveau serveur apache (avec le module rewrite activé)
Voici mon code entier de /var/www/html/realisation.php:
<?php include("inc/header.php"); ?>
<div class="page realisation">
-a-
<?php echo __DIR__."/img/photo/realisation"; ?>
-b-<?php
ini_set('display_errors', '1');
error_reporting(E_ALL);
var_dump(__DIR__);
echo '<hr />';
var_dump(scandir(__DIR__));
echo '<hr />';
var_dump(scandir(__DIR__.'/img'));
echo '<hr />';
var_dump(scandir(__DIR__.'/img/photo'));
echo '<hr />';
var_dump(scandir(__DIR__.'/img/photo/realisation'));
echo '<hr />';
?>
-c-
<?php foreach(scandir(__DIR__.'/img/photo/realisation') as $filename){
echo $filename;
}?>
-d-
<?php $photos = scandir(__DIR__.'/img/photo/realisation'); ?>
<?php foreach ($photos as $p) { ?>
<?php if ($p != '..' & $p != '.'): ?>
<?= $p ?>
<?php endif ?>
<?php } ?>
-e-
<div class="foto-container">
<div class="fotorama" data-nav="thumbs" data-nav="thumbs" data-thumbheight="64" data-thumbheight="64"
data-autoplay="true"
data-width="100%"
data-ratio="800/500">
<?php $photos = scandir(__DIR__.'/img/photo/realisation'); ?>
<?php foreach ($photos as $p) { ?>
<?php if ($p != '..' & $p != '.'): ?>
<img src="/timthumb.php?src=/img/photo/realisation/<?= $p ?>&w=1000">
<?php endif ?>
<?php } ?>
</div>
</div>
</div>
<?php include("inc/footer.php"); ?>
et ce qu'il m'affiche:
-a- /var/www/html/img/photo/realisation
-b-string(13) "/var/www/html"
array(20) { [0]=> string(1) "." [1]=> string(2) ".." [2]=> string(21) "Presentation_Full.mp4" [3]=> string(21) "Presentation_Half.mp4" [4]=> string(5) "cache" [5]=> string(11) "contact.php" [6]=> string(16) "contact_send.php" [7]=> string(3) "css" [8]=> string(5) "fonts" [9]=> string(10) "groupe.php" [10]=> string(3) "img" [11]=> string(3) "inc" [12]=> string(9) "index.php" [13]=> string(2) "js" [14]=> string(15) "realisation.php" [15]=> string(15) "recrut_send.php" [16]=> string(15) "recrutement.php" [17]=> string(11) "service.php" [18]=> string(11) "station.php" [19]=> string(12) "timthumb.php" }
array(17) { [0]=> string(1) "." [1]=> string(2) ".." [2]=> string(8) "bg01.jpg" [3]=> string(8) "bg01.png" [4]=> string(9) "bgmap.png" [5]=> string(4) "icon" [6]=> string(8) "logo.png" [7]=> string(7) "map.jpg" [8]=> string(5) "photo" [9]=> string(11) "station.png" [10]=> string(15) "wafit_blanc.png" [11]=> string(9) "zone1.png" [12]=> string(9) "zone2.png" [13]=> string(9) "zone3.png" [14]=> string(9) "zone4.png" [15]=> string(9) "zone5.png" [16]=> string(9) "zone6.png" }
array(7) { [0]=> string(1) "." [1]=> string(2) ".." [2]=> string(7) "accueil" [3]=> string(7) "bandeau" [4]=> string(11) "realisation" [5]=> string(7) "resized" [6]=> string(7) "service" }
array(43) { [0]=> string(1) "." [1]=> string(2) ".." [2]=> string(16) "AD systeme U.JPG" [3]=> string(8) "AGIP.jpg" [4]=> string(20) "Apareil Dis ESSO.JPG" [5]=> string(10) "BLIGNY.jpg" [6]=> string(15) "Boutique BP.jpg" [7]=> string(11) "Cuves 3.JPG" [8]=> string(9) "Cuves.jpg" [9]=> string(16) "Distribution.jpg" [10]=> string(59) "ESSO DIETSCH Remplacement des tuyauteries de depotages .JPG" [11]=> string(8) "Elan.JPG" [12]=> string(16) "ElectricitВ.jpg" [13]=> string(26) "Genie civil Palplanche.JPG" [14]=> string(17) "Intermarche 1.JPG" [15]=> string(16) "Ludo S50 014.jpg" [16]=> string(12) "Monoprix.jpg" [17]=> string(19) "Port - leperrey.jpg" [18]=> string(14) "Privatif 1.JPG" [19]=> string(11) "St Pois.JPG" [20]=> string(20) "Systeme U - Brie.jpg" [21]=> string(22) "Systeme U Beauvais.JPG" [22]=> string(17) "Toilettes PMR.JPG" [23]=> string(33) "Total Fos-03-04-2008-DSCF1946.JPG" [24]=> string(15) "Tuyaterie 1.JPG" [25]=> string(34) "Tuyauterie - DВpot PВtrolier.JPG" [26]=> string(14) "Tuyauterie.JPG" [27]=> string(16) "acess mureau.JPG" [28]=> string(26) "chateau-20130507-00449.jpg" [29]=> string(11) "chateau.JPG" [30]=> string(26) "chateau20130523_084835.jpg" [31]=> string(26) "chateau20130523_084853.jpg" [32]=> string(26) "chateau20130523_085241.jpg" [33]=> string(26) "chateau20130523_085307.jpg" [34]=> string(11) "cuves 2.JPG" [35]=> string(15) "intermarche.JPG" [36]=> string(14) "privatif 2.JPG" [37]=> string(14) "privatif 3.JPG" [38]=> string(14) "privatif 4.jpg" [39]=> string(14) "privatif 5.jpg" [40]=> string(14) "privatif 6.JPG" [41]=> string(14) "privatif 7.jpg" [42]=> string(24) "systeme U Palplanche.jpg" }
-c- ...AD systeme U.JPGAGIP.jpgApareil Dis ESSO.JPGBLIGNY.jpgBoutique BP.jpgCuves 3.JPGCuves.jpgDistribution.jpgESSO DIETSCH Remplacement des tuyauteries de depotages .JPGElan.JPGElectricitВ.jpgGenie civil Palplanche.JPGIntermarche 1.JPGLudo S50 014.jpgMonoprix.jpgPort - leperrey.jpgPrivatif 1.JPGSt Pois.JPGSysteme U - Brie.jpgSysteme U Beauvais.JPGToilettes PMR.JPGTotal Fos-03-04-2008-DSCF1946.JPGTuyaterie 1.JPGTuyauterie - DВpot PВtrolier.JPGTuyauterie.JPGacess mureau.JPGchateau-20130507-00449.jpgchateau.JPGchateau20130523_084835.jpgchateau20130523_084853.jpgchateau20130523_085241.jpgchateau20130523_085307.jpgcuves 2.JPGintermarche.JPGprivatif 2.JPGprivatif 3.JPGprivatif 4.jpgprivatif 5.jpgprivatif 6.JPGprivatif 7.jpgsysteme U Palplanche.jpg
-d- AD systeme U.JPG AGIP.jpg Apareil Dis ESSO.JPG BLIGNY.jpg Boutique BP.jpg Cuves 3.JPG Cuves.jpg Distribution.jpg ESSO DIETSCH Remplacement des tuyauteries de depotages .JPG Elan.JPG ElectricitВ.jpg Genie civil Palplanche.JPG Intermarche 1.JPG Ludo S50 014.jpg Monoprix.jpg Port - leperrey.jpg Privatif 1.JPG St Pois.JPG Systeme U - Brie.jpg Systeme U Beauvais.JPG Toilettes PMR.JPG Total Fos-03-04-2008-DSCF1946.JPG Tuyaterie 1.JPG Tuyauterie - DВpot PВtrolier.JPG Tuyauterie.JPG acess mureau.JPG chateau-20130507-00449.jpg chateau.JPG chateau20130523_084835.jpg chateau20130523_084853.jpg chateau20130523_085241.jpg chateau20130523_085307.jpg cuves 2.JPG intermarche.JPG privatif 2.JPG privatif 3.JPG privatif 4.jpg privatif 5.jpg privatif 6.JPG privatif 7.jpg systeme U Palplanche.jpg
-e-
Merci, en fait j'arrive bien à scanner les répertoires mais c'est l'utilisation de timthumb.php qui pose problème, il n'affiche pas les images.
le html généré est :
<div class="fotorama__stage__frame fotorama__error fotorama__active" style="left: 0px;"></div>
et cela me génère plein d'erreurs, sur la console avec f12 j'ai pleins d'erreur 400 style:
timthumb.php:1 GET http://10.50.0.19/timthumb.php?src=/img/photo/realisation/privatif%203.JPG&w=1000 400 (Bad Request)
Pourtant je n'ai pas changé timthumb.php je viens juste de tout réinstaller sur un nouveau serveur apache (avec le module rewrite activé)
Voici mon code entier de /var/www/html/realisation.php:
[PHP]
<?php include("inc/header.php"); ?>
<div class="page realisation">
-a-
<?php echo __DIR__."/img/photo/realisation"; ?>
-b-<?php
ini_set('display_errors', '1');
error_reporting(E_ALL);
var_dump(__DIR__);
echo '<hr />';
var_dump(scandir(__DIR__));
echo '<hr />';
var_dump(scandir(__DIR__.'/img'));
echo '<hr />';
var_dump(scandir(__DIR__.'/img/photo'));
echo '<hr />';
var_dump(scandir(__DIR__.'/img/photo/realisation'));
echo '<hr />';
?>
-c-
<?php foreach(scandir(__DIR__.'/img/photo/realisation') as $filename){
echo $filename;
}?>
-d-
<?php $photos = scandir(__DIR__.'/img/photo/realisation'); ?>
<?php foreach ($photos as $p) { ?>
<?php if ($p != '..' & $p != '.'): ?>
<?= $p ?>
<?php endif ?>
<?php } ?>
-e-
<div class="foto-container">
<div class="fotorama" data-nav="thumbs" data-nav="thumbs" data-thumbheight="64" data-thumbheight="64"
data-autoplay="true"
data-width="100%"
data-ratio="800/500">
<?php $photos = scandir(__DIR__.'/img/photo/realisation'); ?>
<?php foreach ($photos as $p) { ?>
<?php if ($p != '..' & $p != '.'): ?>
<img src="/timthumb.php?src=/img/photo/realisation/<?= $p ?>&w=1000">
<?php endif ?>
<?php } ?>
</div>
</div>
</div>
<?php include("inc/footer.php"); ?>
[/PHP]
et ce qu'il m'affiche:
-a- /var/www/html/img/photo/realisation
-b-string(13) "/var/www/html"
array(20) { [0]=> string(1) "." [1]=> string(2) ".." [2]=> string(21) "Presentation_Full.mp4" [3]=> string(21) "Presentation_Half.mp4" [4]=> string(5) "cache" [5]=> string(11) "contact.php" [6]=> string(16) "contact_send.php" [7]=> string(3) "css" [8]=> string(5) "fonts" [9]=> string(10) "groupe.php" [10]=> string(3) "img" [11]=> string(3) "inc" [12]=> string(9) "index.php" [13]=> string(2) "js" [14]=> string(15) "realisation.php" [15]=> string(15) "recrut_send.php" [16]=> string(15) "recrutement.php" [17]=> string(11) "service.php" [18]=> string(11) "station.php" [19]=> string(12) "timthumb.php" }
array(17) { [0]=> string(1) "." [1]=> string(2) ".." [2]=> string(8) "bg01.jpg" [3]=> string(8) "bg01.png" [4]=> string(9) "bgmap.png" [5]=> string(4) "icon" [6]=> string(8) "logo.png" [7]=> string(7) "map.jpg" [8]=> string(5) "photo" [9]=> string(11) "station.png" [10]=> string(15) "wafit_blanc.png" [11]=> string(9) "zone1.png" [12]=> string(9) "zone2.png" [13]=> string(9) "zone3.png" [14]=> string(9) "zone4.png" [15]=> string(9) "zone5.png" [16]=> string(9) "zone6.png" }
array(7) { [0]=> string(1) "." [1]=> string(2) ".." [2]=> string(7) "accueil" [3]=> string(7) "bandeau" [4]=> string(11) "realisation" [5]=> string(7) "resized" [6]=> string(7) "service" }
array(43) { [0]=> string(1) "." [1]=> string(2) ".." [2]=> string(16) "AD systeme U.JPG" [3]=> string(8) "AGIP.jpg" [4]=> string(20) "Apareil Dis ESSO.JPG" [5]=> string(10) "BLIGNY.jpg" [6]=> string(15) "Boutique BP.jpg" [7]=> string(11) "Cuves 3.JPG" [8]=> string(9) "Cuves.jpg" [9]=> string(16) "Distribution.jpg" [10]=> string(59) "ESSO DIETSCH Remplacement des tuyauteries de depotages .JPG" [11]=> string(8) "Elan.JPG" [12]=> string(16) "ElectricitВ.jpg" [13]=> string(26) "Genie civil Palplanche.JPG" [14]=> string(17) "Intermarche 1.JPG" [15]=> string(16) "Ludo S50 014.jpg" [16]=> string(12) "Monoprix.jpg" [17]=> string(19) "Port - leperrey.jpg" [18]=> string(14) "Privatif 1.JPG" [19]=> string(11) "St Pois.JPG" [20]=> string(20) "Systeme U - Brie.jpg" [21]=> string(22) "Systeme U Beauvais.JPG" [22]=> string(17) "Toilettes PMR.JPG" [23]=> string(33) "Total Fos-03-04-2008-DSCF1946.JPG" [24]=> string(15) "Tuyaterie 1.JPG" [25]=> string(34) "Tuyauterie - DВpot PВtrolier.JPG" [26]=> string(14) "Tuyauterie.JPG" [27]=> string(16) "acess mureau.JPG" [28]=> string(26) "chateau-20130507-00449.jpg" [29]=> string(11) "chateau.JPG" [30]=> string(26) "chateau20130523_084835.jpg" [31]=> string(26) "chateau20130523_084853.jpg" [32]=> string(26) "chateau20130523_085241.jpg" [33]=> string(26) "chateau20130523_085307.jpg" [34]=> string(11) "cuves 2.JPG" [35]=> string(15) "intermarche.JPG" [36]=> string(14) "privatif 2.JPG" [37]=> string(14) "privatif 3.JPG" [38]=> string(14) "privatif 4.jpg" [39]=> string(14) "privatif 5.jpg" [40]=> string(14) "privatif 6.JPG" [41]=> string(14) "privatif 7.jpg" [42]=> string(24) "systeme U Palplanche.jpg" }
-c- ...AD systeme U.JPGAGIP.jpgApareil Dis ESSO.JPGBLIGNY.jpgBoutique BP.jpgCuves 3.JPGCuves.jpgDistribution.jpgESSO DIETSCH Remplacement des tuyauteries de depotages .JPGElan.JPGElectricitВ.jpgGenie civil Palplanche.JPGIntermarche 1.JPGLudo S50 014.jpgMonoprix.jpgPort - leperrey.jpgPrivatif 1.JPGSt Pois.JPGSysteme U - Brie.jpgSysteme U Beauvais.JPGToilettes PMR.JPGTotal Fos-03-04-2008-DSCF1946.JPGTuyaterie 1.JPGTuyauterie - DВpot PВtrolier.JPGTuyauterie.JPGacess mureau.JPGchateau-20130507-00449.jpgchateau.JPGchateau20130523_084835.jpgchateau20130523_084853.jpgchateau20130523_085241.jpgchateau20130523_085307.jpgcuves 2.JPGintermarche.JPGprivatif 2.JPGprivatif 3.JPGprivatif 4.jpgprivatif 5.jpgprivatif 6.JPGprivatif 7.jpgsysteme U Palplanche.jpg
-d- AD systeme U.JPG AGIP.jpg Apareil Dis ESSO.JPG BLIGNY.jpg Boutique BP.jpg Cuves 3.JPG Cuves.jpg Distribution.jpg ESSO DIETSCH Remplacement des tuyauteries de depotages .JPG Elan.JPG ElectricitВ.jpg Genie civil Palplanche.JPG Intermarche 1.JPG Ludo S50 014.jpg Monoprix.jpg Port - leperrey.jpg Privatif 1.JPG St Pois.JPG Systeme U - Brie.jpg Systeme U Beauvais.JPG Toilettes PMR.JPG Total Fos-03-04-2008-DSCF1946.JPG Tuyaterie 1.JPG Tuyauterie - DВpot PВtrolier.JPG Tuyauterie.JPG acess mureau.JPG chateau-20130507-00449.jpg chateau.JPG chateau20130523_084835.jpg chateau20130523_084853.jpg chateau20130523_085241.jpg chateau20130523_085307.jpg cuves 2.JPG intermarche.JPG privatif 2.JPG privatif 3.JPG privatif 4.jpg privatif 5.jpg privatif 6.JPG privatif 7.jpg systeme U Palplanche.jpg
-e-