The Home of Learning
 
Home­Portal­Gallery­FAQ­Search­Memberlist­Usergroups­Register­Log in
Share | 
 

 Make a website using php

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


Posts: 13
Join date: 2008-10-28

PostSubject: Make a website using php   Tue Oct 28, 2008 6:57 pm

Please look at type 2 make a website before you go on.

if you know the php code is
Code:
<?php ?>


So how to include files into the same page using php?

here is how.

All you need is to create a folder of any name and create a txt or php document using notepad or evrsoft.
I think notepad is better for php editing.

for example my txt/php file is named 'home.txt' and I want to include in into my homepage as text, all I need to do is insert this code.
Code:
<html>
<head>
<title>homepage</title>
</head>
<body>
<?php include 'home.txt'; ?>
</body>
</html>


and it is done.

You can include as many files as you like. But it mostly only allows include php/txt files and not the other types.
Back to top Go down
View user profile http://projectpsle.subject-line.com
 

Make a website using php

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
ProjectPSLE :: Post PSLE 2008 :: Tutorial Zone-