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?
include 'project_start.php';

These two pages use the same php to make the page headers.

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

File 1 - Products page:
include 'page_header.php';

//rest of the products page

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

//rest of the  Create/Delete Classes page

File 3 - Header portion of both pages:
//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:Code Style - PHPDoc: @param description in same line AND a blank line before the @return-block
Goto Forum:

Current Time: Sat Feb 04 23:29:27 GMT 2023

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

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

Back to the top