Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to include a file to a php page?
How to include a file to a php page? [message #1756513] Sat, 18 March 2017 09:50 Go to next message
mohan rawat is currently offline mohan rawatFriend
Messages: 1
Registered: March 2017
Junior Member
How to include a file to a php page?
Re: How to include a file to a php page? [message #1759974 is a reply to message #1756513] Thu, 20 April 2017 15:54 Go to previous message
Dan Allen is currently offline Dan AllenFriend
Messages: 14
Registered: April 2017
Junior Member
Do you mean like this?
<?php
include 'project_start.php';


Example
These two pages use the same php to make the page headers.
index.php/fa/29096/0/


To use include for that, you could have these three files:

File 1 - Products page:
<?php
$page_name="products";
include 'page_header.php';

//rest of the products page




File 2 - Create/Delete Classes page:
<?php
$page_name="create/delete classes";
include 'page_header.php';

//rest of the  Create/Delete Classes page




File 3 - Header portion of both pages:
<?php
//everything for header goes here.





[Updated on: Fri, 21 April 2017 01:20]

Report message to a moderator

Previous Topic:Eclipse Neon.3 Xdebug does not stop @ breakpoint in php in other folder
Next Topic:HTML Tags in PHP Files
Goto Forum:
  


Current Time: Thu Nov 15 11:13:12 GMT 2018

Powered by FUDForum. Page generated in 0.02347 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top