Login   Register  
PHP Classes
elePHPant
Icontem

Example not working

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Image File Browser  >  All threads  >  Example not working  >  (Un) Subscribe thread alerts  
Subject:Example not working
Summary:Example refers to missing php script include("top_script.php");
Messages:6
Author:Gabriel Harrison
Date:2006-11-04 11:11:12
Update:2006-11-08 09:08:17
 

  1. Example not working   Reply   Report abuse  
Picture of Gabriel Harrison
Gabriel Harrison
2006-11-04 11:11:12
Hi,

The example script is not working as expected. I installed as follwows:

1. unzipped ifb-2006-10-29 to web folder
2. added prototype.js to the web folder
3. added all js files from the src folder to web folder
4. modified line 48 of example.php point to image folder.
5. commented out missing include on line 44.

Can you tell me where I can get the images refered to in the example (/images/folder_open.png) and the top_script.php file.

Thanks

Gabriel

  2. Re: Example not working   Reply   Report abuse  
Picture of Tony Arcucci
Tony Arcucci
2006-11-04 14:21:09 - In reply to message 1 from Gabriel Harrison
/images/empty.png is missing too.

  3. Re: Example not working   Reply   Report abuse  
Picture of Panos Kyriakakis
Panos Kyriakakis
2006-11-07 08:53:17 - In reply to message 1 from Gabriel Harrison
Hi,
sorry about the not working example and missing images.
I did some more bug fixes and uploaded new files, also
added a demo page to http://www.salix.gr/ifb_demo/example.php.
Thanks for your comments.

Panos

  4. Re: Example not working   Reply   Report abuse  
Picture of Lars Oliver Mautsch
Lars Oliver Mautsch
2006-11-07 13:41:00 - In reply to message 3 from Panos Kyriakakis
Hello,

has anyone tested the new version successfully in a Windows environment?

It seems to me, that the path to the images is wrong. On my Linux-environment it works...

Greetings
Lars

  5. Re: Example not working   Reply   Report abuse  
Picture of Panos Kyriakakis
Panos Kyriakakis
2006-11-07 15:26:15 - In reply to message 4 from Lars Oliver Mautsch
True. There is a promble with window's full paths.
Drive letter eg C:\ is tranlated by realpath() function to something strange and php file systems functions dont work properly.
So, I just remove drive letter from real path to make it work. So you must have installed it on drive other than C: ...........

Check example.php, line 46
$abs_path = str_replace('\\','/',str_replace('C:','', dirname(__FILE__))).'/';


  6. Re: Example not working   Reply   Report abuse  
Picture of Panos Kyriakakis
Panos Kyriakakis
2006-11-08 09:08:17 - In reply to message 5 from Panos Kyriakakis
New version! Fixed windows path problem.