hello danifriends. i'm developing my website with php and i want to make dynamic header, so i create i file header.php with logo and menu and the page had all html doctype and and head tag for link with css and js..., i include the header in my page using `include(../header/header.php)`, and so i was thinking that i was going to have html doctype 2 time in every pages where i include header and the `<head>` so i delete the doctype in header.php and `<head>` after that i dont have any php error for include but the space of header …

Member Avatar
Member Avatar
+0 forum 12

I know i just posted below, but i have another question. Is it dangerous to have the <head> tag be included using PHP include? Is it dangerous to have the <body> tag or <html> tag or doctype to be included using PHP?

Member Avatar
Member Avatar
+1 forum 8

I have some problem with my HTML code but I cannot figure out why, hope you guys can help me. My website here http://caycanh.url.ph/ although **displayed fine**, I saw some problem when I use Firebug to detect the code. This is how it displayed in Firebug dock: <html lang="en-US"> <head> </head> ******THIS IS WHERE THE STRANGE THING HAPPEN******* <body> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <title>Cây cảnh</title> <meta content="Purple Tree Farm, Tennessee, farmers market, Murfreesboro, Franklin, Shelbyville, seasonal plants, Bedford County, hanging baskets, potted herbs, vegetable slips, greenhouses" name="keywords"> <meta content="Loca.... .... </body> Strange thing is the `meta`, `title`, `link`, `script` tags …

Member Avatar
Member Avatar
+0 forum 3

Hi. I was wondering if someone could explain to me how to make some new node point to the first element in a list.

Member Avatar
Member Avatar
+0 forum 2

Hi all, I created a blank or empty html file, is there a way the <html> and <head> tags cannot be detected by firebug(note: in view source, it is empty)?

Member Avatar
Member Avatar
+0 forum 2

struct looks like this: [CODE] struct ListNode; typedef ListNode* ListType; struct details { char first_name[20]; char last_name[20]; int start_number; int end_number; }; struct ListNode { details data; ListType next; }; ListType list = NULL; ListType head = NULL; ListType * PointerToHead = &head; [/CODE] I have a circular linked list that i bubblesort, and the swap function for it now looks like this: [CODE] void Swap(ListType& a, ListType& b)//when called b is always a->next { ListType prevNodeA; ListType tempPtr = a; ListType AfterNodeB = b->next; while(tempPtr->next!=a)//find the node before a { tempPtr = tempPtr->next; } if(tempPtr->next==a) { prevNodeA = tempPtr; …

Member Avatar
+0 forum 0

Ok so I've started learning Java and am half way the book 'Head First Java' (which isn't a bad book btw); but what they've failed to mention is when you know when you need to make a new class. I've learnt that each Class is for each object but how do you know what objects you need? As an example, the book is guiding me through a battleship game whereby each battleship is called a 'DotCom'. The book has made 3 classes: DotComBust, DotCom and GameHelper. In my naive view on this I would have thought that DotCom is the …

Member Avatar
Member Avatar
+0 forum 10

Hi, I am in a unusual situation and cannot get my JavaScript to work. I need to have all of my JavaScript in one external file that I link to in the header. However, some of the JavaScript in that external tag needs to appear in a certain place in my body. However, because it is being linked to in the header I cannot get it there. Is there anyway to have an external JavaScript file contain some JS that appears in the header and some that appears in the body? I'm at a loss and any help would be …

Member Avatar
Member Avatar
+0 forum 4

The End.