Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

[PHP] Why cant I include a file?



10:23 am on Mar 12, 2002 (gmt 0)

Inactive Member
Account Expired



I'm getting this row in the Apache error-log:

[Tue Mar 12 11:16:27 2002] [error] PHP Warning: Failed opening 'sidamedspalt.php?avdid=1&sidnamn=hem' for inclusion (include_path='.') in c:\program files\apache group\apache\htdocs\wwhkr3\processor.php on line 106

Dont the point mean that the the 'include' should look in the same folder that the processor.php is in?

/Grodan :)

10:33 am on Mar 12, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 6, 2000
votes: 0

Yep, the include will look in the same folder. I think the problem is that you're trying to pass variables using a query string - that won't work with 'include', only via http

Try rewriting it as:


ie define your variable first and then do a plain 'include'


12:41 pm on Mar 12, 2002 (gmt 0)

Inactive Member
Account Expired


Seems to work fine, I'll try that.

Thx :)



Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members