Skin DyeVest designed by Zeus00 of the IF Skin Zone.


 

 Php Include, Requires a host that allows php!
Ramen
  Posted: Jun 9 2005, 07:53 PM


Forum Founder lol!
Group Icon

Group: Admin
Posts: 167
Member No.: 1
Joined: 27-March 05



This php "include" tag is one of the easiest of the php codes.

Here it is:
<? php include('filename.php'); ?>

First of all, this can be used to make your site easier to manage.
If you have alot of coding for your layout of your site, by putting the header, footer, and even the navigation on .php files (this "include" tag only works if the page is a .php) it makes editting easier.

Ok, if you don't know what the "include" tag does at all, I'll tell you. It is almost like a special little tag that tells the computer to add this .php page to the specific part where you put the tag.

So, if you have many pages on your site, just fill in and put the include tag in the area you want and whenever you want to edit a bit of the .php files that might contain navigation, footer, or header; all your pages with the include tag will also have the changes done.

Neat huh?


--------------------
user posted image

It's always the cute and fluffy things that are evil... always is...
Top
xillentz
Posted: Jul 5 2005, 08:17 AM


Unregistered









provide an example of the php plz, it sounds very interesting!
Top
Ramen
Posted: Jul 5 2005, 09:15 AM


Forum Founder lol!
Group Icon

Group: Admin
Posts: 167
Member No.: 1
Joined: 27-March 05



lol, i can't really show an example cause the view source of a php include page will be all the html (the stuff php "included" in the page and the html already in the page)


--------------------
user posted image

It's always the cute and fluffy things that are evil... always is...
Top
xillentz
Posted: Jul 5 2005, 06:17 PM


Unregistered









how about u upload a php file ~
Top
Devon
Posted: Mar 31 2006, 10:42 PM


1 post lol!
*

Group: Member
Posts: 1
Member No.: 61
Joined: 31-March 06



Also, do not use $_GET in the include.

If you did, people would inject so much stuff in your code.. It isn't funny.


--------------------
user posted image
Top


Topic Options



Hosted for free by InvisionFree (Terms of Use: Updated 7/7/05) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.3869 seconds | Archive

Affiliates

Apply!

Vote for Us!