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
add php file to html file
probably you have to rename your .html file in .php.
than you have to include the external.php file
if it isn't, please post more specs.
than you have to include the external.php file
| Code: |
| <? include "external.php" ?> |
if it isn't, please post more specs.
mmmh, does really include work without () ? so include("external.php"); ?
I've never tried it out, does it work ?
I've never tried it out, does it work ?
| 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.
ah. good to know
thanks !
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
Last edited by Richous05 on Sun Oct 30, 2005 5:10 pm; edited 1 time in total
Thanks for your efforts.This information is really useful for me.
I think this is the right decision
-Closed-
-Closed-
| 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
