PHP put page-specific text in header file

Hello!  I am creating a website, and I have created a header that includes a title bar (ALL of my pages are .php).  This code for the title bar is as follows: 
<div id="titlebar"><table style="margin:0 auto;"><tr><td>TEST</td></tr></table></div>
When I put this into each page I create, I use this:
<?php require("header.php"); ?>
What I WANT to do is replace "TEST" in my title bar code with a php code that allows me to put in specific titles (which could be Home, Contact, Merch, etc.) in my individual pages.  Is this possible, and if so, how?

OK, I deleted the table (I had used that when I first started making these pages, I was completely new to html, then learned css, and I'm just now tesing out php).  Works better than I thought it would.  Now, as far as everything else...  this is my website:  http://pcassistant.net  It's a band website, and ALL I'm using the php for is putting the header and footer on my page.  The top image, nav bar, and title bar are included in the header.php, the footer.php contains all normal footer info.  I'm doing this to help out with changing the info in both the header and footer ,that way I don't have to do it to every single page, just that file specifically.
My index.php code looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Home</title>
<link href="http://asc.pcassistant.net/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="wrap">
<?php require("header.php"); ?>
<div id="content">
<p>I STILL have no freakin clue what to put on this page.</p>
</div>
<?php require("footer.php"); ?>
</div>
</body>
</html>
My header.php looks as follows:
<html>
<body>
<div id="image"></div>
<div id="nav">
   <ul>
   <li><a href="http://asc.pcassistant.net/index.php">HOME</a></li>
   <li><a href="http://asc.pcassistant.net/music.php">MUSIC</a></li>
   <li><a href="http://asc.pcassistant.net/band.php">BAND</a></li>
   <li><a href="http://asc.pcassistant.net/merch.php">MERCH</a></li>
   <li><a href="http://asc.pcassistant.net/contact.php">CONTACT</a></li>
   </ul>
</div>
<div id="titlebar"><p>TEST</p></div>
<br>
</body>
</html>
If you looks as the website, every page displays "TEST" in the titlebar.  I want to be able to change this according to each page, but I want to keep the titlebar located in the header.php file.  These pages are in their very early stages, and there's TONS more info to put on the pages, and more pages to add, so I want to keep all changes required as simple as possible, hence using php.  With all that being said, is there a way to put in my titlebar in my header.php a php code to allow me to edit the title of each page individually.

Similar Messages

  • Missing header files when importing a shared library with labview 8.6?

    Hi all,
    I want to import a .dll into my .vi program but I am not able to do it...
    I have created the dll  following the ni website tutorial
    http://zone.ni.com/devzone/cda/tut/p/id/3303#toc2
    Once the dll has been created, I have tried to import it with
    Tools-Import-Shared Library(dll)
    After parsing the header file appears an error like this one:
    void __cdecl Zdmt(LVBoolean *stop, double P, char channelName[],
        TD1 *errorIn, TD14 *FFTOptions, TD12 *Calibration, char FileName[],
        int32_t minRecordLength, TD26 *InstrumentHandler, LVRefNum sessionRefArray[],
        LVRefNum *queueIN, TD1 *errorOut, LVBoolean *averagingDone,
        HWAVES LastRecordFetched, TD24 *Impedance, TD17 *ColeColeCluster,
        TD18 *FFTcluster, TD5 *InstrumentHandleOutputCluster, LVRefNum *queueOut,
        int32_t *Acquired, TD6 *FreqTimeInfoCluster, double *averagesCompleted,
        int32_t len);
    The following symbols are not defined:
    LVBoolean; int32_t; LVRefNum;
    Undefined symbols can prevent the wizard from recognizing functions and parameters. To correct this problem, check the header file to determine if you must add predefined symbols. Click the Back button to return to the previous page of the wizard to add a preprocessor definitionsl (for example, "NIAPI_stdcall = __stdcall" or "NIAPIDefined = 1").
    The following header file was not found in the specified header file or one of the referenced header files:
    -  extcode.h
    To fix, click the Back button to go to the previous page and add the header file path to the Include Paths list.
    I have replaced the first line #include "extcode.h" of the dll header file for #include "C:\Program Files\National Instruments\LabVIEW 8.6\cintools\extcode.h" that is the full path where the header file is located. However, new libraries seems to be missed:
    -  stdint.h
    -  MacTypes.h
    Does anybody know what I have to do??
    Any help will be really appreciated,
    Regards,
    Benjamin

    If you use any of the LabVIEW cintools headers, they reference other headers too. The import wizard is written in a way that it simply skips parsing datatypes that can not be resolved due to missing header files.  If your functions you want to import references such datatypes then you get an according error about any include files the wizard could not load, otherwise not. The wizard can not know which of the missing header files is the problem since it obviously doesn't know what would be in those header files.
    The LabVIEW cintools headers are multiplatform, meaning they evaluate various compiler predefined defines to determine which platform they are included in. The import library wizard does not define any specific defines, since it is not really a compiler. So you have to define them. And they get adapted with each new LabVIEW version to support new compilers and compiler versions, so the defines described in the link in the first post do not have to be correct for cintools headers in newer LabVIEW versions.
    All in all writing DLLs that interface to LabVIEW cintools headers should not be done by writing them and then importing them using the wizard but instead you should write the VI and create the Call Library Node, then let LabVIEW create a template C file from the context menu of the Call Library Node and copy that into your C sources and fill in the functions from there.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Shared library: function is not found and recognized in header file

    Hello,
    I am trying to use Java methods into LV. I am doing so by creating Java Invocation Interface, usind which I can call Java methods into C++ and then create a shared library that can be called into LV.
    When I am importing my shared library into Labview, I am getting the following error messages:
    The shared library contains 3 function(s). But no function is found and recognized in the header file. The following function(s) cannot be wrapped. If you want to import these functions, please review the warning messages next to the functions below. You will need to fix the problems before you can continue with the wizard.
    jclass invokeJavaClass(JNIEnv* jenv, string className);
    The following symbols are not defined:
    jclass;
    Undefined symbols can prevent the wizard from recognizing functions and parameters. To correct this problem, check the header file to determine if you must add preprocessor definitions. Click the Back button to return to the previous page of the wizard to add a preprocessor definitionsl (for example, "NIAPI_stdcall = __stdcall" or "NIAPIDefined = 1").
    The following header file was not found in the specified header file or one of the referenced header files:
    -  string
    -  iostream
    -  cstring
    -  jni.h
    To fix, click the Back button to go to the previous page and add the header file path to the Include Paths list.
     Please advise.
    Regards,
    H
    Attachments:
    SharedLibError.png ‏51 KB

    Hello Vivek,
    The LabVIEW dll that I am trying to import does not include any third-party device..all my code is fully based on LabVIEW. Maybe this helps you to guess what is happening: once I've parsed the dll' header appears an error
    like this one:
    void
    __cdecl Zdmt(LVBoolean *stop, double P, char channelName[],
        TD1
    *errorIn, TD14 *FFTOptions, TD12 *Calibration, char FileName[],
    int32_t minRecordLength, TD26 *InstrumentHandler, LVRefNum
    sessionRefArray[],
        LVRefNum *queueIN, TD1 *errorOut, LVBoolean
    *averagingDone,
        HWAVES LastRecordFetched, TD24 *Impedance, TD17
    *ColeColeCluster,
        TD18 *FFTcluster, TD5
    *InstrumentHandleOutputCluster, LVRefNum *queueOut,
        int32_t
    *Acquired, TD6 *FreqTimeInfoCluster, double *averagesCompleted,
    int32_t len);
    The following symbols are not defined:
    LVBoolean;
    int32_t; LVRefNum;
    Undefined symbols can prevent the wizard
    from recognizing functions and parameters. To correct this problem,
    check the header file to determine if you must add predefined symbols.
    Click the Back button to return to the previous page of the wizard to
    add a preprocessor definitionsl (for example, "NIAPI_stdcall =
    __stdcall" or "NIAPIDefined = 1").
    The following header file was
    not found in the specified header file or one of the referenced header
    files:
    -  extcode.h
    To fix, click the Back button to go to the
    previous page and add the header file path to the Include Paths list.
    I have replaced the first line #include "extcode.h" of
    the dll header file for #include "C:\Program Files\National
    Instruments\LabVIEW 8.6\cintools\extcode.h" that is the full path where
    the header file is located. However, new libraries seems to be missed:
    -  stdint.h
    -  MacTypes.h
    As far as I know,  Mactypes.h contains basic mac os data types and it doesn't have any relation with stdint.h...
    I have created both of them and stored into the same folder as extcode.h, but then other libraries are missed!!!
    Do you know if it would be possible to create the .dll generating all the header files associated for its data structures???
    And if this is not factible, then what do you suggest me? because I hope to not having to create all the header files until it stops giving me an error!
    thanks for four time,
    ben

  • Can I add specific text to Template via pop up text box on opening file?

    In most word processors it is possible to create a template that asks you for specific text when you open it, so that you can have the letter three quarters written within the template, and only need to replace names, addresses, date and so on.
    In Lotus WordPro for instance, before I even see the file, I have to fill in a dialogue box with the persons name, the subject of the letter, and four or five specifics unique to them. The WP then adds this info into the letter, and all I need do is to occasionally write a further full paragraph.
    How do I do this in Pages? I can't seem to find anyway to do it at all. I have a suspicion I might need Apple Script, but I'm not sure how I can do that. I have a book of how to code, but I don't know where to store the macro, nor to write it yet - the book's just there if I need it.
    I want to open the file, and then be asked one item at a time for the personalised answers to questions that occur in every report/letter.
    Any ideas?
    TIA
    Mac

    Thanks for your suggestions, Magnus, you really have had a good think for me - I appreciate that!
    What I am doing is report writing in which 90% of the report is the same for everyone. Except the cover page with Name and Address details, and Report title; the initial section which is the same for everyone except for specifics such as amount to invest, reason for investment, term to invest over, things like that.
    The end of the report is the recommendations section which is where I use freetext to create a bespoke solution - this cannot be automated.
    Just automating the cover page and the intro section save me huge amounts of time which I can then use on research and fund analysis, leaving the principles of investment section pretty much the same for everyone, as here I'm describing the principle and theory.
    After I created this Report Template my average report creation time went down from about 3 to 4 hours, to about 45 minutes. I guess the automation itself doesn't save as much time as the templating does, but it allows me to concentrate on the important bit and not worry if I have left something out - or in - that changes the overall thrust of the report.
    I cannot load Lotus WorpPro on Parallels, nor on Virtual PC, so the lack of automation really is a pain here. I see it as a weakness of Apple products for business, as I am sure Microsoft do which is why they have dropped VBA support for Office 2008.
    I have got NeoOffice as well as OpenOffice for Mac on my system, but really they aren't atable enough to use, and the formatting is pretty flaky. It certainly isn't completely consistent with Office itself.
    So, I am left with the conclusion that progress only means a reduction in features!
    But maybe I'm missing something?
    Mac

  • Header file entry for Text Channel

    I have taken an ASCII Text Data file, read the file, and created a Header File, then saved the data into a binary file. This is my attempt to speed up the loading of the text file. One of the columns is a text column, containing a flag for the state of the test. I can not figure out how to define the column as a Text Column in the Header File. If I define it as a numeric column, it returns an error for every entry in the data file. Normal (one of the states) is not a Numeric Value.
    The script file(s) I am using is a modification of a script listed on this board by Brad Turpin ( TimeSlice DAT Hdr Create.zip ) The only thing I have changed is the Test for the Channel Name to see if it contains on of 3 states. If Date is present in the Channel Name , it changes the field to a Time channel, if the channel contains Relay it changes it to a Text channel (which doesn't work), else the Channel is a Numeric.
    There must be a way to define a Text Channel in a Header File. I hope someone can show me the way.
    Thanks
    Bill Lane
    Test Engineer
    Takata, INC.

    Hello Bill!
    The DAT format was never able to store text channels (TDM is able today). Please refer to the DAT format description on your DIAdem CD or in this post.
    Your idea to convert it to a numeric value is the right way. The error message must come out of the header. Do you convert all properties to numeric values? See page 4-6 and following in the header description or search for the word 'normal' in the created header file.
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • I exported my bookmarks to do a clean install, but now my exported file is nothing but pages of text. How can i retrieve my bookmarks?

    I backed up my firefox bookmars, and the file that came out of it is no specific file type. Even in the properties, it just says "File type: File".
    So now i'm trying to restore my bookmarks, but I can't open that file. If i try opening the file itself with firefox or any other browser for that matter, I get long pages of text. It does contain my bookmarks, but it's really hard to read. What can i do to fix this?

    That is a JSON backup.<br />
    You need to rename the file and add a .json (lowercase) file extension to make Firefox recognize the file as a JSON backup.
    *Bookmarks > Show All Bookmarks > Import & Backup > Restore > Choose File
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
    Note that restoring a JSON backup will replace all existing bookmarks.

  • How to create column header text while downloading file

    How can we create column header text while downloading file using function GUI_DOWNLOAD(in SAP Release 4.6c) because there is no FIELDNAMES parameter in
    4.6c version.

    Hii,
      Check this sample code. I have called GUI_DOWNLOAD twice. Onetime to download header of table and next time data of table
    REPORT  z_file_download.
    DATA: w_name(90) TYPE c.
    DATA:
      BEGIN OF fs_flight,
        carrid   LIKE sflight-carrid,
        connid   LIKE sflight-connid,
        fldate   LIKE sflight-fldate,
        price    LIKE sflight-price,
        currency LIKE sflight-currency,
      END OF fs_flight.
    DATA:
      BEGIN OF fs_head,
        carrid(10) TYPE c,
        connid(10) TYPE c,
        fldate(10) TYPE c,
        price(10) TYPE c,
        curr(10) TYPE c,
      END OF fs_head.
    DATA:
      t_head LIKE
       TABLE OF
             fs_head.
    DATA:
      t_flight LIKE
         TABLE OF
               fs_flight.
    fs_head-carrid = 'CARRID'.
    fs_head-connid = 'CONNID'.
    fs_head-fldate = 'FLDATE'.
    fs_head-price  = 'PRICE'.
    fs_head-curr   = 'CURRENCY'.
    APPEND fs_head TO t_head.
    SELECT-OPTIONS:
      s_carrid FOR fs_flight-carrid.
    START-OF-SELECTION.
      SELECT carrid
             connid
             fldate
             price
             currency
        FROM sflight
        INTO TABLE t_flight
       WHERE carrid IN s_carrid.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                  =
        filename                      = 'D:\flight.xls'
       FILETYPE                      = 'ASC'
    *   APPEND                        = ' '
        WRITE_FIELD_SEPARATOR         = 'X'
    *   HEADER                        = '00'
    *   TRUNC_TRAILING_BLANKS         = ' '
    *   WRITE_LF                      = 'X'
    *   COL_SELECT                    = ' '
    *   COL_SELECT_MASK               = ' '
    *   DAT_MODE                      = ' '
    *   CONFIRM_OVERWRITE             = ' '
    *   NO_AUTH_CHECK                 = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   WRITE_BOM                     = ' '
    * IMPORTING
    *   FILELENGTH                    =
      tables
        data_tab                      = t_head
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22
    IF sy-subrc NE 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'D:\flight.xls'
          filetype                = 'ASC'
          append                  = 'X'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t_flight
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc EQ 0.
        MESSAGE 'Download successful' TYPE 'I'.
      ENDIF.
      IF sy-subrc NE 0.
    *  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    Abhijeet

  • How to get the source code of an HTML page in Text file Through J2EE

    How to get the source code of an HTML page in Text file Through J2EE?

    Huh? If you want something like your browser's "view source" command, simply use a URLConnection and read in the data from the URL in question. If the HTML page is instead locally on your machine, use a FileInputStream. There's no magic invovled either way.
    - Saish

  • How to get the source code of an HTML page in Text file Through java?

    How to get the source code of an HTML page in Text file Through java?
    I am coding an application.one module of that application is given below:
    The first part of the application is to connect our application to the existing HTML form.
    This module would make a connection with the HTML page. The HTML page contains the coding for the Form with various elements. The form may be a simple form with one or two fields or a complex one like the form for registering for a new Bank Account or new email account.
    The module will first connect through the HTML page and will fetch the HTML code into a Text File so that the code can be further processed.
    Could any body provide coding hint for that

    You're welcome. How about awarding them duke stars?
    edit: cheers!

  • How to search specific text/string in pdf files from command prompt?

    Hi,
    How to search specific text/string in pdf files from command prompt?
    Will be great if you can refer to any adobe provided command base utility to achieve the above target.
    Best Regards,

    You can't. The commandline parameters for Acrobat and Adobe Reader do not allow any type of commands to be run.

  • When I save a Word 2010 doc as a pdf file, it opens up in Adobe Reader as a blank page, no text, no background etc.

    When I save a Word 2010 doc as a pdf file, it opens up in Adobe Reader as a blank page, no text, no background etc.  I am logged on as the Administrator, running Windows 7, using Microsoft Home and Business 2010.

    You were right, it was a Microsoft problem.
    I got it...I am now able to save a Word 2010 document as a pdf file.  Here is what I did/found:
    In Word, go to File, Options, Display and make sure that "Print drawing created in word" is CHECKED.
    Mine was unchecked and when I checked it everything came back and is working as it did before.  The only thing I can think of is that a Microsoft Update may have changed this selection...I know I DID NOT make any changes in the options.
    One other thing I noticed in my saved documents folders was that a lot of my files showed up as PDF's and would still not open until I selected one and told it to default to open as a word document and then they all changed back and I was able to open them in word again.
    I hope this helps others out there.

  • I cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    i cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    Chester31,
    Thank you very much for sharing your file with us!  Now that we are able to reproduce the problem at our end, you may stop sharing the file on Acrobat.com.
    Do you know when this problem (for not being able to add new highlight/strikeout/underline) has started?  Did you update your iOS from 7.x to 8.0 recently?
    We will continue investigating the problem and let you know what we find.
    Thank you again for your help.

  • HT4168 When I export a pages document as an ePub file the result is a blank locked text edit file on my desk top not an ePub file as previously no problem creating. How do I fix? HHD

    WHenWhen I export a pages document as an ePub file the result is a blank locked text edit file on my desk top not an ePub file as previously no problem creating. How do I fix? HHD

    Try adding .epub to the end of the name.
    I assume you are aware that to open an .epub file you need a special app, not TextEdit or Pages, right?

  • Building PHP 5.2.5 and MySQL (Cannot find MySQL header files under /usr.)

    Hi,
    we are in big trouble here. On Mac OS X 10.4 it was no problem building PHP with additional modules. Unfortunately it´s not working this time.
    This is the error message i got when building php:
    checking for mSQL support... no
    checking for MSSQL support via FreeTDS... no
    checking for MySQL support... yes
    checking for specified location of the MySQL UNIX socket... /var/mysql/mysql.sock
    checking for MySQL UNIX socket location... /var/mysql/mysql.sock
    configure: error: Cannot find MySQL header files under /usr.
    Note that the MySQL client library is not bundled anymore!
    Looks like some libs are missing?!
    find / -iname 'libmysqlclient*'
    That doesn´t helper neither. No results.
    Any idera what´s wrong here?

    the php in 10.5 uses extensions, you do not need to rebuild php to get mssql to work..
    Take a look at http://downloads.topicdesk.com/docs/AddingGD2_to_PHP_on_OS_X_Server_10_5Leopard.pdf
    as you can see in that example GD is built separately, mssql is the same.. do a google search on mssql.so and you will find a bunch of info (most of it is for linux but you should be able to get the info to work)

  • It is possible to put an icon&text on the table�s header of JTabbedPane?

    Hi
    It is possible to put an icon&text on the table�s header of JTabbedPane?
    Tx
    D

    its not what i'm looking for.
    maybe its a JTabbedPane at all. if yuo know the Emule interface,it seems like all the comnents Connect,Servers,Transffers,etc they all like a combination of a jTogglebuttn and a JTabbedpane.
    can it be a JToolBar and JToggle buttons in it,that has an event that changh the content of the JFrame?
    Tx
    D

Maybe you are looking for

  • Satellite A500-19x - Suddenly blue screen appears in Windows 7

    I have satellite a500-19x, There are one problem every time and every days when i working. Suddenly the windows stopped for several moments then blue screen and restart windows .

  • Spotify UI needs to be more condensed, not more like iTunes

    I would like the search results to show up as in the old UI-design. The new UI-design is horrible, beside the point that Spotify is starting to look more and more like iTunes for no good reason. It all comes down to wasted screen real estate. First o

  • Mavericks (10.9.5) File Sharing Speeds are awful over Gigabit

    I was recently hired at a small design business and we have 3 iMacs (late 2011) and a Mac Mini (Late 2012) that frequently need to share files. We are all attached via Gigabit LAN which is verified when I open Network Utility on any of the computers

  • Activation Server unavailable?

    I'm getting an error message upon activation. "Activation Server Unavailable". Anyone else have this issue currently? Called customer service and was told to try again in a few hours. It will be a full 24 hours that it's been down in just a few more

  • Why won't my stereo play AirTunes?

    I recently purchased a second AirPort Extreme to place in my living room so that I can play AirTunes off of my living room stereo (A JVC Compact Component System -- about 5 years old). I have both Airport's networked successfully -- the green lights