|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Dec 2001
Location: SoCal
Posts: 1,651
|
Php Question
Is it possible to include a php script in an html page? If so, what's the command to include it?
|
|
|
|
|
|
#2 |
|
Too lazy to set a custom title
Industry Role:
Join Date: May 2003
Location: icq: 71462500 Skype: Jupzchris
Posts: 27,880
|
dont you jsut embed it like you would html?
i dunno
__________________
[email protected] |
|
|
|
|
|
#3 |
|
Old school
Industry Role:
Join Date: Nov 2002
Location: Kettering, OH
Posts: 4,327
|
depends on your server config.
you could img src it tho
__________________
Need a programmer? (Desktop/Web Applications) --- Skype: napoleande |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Nov 2002
Location: Valencia, CA
Posts: 2,906
|
shtml
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Jul 2002
Location: Bay Area
Posts: 4,012
|
you can always parse your html to read as shtml
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Feb 2002
Location: Florida
Posts: 672
|
If you want it on client side: No
You can put javascript or (in the case of Internet Exporer) vbscript, but not php.
__________________
- this space intentionally left blank - |
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: Dec 2001
Location: SoCal
Posts: 1,651
|
Yeah, I know I can just change it to shtml and include it that way, but I don't really want to do that because my page is doing well with SEs. I don't know if changing the extention will screw that up. Anyone know?
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Dec 2004
Location: New Orleans, LA
Posts: 839
|
YES.
Change yourpage.html to yourpage.php and add the script. It's that easy. |
|
|
|
|
|
#9 |
|
holla
Join Date: Jul 2003
Location: KFC
Posts: 11,769
|
PHP Code:
|
|
|
|
|
|
#10 | |
|
Confirmed User
Join Date: Dec 2001
Location: SoCal
Posts: 1,651
|
Quote:
|
|
|
|
|
|
|
#11 | |
|
Confirmed User
Join Date: Dec 2001
Location: SoCal
Posts: 1,651
|
Quote:
|
|
|
|
|
|
|
#12 |
|
Confirmed User
Join Date: Aug 2002
Posts: 1,504
|
I'm no developer, but I know we do this quite frequently for tracking code insertion. I just asked our developer for a brief rundown:
<TonyMontana> off topic <TonyMontana> what's the preferred way to embed php in html? <TonyMontana> whilst keeping the .html extension <geek> use .htaccess or configure httpd.conf to parse .html as php, <geek> and the embed part <geek> <body><?php // phpstuff to do whatever ?></body> I hope this helps. |
|
|
|
|
|
#13 |
|
So Fucking Banned
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
|
AddHandler php-script .php .html
|
|
|
|