Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Print
Topic: Passing html pages threw the php parser?  (Read 440 times)
« on: January 25, 2008, 09:01:31 AM »
diablo416 Offline
Newbie

View Profile
*
Posts: 7



Hello,

im trying to include some php scripts to be called from my index.html page,
im using <?php include(...); ?> but it isnt working? why is this ? is their any way to set up the server to pass my html pages threw the php parser?

thanks in advance
Report to moderator   Logged

 
« Reply #1 on: January 25, 2008, 10:38:26 AM »
chickenmeister Offline
master of chickens
Global Moderator
Member

View Profile WWW
*****
Posts: 220



the php include function should work. But if you want to use php in one of your pages, you have to make sure that that files name ends with .php. So if you want to use php in your index page, name it index.php instead of index.html.
Report to moderator   Logged

Hello world!
« Reply #2 on: February 09, 2008, 10:00:37 PM »
Atrain Offline
Newbie

View Profile WWW
*
Posts: 34



not to be an asshole but duh. If your going to use php, make ur file .php. If your going to use html make it. html, or .htm. If your going to make your page with javascript, make it .js. And so on.
Report to moderator   Logged
 
Pages: [1]
Print
Jump to:  

Powered by SMF | SMF © 2006-2008, Simple Machines LLC