[PHP] Classifieds script error

Custom Title Activated
Loyal Member
Joined
Apr 16, 2007
Messages
1,009
Reaction score
11
Well I was trying to setup a classifieds script to test and well, I have absolutley no idea what went wrong, I don't have a clue tbh.

Code:
[B]Warning[/B]:  require_once() [[URL="http://canon.p4web.biz/function.require-once"]function.require-once[/URL]]: open_basedir restriction in effect. File(/path/to/declassifieds/lib/func_common.php) is not within the allowed path(s): (/www/p4web.biz/c/a/n/canon/htdocs/) in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]

[B]Warning[/B]:  require_once(/path/to/declassifieds/lib/func_common.php) [[URL="http://canon.p4web.biz/function.require-once"]function.require-once[/URL]]: failed to open stream: Operation not permitted in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]

[B]Fatal error[/B]:  require_once() [[URL="http://canon.p4web.biz/function.require"]function.require[/URL]]: Failed opening required '/path/to/declassifieds/lib/func_common.php' (include_path='.:/usr/share/php') in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]
 
Well I was trying to setup a classifieds script to test and well, I have absolutley no idea what went wrong, I don't have a clue tbh.

Code:
[B]Warning[/B]:  require_once() [[URL="http://forum.ragezone.com/redirector.php?url=http://canon.p4web.biz%2Ffunction.require-once"]function.require-once[/URL]]: open_basedir restriction in effect. File(/path/to/declassifieds/lib/func_common.php) is not within the allowed path(s): (/www/p4web.biz/c/a/n/canon/htdocs/) in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]

[B]Warning[/B]:  require_once(/path/to/declassifieds/lib/func_common.php) [[URL="http://forum.ragezone.com/redirector.php?url=http://canon.p4web.biz%2Ffunction.require-once"]function.require-once[/URL]]: failed to open stream: Operation not permitted in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]

[B]Fatal error[/B]:  require_once() [[URL="http://forum.ragezone.com/redirector.php?url=http://canon.p4web.biz%2Ffunction.require"]function.require[/URL]]: Failed opening required '/path/to/declassifieds/lib/func_common.php' (include_path='.:/usr/share/php') in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]


Looks to me like you haven't installed it correctly, or had it in the correct directory.
 
Simple.. You didn't instal it correctly, but it's easy to fix.

Open the page with errors into your favorite text document.

Scroll down to line 17 (where the error was encountered), and notice that you'll see something like:
PHP:
include_once('/path/to/declassifieds/lib....');

Now, in your file management system, or the place where you see all the files to your site, there should be a folder called declassifieds. Well you uploaded it, so you should know where it is.

Back in the file with the error (on line 17), replace everything that says /path/to/declassifieds/lib/ with http://www.yourDomain.com/declassifieds/lib/ Or whatever the path is.

I think you should understand the error now ;)
 
Back