Member
Member
Gstyleris   2007-11-29, 23:59
#1
Hi!
How can I include zenphoto in my web page?
My navigation works something like this:
<?php
if(isset($_GET['gl']) && isset($_GET['glx']) && file_exists($_GET['gl']."/".$_GET['glx'].".php")){
include ($_GET['gl']."/".$_GET['glx'].".php");
}else if(isset($_GET['glx']) && file_exists($_GET['glx'].".php")){
include ($_GET['glx'].".php");
}else if (empty($_GET['glx'])){
.........

Everything is static just changes the center of web page.
Also I put zenphoto under few folders like www.mypage.com/mypage/zenphoto/
When I include it usual way it gives error like this:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(c://www/..../zenphoto/albums/) is not within the allowed path(s): (d:\www\) in
..........\zen\classes.php on line 645
Error: The 'albums' directory cannot be found or is not readable.
Member
Member
sbillard   2007-11-30, 00:22
#2
The best way to integrate into an existing WEB page is to make a theme with the look and feel of the rest of the site. Then you just place a link to www.mypage.com/zenphoto/

From the text of your error message it would appear that you are not using the 1.1 release (the `zen` folder was changed to `zp-core` in that release.) There is no line 645 in the current version of classes.php

You might want to download the current version and try it. You should also check the chmod settings of your albums folder. It needs to be @777
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.