+ Reply to Thread
Results 1 to 5 of 5

Thread: call a template and a text file together

  1. #1
    bnrj_sjy is offline x10Hosting Member bnrj_sjy is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    18

    call a template and a text file together

    I want to know that how can i call a template of php make and another file of a php make together to run at the same time.

    While browsing i have found a website that uses html to do that
    http://www.calcuttatelephones.com/ne...card2689.shtml

    please help me

  2. #2
    spadija's Avatar
    spadija is offline x10Hosting Member spadija is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    48

    Re: call a template and a text file together

    I'd love to help, but I can't really figure out what it is you want to do.

    If you're asking how to bring two php files together into one page, look up the "include" function. It lets you include the entire contents of another file in the current page. For example, if you created these pages in the same directory:
    Code:
    page1.php:
    
    <p>This is page 1.</p>
    Code:
    page2.php: 
    
    <p>This is page 2.</p>
    Code:
    page3.php: 
    
    <?php
      include 'page1.php';
      include 'page2.php';
    ?>
    When you view page3.php, you should see
    Code:
    <p>This is page 1.</p>
    <p>This is page 1.</p>
    If that didn't answer your question, could you try rephrasing it a little?

  3. #3
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: call a template and a text file together

    you will actually see

    Code:
    <p>This is page 1.</p>
    <p>This is page 2.</p>
    just a typo he made.

  4. #4
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: call a template and a text file together

    In the example mentioned, there is only one template loaded. However, we would help more if you would rephrase your question.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  5. #5
    bnrj_sjy is offline x10Hosting Member bnrj_sjy is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    18

    Re: call a template and a text file together

    what i meant to say is by the link
    calcuttatelephones.com/new-template.html?pg=/cdma_datacard2689.shtml

    u see the link
    here upto the portion .....template.html?pg= is remaining same for all the page
    what is changing is the rest of the portion cdma_datacard2689.shtml

    for every page u load only the end portion changes and template remains same but the content change

    i want to make a universal template and multiple files so that when the user click on a link like above the template remain same but the content changes

    and when user click on any other link template remains same but the content changes with the user click

    thanks a lot for the helps
    Last edited by bnrj_sjy; 09-16-2009 at 12:55 PM.

+ Reply to Thread

Similar Threads

  1. Default index file comes up?!! and not my template?
    By sksystems in forum Free Hosting
    Replies: 4
    Last Post: 02-03-2009, 05:02 AM
  2. Replies: 2
    Last Post: 11-01-2008, 09:48 PM
  3. Template: Venom (need comments)
    By IamShipon1988 in forum Graphics & Webdesign
    Replies: 12
    Last Post: 05-03-2007, 01:54 PM
  4. Converting a .RMVB file
    By SEŅOR in forum Off Topic
    Replies: 7
    Last Post: 06-19-2006, 02:20 PM
  5. [IPB] Contiguous Board Index
    By phenetic in forum Tutorials
    Replies: 5
    Last Post: 09-18-2005, 10:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers