is there a way to use real link in include? bc the code below doesnt work. it say cant use http.
login.php
<?php
include("http://localhost/E_COMMERCE/INCLUDE/header.php");
...
?>
---------------------------------------------------------------------
header.php
...
<link rel='stylesheet' type='text/css' href='css/main.css' />
...
-------------------------------------------------------------------------------
another way in login.php, i can do this code below. but the problem is that css file doesnt get linked in login.php
include("../INCLUDE/header.php");
my folder set up or tree
>wampp
>htdocs
>E_COMMERCE
>CSS
>main.css
>INCLUDE
>HEADER.php
>LOGIN
>login.php
another question is that which is better
../INCLUDE/header.php
vs
http://localhost/E_COMMERCE/INCLUDE/header.php
vs
E_COMMERCE/INCLUDE/header.php
i guess problem with 2nd link will be when you want to put your website online. than you will have to change your links bc it wont be localhost any more.