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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-01-2004, 10:30 PM   #1
Houdini
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?
Houdini is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:30 PM   #2
Chris
Too lazy to set a custom title
 
Chris's Avatar
 
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]
Chris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:33 PM   #3
Napolean
Old school
 
Napolean's Avatar
 
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
Napolean is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:33 PM   #4
Warden
Confirmed User
 
Join Date: Nov 2002
Location: Valencia, CA
Posts: 2,906
shtml
__________________
AIM: ZeeRiddler
ICQ: 128160005
Warden's MS
Warden is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:33 PM   #5
arial
Confirmed User
 
arial's Avatar
 
Join Date: Jul 2002
Location: Bay Area
Posts: 4,012
you can always parse your html to read as shtml
arial is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:36 PM   #6
Cogitator
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 -

Last edited by Cogitator; 12-01-2004 at 10:37 PM..
Cogitator is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:37 PM   #7
Houdini
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?
Houdini is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:42 PM   #8
The Apprentice
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.
The Apprentice is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:42 PM   #9
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
PHP Code:
<script type="text/javascript" src="http://www.makesomecash.net/include.php"></script>
is a script im using
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:45 PM   #10
Houdini
Confirmed User
 
Join Date: Dec 2001
Location: SoCal
Posts: 1,651
Quote:
Originally posted by brizzad
PHP Code:
<script type="text/javascript" src="http://www.makesomecash.net/include.php"></script>
is a script im using
Thanks, I'll try that.
Houdini is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:49 PM   #11
Houdini
Confirmed User
 
Join Date: Dec 2001
Location: SoCal
Posts: 1,651
Quote:
Originally posted by The Apprentice
YES.


Change yourpage.html to yourpage.php and add the script.

It's that easy.
The whole point is to keep it an .html page.
Houdini is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:54 PM   #12
frankfortuna
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.
frankfortuna is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 11:10 PM   #13
JSA Matt
So Fucking Banned
 
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
AddHandler php-script .php .html
JSA Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.