faqts : Computers : Databases : MySQL : Utility : PHPRunner

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

PHPRunner: Internet: Page: Common: How create common footer and header page in PHPRunner? [super]

May 16th, 2005 02:20
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 16 May 2005 - 02:00 pm ------------------------

PHPRunner: Internet: Page: Common: How create common header and footer 
page in PHPRunner? [super]

---

The files

 superbottom.php

and

 supertop.php

are used to display header and footer on all generated PHP pages of
your current project.

---

You can put your own custom HTML, JavaScript or PHP code in these 
files.

---

You can then put this superbottom.php and supertop.php files in the
include folder of your project.

---

Note:

If you like these header and footer to be added to all generated php
projects automatically, you need to put these files in the directory:

 <your PHPRunner directory>\source\include

---

e.g.

 C:\Program Files\PHPRunner\source\include

===

Steps: Overview:

 1. -Create your project in PHPRunner

     1. -Build your project

         1. -This will create also a
             'include' subdirectory in
             the folder of your current
             project

 2. -Create a common header page

     1. -Use your favorite text editor
         (e.g. Notepad or TSE)

     2. -Create a file with name

          supertop.php

     3. -Add some source code to display

          e.g.

--- cut here: begin --------------------------------------------------

<table
  width="1000"
  border="2"
  align="center"
  cellpadding="5"
  cellspacing="0"
>
<tr>
<td>
<img
  src="yourPhoto.jpg"
  width="1000"
  height="50"
>
</td>
</tr>
<tr>
<td>

--- cut here: end ----------------------------------------------------

     4. -Save this file in the include directory of your project

          e.g. save as

"c:\Program Files\Apache Group\Apache2
\htdocs\PHPRunner\include\supertop.php"

          (you will have to adapt the path to the
           conditions on your computer)

 3. -Create a common footer page

     1. -Use your favorite text editor

     2. -Open a file with name

          superbottom.php

     3. -Add some source code to display

          e.g.

--- cut here: begin --------------------------------------------------

</td>
</tr>
</table>

--- cut here: end ----------------------------------------------------

     4. -Save this file in the include directory of your project

          e.g. save as

"c:\Program Files\Apache Group\Apache2
\htdocs\PHPRunner\include\superbottom.php"

          (you will have to adapt the path to the
           conditions on your computer)

 5. -If you now run your project, you
     will see that this information is
     now common on all displayed pages

 6. -If you upload your project using the inbuilt
     ftp server, you should enable radiobutton
     'Upload all files in the output directory'
     (otherwise your supertop.php and superbottom.php
      files will not be included in the upload)

---
---

Tested successfully on
PHPRunner v2.0 beta,
Microsoft Windows XP Professional (service pack 2),
running Apache v2,
PHP v5.0.3
MySql v4.1

---
---

Internet: see also:

---

Login screen created with PHPRunner with common header and footer
http://www.baaa.org/Alumni/login.php

---

Database: MySql: PHPRunner: Link: Can you give an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/35950/fid/1805

---

Super Bottom Includes
http://www.asprunner.com/forums/index.php?
s=429c2c017fb7647e05e7812db2e34c51&showtopic=1386

----------------------------------------------------------------------