emAlbum.com
Welcome, Guest. Please Login or Register.
 
News: All boards on this forum are being made "read only". If you have a question or issue regarding emAlbum, please contact me directly. -Eric
emAlbum Support  |  emAlbum Standard  |  Templates and Languages (Moderator: Eric)  |  Topic: HOWTO: Integrating emAlbum in shtml and PHP pages « prev next »
Pages: [1] :: Go Down Notify of replies :: Send the topic :: Print
   Author  Topic: HOWTO: Integrating emAlbum in shtml and PHP pages  (Read 5134 times)
Eric
Administrator
*****

Posts: 2761

emalbum emartineds
HOWTO: Integrating emAlbum in shtml and PHP pages
« on: February 09, 2005, 12:32:19 AM »

This is probably one of the most asked questions...so here it is...a howto on integrating emAlbum in shtml and PHP files. I have tested both of these methods, but cannot guarantee that they'll work on your site 

SHTML
In your shtml file place the exec cgi SSI statement wherever you want emAlbum to be displayed. Example:
Code:
<!--#exec cgi="/cgi-bin/emAlbum.cgi" -->

Then go into your settings.cfg file and set $cgi_index to 1 and then enter the URL to your shtml file. Example:
$cgi_index = 1;
$url = "http://www.yoursite.com/album.shtml";

As long as you don't have any other exec cgi SSI statements, everything should work 



PHP
* This will only work on Apache web servers
You can use the virtual PHP command and pass in the query string. Here is a sample php file:
Code:
<?php

// The relative URL to emAlbum
$script_name = "/cgi-bin/emAlbum.cgi";

// You need the following lines in order to determine
// the query string to pass into emAlbum
$qs = $_SERVER['QUERY_STRING'];
if ($qs != '') {
  $script_name .= "?" . $qs;
}

?>

// Place this code wherever you want
// your gallery to be inserted
<?php virtual($script_name); ?>


Then go into your settings.cfg file and set $cgi_index to 1 and then enter the URL to your PHP file. Example:
$cgi_index = 1;
$url = "http://www.yoursite.com/album.php";

If you have any questions or issues, please post them in this board.

Thanks,
Eric
« Last Edit: February 09, 2005, 12:33:54 AM by Eric » Report to moderator   Logged
Pages: [1] :: Go Up Notify of replies :: Send the topic :: Print 
emAlbum Support  |  emAlbum Standard  |  Templates and Languages (Moderator: Eric)  |  Topic: HOWTO: Integrating emAlbum in shtml and PHP pages « prev next »
Jump to: 
Support Forum Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.