Eric
Administrator
    
Posts: 2761

|
 |
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:
| <!--#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:
<?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
|