Pages (2):    1 2
Member
Member
sbillard   17-06-2009, 22:19
#21

What is the folder structure of your WEB site? In particular, where is the page that you have inserted the code above?

Probably the printLatestImagesByMtime() function was not coded to be able to be called anywhere but from the zenphoto index.php folder.

Member
Member
Barbara   17-06-2009, 22:22
#22

The site structure is
public_html/test/photos

the page is in 'test'
public_html/test/zen.php

Member
Member
sbillard   17-06-2009, 22:38
#23

I am not sure why the link would not work, then. But anyway, if you want to experiment make the following changes:

Member
Member
Barbara   17-06-2009, 22:41
#24

Thanks for the help! Here's what I have

Warning: require_once(0/template-functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxx/public_html/test/zen.php on line 3

Fatal error: require_once() [function.require]: Failed opening required '0/template-functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/test/zen.php on line 3

Member
Member
sbillard   18-06-2009, 01:17
#25

Both photos and zp-core should have been within quotes. Sorry about that.

Administrator
Administrator
acrylian   18-06-2009, 08:25
#26

Just to add that function does not rely on any context so it should work that way.

Member
Member
Barbara   18-06-2009, 12:04
#27

It's working now. Thanks sbillard!

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.