php - “No such file or directory in..” -


i have folder in htdocs named includes have example header.php. have file outside folder namned index.php. use include("includes/header.php"); in index.php file include header, "include(includes/header.php): failed open stream: no such file or directory in /home/lih/public_html/index.php". doing wrong?

perhaps important add, works on computer not work on servers.

<!doctype html>  <html lang="sv">  <head>      <title><?= $site_title . $divider . $page_title; ?></title>      <meta charset="utf-8">      <link rel="stylesheet" href="css/mainmenu.css" type="text/css">  </head>  <body>      <div id="container">          <header id="mainheader">              <h1>välkommen</h1>  			<!--inkluderar mainmenu-->              <?php include("includes/mainmenu.php"); ?>          </header>            <section id="leftcontent">

<?php  $page_title = "startsida";  include("includes/header.php");  ?>  <link rel='stylesheet' type='text/css' href='css/index.css' />   <h2>startsidan</h2>            <section id="leftcontent">              <h2>svar</h2>              <p>text </p>          </section>    <?php  include("includes/checklog.php");


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -