FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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
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
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
How to change extension php to html but the php script still
User Viewing A PHP File
send variable from php tp php file
Limiting php file functions with .htaccess
Remote php file access and reading
including javascript in php file
Hide PHP file extension
Common IDE Platform for PHP, CSS, HTML and Specially JQuery
[TuT]JOOMLA Installation Guide(Easiest Way)
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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