|
|
Joined: May 2001
Posts: 2,798
Member
|
Member
Joined: May 2001
Posts: 2,798 |
Here's the code I have: <br /><?<br />// State XML version .. Why? I don't know ..<br />echo "<?xml version=\"1.0\" encoding=\"windows-1252\"?".">"; <br /><br />// Include Library<br />include('lib.php');<br /><br />// Open Database<br />opendb();<br /><br />/?><br /><br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml/DTD/xhtml.dtd"><br /><html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\"><br /><head><br /> <title>Phrozen-Effect.net || LAN Parties</title><br /> <br /><meta http-equiv=\"Content-Type"<br /> content="text/html; charset=windows-1252" /><br /> <link rel="stylesheet"<br /> href="http://css.phrozen-effect.net/phrozenphan.css"<br /> type="text/css" /><br /> </head><br /><br /> <body><br /> I want to put that all in a function, than call the function for every page. But I can't echo the stuff, or just put it in a function because it has a little bit of phpo in the header...
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
Is this what you mean? function x() {<br /><br />// Include Library<br />include('lib.php');<br /><br />// Open Database<br />opendb();<br /><br />echo <<<END<br /><?xml version=\"1.0\" encoding=\"windows-1252\"?"."><br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml/DTD/xhtml.dtd"><br /><html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\"><br /><head><br /> <title>Phrozen-Effect.net || LAN Parties</title><br /> <br /><meta http-equiv=\"Content-Type"<br /> content="text/html; charset=windows-1252" /><br /> <link rel="stylesheet"<br /> href="http://css.phrozen-effect.net/phrozenphan.css"<br /> type="text/css" /><br /> </head><br /><br /> <body><br />END;<br />}
|
|
|
|
Joined: May 2001
Posts: 2,798
Member
|
Member
Joined: May 2001
Posts: 2,798 |
Yes, the problem I was having was echoing the HTML, but with echo <<END that fixed it, thanks! 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 449
Joined: February 2008
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|