Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorkaiv
    • CommentTimeApr 5th 2009
     
    Hello,

    I am very interested by this web gallery feature Plogger is offering, but I am having some difficulties properly having the gallery show up on a page I created.

    I have gone through the whole process of installation and everything has been fine, but when comes the time to insert the three PHP lines in a page, these errors appear :
    "Warning: require(/Gallery/gallery.php) [function.require]: failed to open stream: No such file or directory in /home/cyberti/public_html/bbspirit/bbsgallery.php on line 1

    Fatal error: require() [function.require]: Failed opening required '/Gallery/gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cyberti/public_html/bbspirit/bbsgallery.php on line 1"

    If you want, you can access the page I want to place my gallery in here : http://www.cybertigeranime.com/bbspirit/bbsgallery.php

    Since my server already contains many files, I like to keep this kind of thing inside folders, so I created a directory called "Gallery" which includes all the files I downloaded from Plogger. I am being hosted at www.cybertigeranime.com under "bbspirit".

    I have also tried simply typing the whole URL inside the first PHP code, but it did not work.



    Thank you for your time,

    Kai-V
    Owner of Beyblade Spirit
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 6th 2009
     
    kaiv,

    I'm pretty sure it's just a path issue. It seems your server does not have it's "include_path" set to the web root, so you cannot use root paths like you can in HTML (i.e. /Gallery/gallery.php is not the same as http://www.mysite.com/Gallery/gallery.php). So, to fix this, you can use relative paths if Gallery is a subfolder of the file you are including it from, just remove the leading slash:
    require('Gallery/gallery.php');

    If you want an absolute path, in your case it looks like you could use:
    require('/home/cyberti/public_html/Gallery/gallery.php');
    where "/home/cyberti/public_html/" is the PHP path to your webserver root directory.