|
|
#1 (permalink) |
|
Surpass Staff
Joined in May 2003
Lives in Orlando
23,929 posts
Gave thanks: 904
Thanked 769 times
|
PHP code inside of HTML pages
PHP code inside of html pages will only work if the file is named with a php file
extension (filename.php and not filename.html). You will have to edit other pages that link to filename.html to reflect the php extension change.
__________________
Have you ever want to draw a windmill, and after that animate it? No problem!
|
|
|
|
|
|
#2 (permalink) |
|
Surpass Fan
Super #1
Joined in Aug 2004
Hosted on SH58
1,687 posts
Gave thanks: 6
Thanked 7 times
|
or just change .htaccess (add the following line)
Code:
AddHandler application/x-httpd-php html
__________________
- Evan Charlton | [site] | Server - SH58 |
|
|
|
| This user thanks Kickersny.com for this great post! | Shirubia (May 2nd, 2008) |
|
|
#4 (permalink) | |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
|
Quote:
__________________
Nobody doing nothing |
|
|
|
|
|
|
#6 (permalink) | |
|
Surpass Fan
Super #1
Joined in Aug 2004
Hosted on SH58
1,687 posts
Gave thanks: 6
Thanked 7 times
|
Quote:
__________________
- Evan Charlton | [site] | Server - SH58 |
|
|
|
|
| This user thanks Kickersny.com for this great post! | Shirubia (May 2nd, 2008) |
|
|
#7 (permalink) |
|
Registered User
Seasoned Poster
Joined in May 2003
Lives in LI, NY
Hosted on Pass 46
38 posts
Gave thanks: 0
Thanked 0 times
|
Kickersny, thank you. All my HTML pages have some sort of PHP include in them, and when I first read this thread, I thought, "oh crap..." I thought from the description of PHPsuexec that we wouldn't be able to use .htaccess to modify the behavior of PHP in Apache. Glad to see I was wrong!!!
And even if you have drag us old-school web guys into the secure future, I'm glad Surpass is making this effort. A couple of folks I know were getting hit with PHP scripts that did all sorts of nasty things to their sites. I was worried about this happening in my own webspace, but you look like you're on top of it. Thanks! ![]()
__________________
I doubt it. Server: Pass 46 |
|
|
|
|
|
#8 (permalink) |
|
Surpass Staff
Joined in May 2003
Lives in Orlando
23,929 posts
Gave thanks: 904
Thanked 769 times
|
MacP, thanks for dropping by, glad we could help. Your site is looking cool as ever.
![]()
__________________
Have you ever want to draw a windmill, and after that animate it? No problem!
|
|
|
|