SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: ssi in php
-
Jun 20, 2000, 12:15 #1
- Join Date
- May 2000
- Location
- London
- Posts
- 283
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
OK im planning to do my new site in php/mySQL.
i have a paid for stat tracking system which uses SSI.
Can i include the SSI in a php file?
Also - would someone be willing to give me a sort of step by step guide on how to run php/mySQL on my own PC, for testing purposes? is this possible even ?
[This message has been edited by James Smith (edited June 20, 2000).]
-
Jun 20, 2000, 12:43 #2
- Join Date
- Jul 1999
- Location
- Derbyshire, UK
- Posts
- 4,411
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yep running it on your own PC is possible, I recomend looking at the tutorial on SP at http://www.webmasterbase.com
As for the stats package, what line do you have to include in every page? If you post it then I will tell you what PHP you need to insert into your pages in place of the SSI.
------------------
Karl Austin
KDA Web Services
"Everyone has a photographic memory. Some just don't have film."
-
Jun 20, 2000, 12:49 #3
- Join Date
- May 2000
- Location
- London
- Posts
- 283
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
<!--#include virtual="/stats/stats.cgi"-->
thats the line
thanks mate
-
Jun 20, 2000, 13:35 #4
- Join Date
- Jul 1999
- Location
- Derbyshire, UK
- Posts
- 4,411
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I do believe the following code should work for you:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
virtual "/stats/stats.cgi";
[/code]
or if PHP is not an Apache module (i.e. It doesn't work or errors on you):
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
echo passthru "/stats/stats.cgi";
[/code]
If not then let me know, but I have used passthru before to do the same job.
------------------
Karl Austin
KDA Web Services
"Everyone has a photographic memory. Some just don't have film."
Bookmarks