Jump to content

[SOLVED] Need help


Archadian

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/125969-solved-need-help/
Share on other sites

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>";

Link to comment
https://forums.phpfreaks.com/topic/125969-solved-need-help/#findComment-651417
Share on other sites

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>";

Link to comment
https://forums.phpfreaks.com/topic/125969-solved-need-help/#findComment-651425
Share on other sites

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>

Link to comment
https://forums.phpfreaks.com/topic/125969-solved-need-help/#findComment-651470
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.