Jump to content

include problem


pouncer

Recommended Posts

i have a folder called php_classes with a class_db.php in it.

i created a folder called forum.

Inside forum i put addtopic.php

inside addtopic.php i put

[code=php:0]
require_once("php_classes/class_db.php");
[/code]

which is throwing me an error

Warning: main(php_classes/class_login.php) [function.main]: failed to open stream: No such file or directory in c:\domains\bn.nl\wwwroot\myftp\forum\addtopic.php on line 4

line4 is the require line, whats the problem

it works when i put the addtopic.php outside of the forum folder, but not when it is inside the folder.
Link to comment
https://forums.phpfreaks.com/topic/27046-include-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.