Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
[PHP] Why cant I include a file? GrodanBoll msg:1292153 10:23 am on Mar 12, 2002 (gmt 0) Hi
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?
sugarkane msg:1292154 10:33 am on Mar 12, 2002 (gmt 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'
GrodanBoll msg:1292155 12:41 pm on Mar 12, 2002 (gmt 0)
Seems to work fine, I'll try that.