Forum Moderators: coopster

Message Too Old, No Replies

A simple Question About PHP

         

J_n_b

4:24 pm on Mar 14, 2006 (gmt 0)

10+ Year Member



Hi,
Say i have a PHP script for a newsletter and i want to integrate it into my page. If i add a little bit of PHP code into my site for users to sign up, do i have to have an extension of .php or can i keep .htm (as Frontpage doesnt support .php) If it does, is there anyway around it (maby by using FP include or something)

Thanks!
Jacob

Elijah

4:33 pm on Mar 14, 2006 (gmt 0)

10+ Year Member



Very possible.

See these posts:

How do you get html to parse as php
[webmasterworld.com...]

parse php as html - helpless for newbie:
[webmasterworld.com...]

Parsing PHP with HTML file extension
[webmasterworld.com...]

PHP, HTML & .htaccess
[webmasterworld.com...]

J_n_b

4:34 pm on Mar 14, 2006 (gmt 0)

10+ Year Member



I don't know if that's right.

I mean like im in Front Page and i add a bit of php in there. So its like
<html>
<head>
</head>
<body>
*PHP CODE*
</body>
</html>

Could i then make the extension to that page .html?

benihana

4:44 pm on Mar 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



yes, but it depends on your server knowing to parse the html as php.

J_n_b

4:48 pm on Mar 14, 2006 (gmt 0)

10+ Year Member



Ok, so i can but i need to have a look at the topics posted to see how. Thanks guys!