Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.