Archadian Posted September 26, 2008 Share Posted September 26, 2008 This is showing up on my homepage: Warning: include(../index.php?modules=home</div></td>) [function.include]: failed to open stream: No such file or directory in C:\Inetpub\wwwroot\index.php on line 217 Warning: include() [function.include]: Failed opening '../index.php?modules=home</div></td>' for inclusion (include_path='.;c:\php5\includes') in C:\Inetpub\wwwroot\index.php on line how do i change the include path in PHP5? php.ini file has been changed but still it says c:\php5\includes Quote Link to comment https://forums.phpfreaks.com/topic/125969-solved-need-help/ Share on other sites More sharing options...
discomatt Posted September 26, 2008 Share Posted September 26, 2008 Post line 217. Your problem here is you have HTML and a query string in your include Quote Link to comment https://forums.phpfreaks.com/topic/125969-solved-need-help/#findComment-651406 Share on other sites More sharing options...
Archadian Posted September 26, 2008 Author Share Posted September 26, 2008 echo "<div style=\"position:absolute; background-color:#222222; overflow:auto; scrollbar-face-color : #000000; scrollbar-highlight-color : #000000; scrollbar-3dlight-color : #454545; scrollbar-shadow-color : #000000; scrollbar-darkshadow-color : #000000; scrollbar-track-color : #000000; scrollbar-arrow-color : #007799;\">" . include('modules.php') . "</div></td>"; Quote Link to comment https://forums.phpfreaks.com/topic/125969-solved-need-help/#findComment-651417 Share on other sites More sharing options...
discomatt Posted September 26, 2008 Share Posted September 26, 2008 You're trying to include in your echo statement. Not the ideal way to do it. echo "<div style=\"position:absolute; background-color:#222222; overflow:auto; scrollbar-face-color : #000000; scrollbar-highlight-color : #000000; scrollbar-3dlight-color : #454545; scrollbar-shadow-color : #000000; scrollbar-darkshadow-color : #000000; scrollbar-track-color : #000000; scrollbar-arrow-color : #007799;\">"; include('modules.php') echo "</div></td>"; Quote Link to comment https://forums.phpfreaks.com/topic/125969-solved-need-help/#findComment-651425 Share on other sites More sharing options...
CroNiX Posted September 26, 2008 Share Posted September 26, 2008 You should also consider using a stylesheet instead of inline styles. It will make your code much more readable and shorten it. It will also help maintaining the code. <head> <style type="text/css"> .module { position:absolute; background-color:#222222; overflow:auto; scrollbar-face-color: #000000; scrollbar-highlight-color: #000000; scrollbar-3dlight-color: #454545; scrollbar-shadow-color: #000000; scrollbar-darkshadow-color: #000000; scrollbar-track-color: #000000; scrollbar-arrow-color: #007799; } </style> </head> <body> <?php echo "<div class=\"module\">"; //see how much cleaner it is? include('modules.php'); echo "</div></td>"; ?> </body> Quote Link to comment https://forums.phpfreaks.com/topic/125969-solved-need-help/#findComment-651470 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.