Basic PHP integration..

mattburdine

Joined: 2005-03-07
Posts: 2
Posted: Mon, 2005-03-07 16:15

I'm trying to integrate Gallery into a PHP-based site. The code I'm using is simple. However, Gallery doesn't display as intended.

<?php
include_once('layout.php');
$file = "gallery/albums.php";
$fp = fopen($file, "r");
echo fread($fp, filesize($file));
fclose($fp);
include_once('close.php');
?>

I have somewhat of a basic template (layout.php) and this code is supposedly used to load that and then put the gallery in beside the rest of the text on the page then add a footer (close.php). It works fine with all the other content, but not Gallery.

I hope I've explained this well. If not let me know. You can see what I've done at http://development.mattburdine.com[/i]

 
maledictus

Joined: 2005-03-08
Posts: 23
Posted: Tue, 2005-03-08 23:27

im trying to do the same thing on a PHP-website. Any ideas on how to doit??

 
mattburdine

Joined: 2005-03-07
Posts: 2
Posted: Wed, 2005-03-09 21:01

Instead of calling it from gallery.php (that I created), I editied index.php, albums.php, and init.php and added

include_once('layout.php');

into them. It now displays appropriately, but has to be called from http://development.mattburdine.com/gallery/

 
maledictus

Joined: 2005-03-08
Posts: 23
Posted: Fri, 2005-04-08 17:22
mattburdine wrote:
Instead of calling it from gallery.php (that I created), I editied index.php, albums.php, and init.php and added

include_once('layout.php');

into them. It now displays appropriately, but has to be called from http://development.mattburdine.com/gallery/

After a while searching i came out to nothing... hey man can you explain what you changed in order to make gallery use your own layout? Thanks in advance!