What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » simple php help

simple php help
Author: Message:
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
O.P. simple php help
i hardly know any php, so i probably made a silly mistake and everyone's gonna laugh at me ;<

anyways, to make things easier, i decided to split a page up into different sections (in a different file) and included it on every page, but it only shows 3 random characters when it loads ;<

static_content.php

code:
<?php
$header = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="css.css" type="text/css" />

<title>123</title>
</head>'

$body ='<body>

<div id="container">
    <div id="header"></div>
    <div id="content">'
   
$sidebar ='<div id="sidebar">
            <ul>
            <li><a href="novosti.php"><b>123</b></a></li>
            <br />
            <li><b>123</b></li>
                <ul>
                <li><a href="detskii_sad.php"><i>• 123</i></a></li>
                <li><a href="sybot_shkola.php"><i>• 123</i></a></li>
                <li><a href="podgotov_shkola.php"><i>• 123</i></a></li>
                <li><a href="klass_taekwon_do.php"><i>• 123</i></a></li>
                <li><a href="letnii_lager.php"><i>• 123</i></a></li>
                <li><a href="program_do_i_posle.php"><i>• 123</i></a></li>
                <li><a href="music_shkola.php"><i>• 123</i></a></li>
                <li><a href="shkola_horeographii.php"><i>• 123</i></a></li>
                <li><a href="russkii_kak_deti.php"><i>• 123</i></a></li>
                <li><a href="francyzskii_deti.php"><i>• 123</i></a></li>
                </ul>
            <li><b>123</b></li>
                <ul>
                <li><a href="ansambl_kalinka.php"><i>• 123</i></a></li>
                <li><a href="klass_aerobiki.php"><i>• 123</i></a></li>
                <li><a href="workshop.php"><i>• Workshop</i></a></li>
                <li><a href="russkii_kak_vzros.php"><i>• 123</i></a></li>
                <li><a href="francyzskii_vzros.php"><i>• 123</i></a></li>
                <li><a href="angliskii.php"><i>• 123</i></a></li>
                </ul>
            <li><a href="http://www.pokrov.ca/School/schoolalbum.php" target="_blank"><b>123</b></a></li>
            <li><a href="adres.php"><b>123</b></a></li>
            <li><a href="index.php"><b>123</b></a></li>
            </ul>
        </div>'
       
$footer = '</div>
   
    <div id="footer">
        <p>&copy; 2007</p>
    </div>
   
</div>
</body>
</html>'
?>



and the page

code:
<?php
    include'static_content.php';
    print $header;
    print $body;
?>


    <div id="main">
        <p>Francyzskii yazik</p>
    </div>
   
<?php
    print $footer;
?>


whats wrong? i tried with echo and return, same thing happens ;<
04-01-2007 02:25 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
simple php help - by Supersonicdarky on 04-01-2007 at 02:25 AM
RE: simple php help - by Nathan on 04-01-2007 at 02:31 AM
RE: simple php help - by NanaFreak on 04-01-2007 at 02:35 AM
RE: simple php help - by Supersonicdarky on 04-01-2007 at 02:38 AM
RE: simple php help - by Nathan on 04-01-2007 at 02:40 AM
RE: simple php help - by NanaFreak on 04-01-2007 at 02:46 AM
RE: simple php help - by Nathan on 04-01-2007 at 02:48 AM
RE: simple php help - by NanaFreak on 04-01-2007 at 02:50 AM
RE: simple php help - by Supersonicdarky on 04-02-2007 at 11:55 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On