FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

add php file to html file

 


GamersforGod
as the title says i have a script for my site that is a stat counter but it says i have to take one file and put it before the <html> on my page and then another one later on for where i put my layers at how do i do this
misterdimiz
probably you have to rename your .html file in .php.
than you have to include the external.php file

Code:
<? include "external.php" ?>


if it isn't, please post more specs.
Antoine_935
mmmh, does really include work without () ? so include("external.php"); ?
I've never tried it out, does it work ?
misterdimiz
Antoine_935 wrote:
mmmh, does really include work without () ? so include("external.php"); ?
I've never tried it out, does it work ?


I usually use without () and it works.
Antoine_935
ah. good to know Wink thanks !
Richous05
Ok if your using frontpage make sure the text pointer in the space you want then go to insert file on the drop down select all files and then find your php file and press ok! Simple

Last edited by Richous05 on Sun Oct 30, 2005 5:10 pm; edited 1 time in total
abone
Surprised
Thanks for your efforts.This information is really useful for me. Cool
Richous05
I think this is the right decision

-Closed-
dandelion
Antoine_935 wrote:
mmmh, does really include work without () ? so include("external.php"); ?
I've never tried it out, does it work ?

Yes, it does. The include() is not a function, but statement - so it can be used without brackets. The require(), include_once(), require_once() as well.
Related topics

How to change extension php to html but the php script still
send variable from php tp php file
including javascript in php file
Difference between PHP and HTML docs
Cron jobs - running a php file

[PHP doubt]Knowing the directory location of PHP file
is there any way to trigger a .php file without refreshing?
Uploading a .php file! NEED HELP thanks
User Viewing A PHP File
Limiting php file functions with .htaccess

Remote php file access and reading
How to upload a file via html-form and php?
cannot add data to mysql from PHP form
PHP Toturail
How To : Improve Your PHP Programming
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.