Coverting SSI to PHP
Moderator: General Moderators
-
tdnetworks
- Forum Newbie
- Posts: 2
- Joined: Mon Jan 06, 2003 5:27 pm
- Location: Atlanta, GA, USA
- Contact:
Coverting SSI to PHP
Does anyone know a simple way to make all my SSI pages PHP? I'm very new to PHP but want to have it on my website instead of SSI.
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
-
tdnetworks
- Forum Newbie
- Posts: 2
- Joined: Mon Jan 06, 2003 5:27 pm
- Location: Atlanta, GA, USA
- Contact:
- Shinmeiryu
- Forum Commoner
- Posts: 29
- Joined: Wed Nov 13, 2002 2:57 am
This is the way you include files in php.
Code: Select all
<?php
include("file.ext");
?>- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Just a slight adjustment to Shinmeiryu's example, when using include() or require() parenthesis are uneccessary so this:
can be simplified to this:
Check the manual for more examples.
Mac
Code: Select all
<?php
include("file.ext");
?>Code: Select all
<?php
include 'file.ext';
?>Mac