Warning: include_once (include_path='.:/opt/php53/lib/php') i

Ive tried white space problem… this is driving me nuts. Please help. I dont normally ask for help but i cant figure it out at all.

ERROR
Warning: include_once(/peipon/resources/UberGallery.php) [function.include-once]: failed to open stream: No such file or directory in /home/ayumi/public_html/peipon/vipimages.php on line 50

Warning: include_once() [function.include]: Failed opening ‘/peipon/resources/UberGallery.php’ for inclusion (include_path=’.:/opt/php53/lib/php’) in /home/ayumi/public_html/peipon/vipimages.php on line 50

Fatal error: Class ‘UberGallery’ not found in /home/ayumi/public_html/peipon/vipimages.php on line 50

FULL PAGE CODE
[php]

<?php session_start(); if(!session_is_registered(myusername)){ header("location:http://www.google.com"); } ?> Pei's Blog

VIP Area - Explore and Enjoy
<?php include_once('/peipon/resources/UberGallery.php'); $gallery = UberGallery::init()->createGallery('/peipon/resources/images');?>
<?php include_once('main_login.php'); ?>
Catch me online

The problem has nothing to do with whitespaces, that would be an issue with sessions and headers.

Your issue is that it can’t find the file in the location you’re telling it. In other words, UberGallery.php doesn’t exist at /peipon/resources/. Check the path and that the file has been uploaded.

In linux the path you are using will try to load the file from the “peipon” folder in the root of the server

/ <- root dir

You probably mean a virtual root, most likely your home/www folder.

Try to use this

DIR.’/relative/path/to/file/from/current/file.php’;

Probably
DIR.’/resources/UberGallery.php’;

Sponsor our Newsletter | Privacy Policy | Terms of Service