View Single Post
  #1 (permalink)  
Old 01-17-04, 02:47 PM
kappler0's Avatar
kappler0 kappler0 is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
problem with php script

Hi - I was trying to use the script - AudiStat - on our site for web
statistic reporting - it works fine on all main folder pages - except when
we try to add the code to our phpMydirectory index page. Any assistance is
appreciated. Thanks

The directory is in a separate folder, here is the basics: ( view the
reporting at www.cablingassist.com/stats )

location of Audistat: cablingassist.com/stats
location of page not reporting: cablingassist.com/directory/index.php

The code instructed to place at the end of all php pages is: <?php
require($REDIRECT_HOMEDIR . "stats/stats.php"); ?>

<?php require($REDIRECT_HOMEDIR . "stats/stats.php"); ?> gives no
reporting at all and seems to do nothing
<?php require($REDIRECT_HOMEDIR . "../stats/stats.php"); ?> gives a
Can't select database : $!

Thanks again...
Scott
Reply With Quote