Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/usr/hosts/domains/webbiscuits319/www.webbiscuits.com/httpdocs/office/office/config.php) is not within the allowed path(s): (/home/webbiscu:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/webbiscu/public_html/header.php on line 3

Warning: include_once(/usr/hosts/domains/webbiscuits319/www.webbiscuits.com/httpdocs/office/office/config.php) [function.include-once]: failed to open stream: Operation not permitted in /home/webbiscu/public_html/header.php on line 3

Warning: include_once() [function.include]: Failed opening '/usr/hosts/domains/webbiscuits319/www.webbiscuits.com/httpdocs/office/office/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webbiscu/public_html/header.php on line 3

Warning: session_start() [function.session-start]: open(/_web/sess_deae199cd1695062b448903c5efe5ea0, O_RDWR) failed: No such file or directory (2) in /home/webbiscu/public_html/header.php on line 7
PHP Photo Galleries - Picture Gallery Software - Webbiscuits

Photo Galleries

Ready to Buy?

Learn More


Photo Galleries > Documentation > Integration Guidelines


 Step 1 : Create new PHP page

Create a web page where you would like to publish your gallery. Save the web page file with .php extension, such as gallery.php.

Note: You can put the file into web root directory or any directory on the server.


   Step 2 : Find document path

To ensure that your Photo Galleries works regardless the location of your web page, you will need to add your server's Document Path to all the PHP include codes.

To find the Document Path, open the ' /modulescontroller/config.php ' file with your text editor, and note this path down. Let's assume the Document Path is 'C:/wwwroot/user/modulescontroller/'


 Step 3 : Call 'config.php'

Insert the codes as below to your web page file to call the 'config.php', 'session.php' and 'css.php'. This will load all the necessary database connection, class declaration files and css control. To do this, open the gallery.php file with a text editor, and put it to the topmost line (line 1) of the php file, without any preceded character.

<?php
  include_once ("C:/wwwroot/user/modulescontroller/config.php");

  include_once ("C:/wwwroot/user/modulescontroller/common/session.php");
  include_once ("C:/wwwroot/user/modulescontroller/common/css.php");
?>



 Step 4 : Load Photo Galleries menu and content area

I. To display your photo album's title, put the line below between the < title> tag of your web page.

<?php include("C:/wwroot/user/modulescontroller/photogallery/home.title.php"); ?>

For example:
< title><?php include("C:/wwwroot/user/modulescontroller/photogallery/home.title.php"); ?> < title>


II. To load Photo Galleries menu, place the include line below into the area you want the menu to display.

<?php include("C:/wwwroot/user/modulescontroller/photogallery/home.category.php"); ?>


III. In the body content of your .php web page file, put the line below to show the gallery's content.

<?php include("C:/wwwroot/user/modulescontroller/photogallery/home.gallery.php"); ?>


 Step 5 : View integration result

Go to your web page, eg: ' http://your-domain-name/gallery.php ' to view the Photo Galleries publish result.

To preview your sample gallery page in real time, click on the 'front-end' link on the top right menu from within the Modules Controller panel.


Back to the top


 
Copyright © 2007 by WebBiscuits Software Ltd.Sti. All Rights Reserved. License AgreementPrivacy Policy




php scripts search
links directories
Domain database

Warning: Unknown: open(/_web/sess_deae199cd1695062b448903c5efe5ea0, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/_web) in Unknown on line 0