Quick PHP Question
- Started
- Last post
- 9 Responses
- -scarabin-
if i put a php ssi in an html page, do i have to change the suffix .html to .php for it to be processed?
i just installed shortstat to monitor my site traffic and i'm instructed to place an ?php tag include into each page... i'm just wondering if this is just for .php pages or what
- UndoUndo0
depends what the php file is doing. if it has functions you want to execute then yr page would need to be php, but if it is generating html then no. yr html page would get the output from the include. basically if a php page is included from a server that runs php it will be processed on the remote server and the output passed through
- -scarabin-0
this is the tag:
(?php @include_once($_SERVER["DOCUMENT... ?)
- UndoUndo0
inc.stat s.php < this file is on yr server? Is yr server php enabled?
- -scarabin-0
yeah, that's the app i installed to monitor my stats
- UndoUndo0
as long as yr server is php enabled it should be fine. it will probably push out some html that fetches a file from yr server or another server to record info from the user. You will have to place it in the right part of the page tho. but i'm sure yr aware of that
:)
- -scarabin-0
hmm, it looks like it's only counting the php pages i put the tag on
that's weak
- UndoUndo0
yeah you will need to include it into every page you want monitoring. use find and replace in DW, it will do it for every page on the site.
- -scarabin-0
thanks for your help undo, as always :)
- UndoUndo0
no problem :)