Estoy montando un sitio pequeño en el que quiero meter unas galerías de imagenes. Dado que mi intención es meter una gran cantidad de imagenes, y que se pueda ir actualizando posteriormente, no quice hacerlo del modo "manual", o sea creando los thumbnails y poniendolo uno por uno en html y css...En cambio encontré un bonito código PHP para crear una galería fácilmente sin la necesidad de usar MySql. El código llama todas las imagenes de un directorio y crea la galería, sin embargo tengo problemas poniendolo.
Esta es la web del código: http://bolgallery.free.fr/
Cómo dice en la web, lo que hice fue subir el bolGallery.php a mi directorio donde estan las imagenes y luego puse
en mi hoja html esto:
Código PHP :
<?
include("./bolGallery.php");
bolGallery("./images/", 5, 80, 50);
?>Se supone que debería jalar, pero me marca los siguiente errores:
escribió:
Warning: fputs(): supplied argument is not a valid stream resource in /home/a7652145/public_html/gallery/amateur/cute/bolGallery.php on line 195
Warning: fclose(): supplied argument is not a valid stream resource in /home/a7652145/public_html/gallery/amateur/cute/bolGallery.php on line 196
Warning: file_get_contents(./cute_bolGalleryStaticPage.html) [function.file-get-contents]: failed to open stream: No such file or directory in /home/a7652145/public_html/gallery/amateur/cute/bolGallery.php on line 206
La parte confusa (sobretodo porque mis conocimientos de PHP son nulos) es esta:
escribió:
To work, bolGallery needs at least 4 parameters (in bold). There are also two extra parameters you are not obliged to give (in italic). Those arguments must be given in the right order.
bolGallery($referenceImagesDirectory, $tableColumnsNb, $thumbnailWidth, $thumbnailHeight, $switchClassic);
* $referenceImagesDirectory : gives the directory url address where the big images files are located.
* $tableColumnsNb : gives the gallery table columns number (the number of images by line).
* $thumbnailWidth & $thumbnailHeight : give the thumbnail images size.
* $switchClassic : enable you to switch thumbnails displaying style between creative (value 0 by default) or classic (value 1). Creative creates thumbnails with the size you want focusing on a detail of the image. Classic create miniatures of the big images. Give 0 or 1 to switch to a mode to another (note that you must delete thumbnails directory to see the changes, see FAQ).
Se supone que esos cuatro parámetros deben modificarse para que funcione, pero aunque ya revisé el código en DreamWeaver no encuentro en dónde debo hacerlo. Por favor ayuda.
