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)


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)

WebmasterWorld Senior Member 10+ Year Member

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)

Seems to work fine, I'll try that.

Thx :)



Featured Threads

Hot Threads This Week

Hot Threads This Month