Mam 2 pytania.
1. Jak pobrać całkowitą ścieżkę do pliku public_html, np: /home/a3697178/public_html/
2. Stronę zaczynam takim kodem:
<?php require_once('functions.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <?php head(); ?> <body> ....
plik functions:
<?php function head() { ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Language" content="pl" /> <link rel="shortcut icon" href="images/logo.png"> <meta property="og:image" content="images/logo.png"> <meta name="Robots" content="all" /> <link href="style.css" rel="stylesheet" type="text/css" /> <title> Test :: 123 </title> </head> <?php } ?>
Jak to wygląda w kodzie odebranym przez przeglądarkę:
<html xmlns="http://www.w3.org/1999/xhtml"> <body> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Language" content="pl" /> <link rel="shortcut icon" href="images/logo.png"> <meta property="og:image" content="images/logo.png"> <meta name="Robots" content="all" /> <link href="style.css" rel="stylesheet" type="text/css" /> </head> ....
Wie ktoś o co chodzi? Przez to też mam 10px stronę w dół co głupio wygląda...