View previous topic :: View next topic |
Author |
Message |
Monberg -
Joined: 13 Jun 2002 Posts: 2 Location: Denmark
|
Posted: Thu Jun 13, 2002 2:35 am Post subject: PHP Execution problems. |
|
|
Hi All.
I have this problem here, which i hope you can help me with:
When i run an PHP page with code, it works fine.
When i run an PHP page with the include option, it fails.
To see what i mean, try the folowing links:
www.monne.dyndns.org/counter.php (WMcounter which fails)
www.monne.dyndns.org/phptest.php (PHP info default)
Best regards, and hpe for help.
Kim Monberg, Denmark _________________ Signed by: Kim Monberg, DK |
|
Back to top |
|
|
TheLinker -
Joined: 05 Apr 2002 Posts: 165 Location: Oslo, Norway
|
Posted: Thu Jun 13, 2002 7:18 am Post subject: Re: PHP Execution problems. |
|
|
include in PHP works... make sure you have set all customized variables and paths accordingly to the WMCounter documentation... |
|
Back to top |
|
|
Monberg -
Joined: 13 Jun 2002 Posts: 2 Location: Denmark
|
Posted: Thu Jun 13, 2002 7:49 am Post subject: Re: PHP Execution problems. |
|
|
TheLinker wrote: |
include in PHP works... make sure you have set all customized variables and paths accordingly to the WMCounter documentation... |
I have done so, my Abyss config has the data path with 777 and i have made relative path to the data and the script storageplace. _________________ Signed by: Kim Monberg, DK |
|
Back to top |
|
|
TheLinker -
Joined: 05 Apr 2002 Posts: 165 Location: Oslo, Norway
|
Posted: Thu Jun 13, 2002 9:13 am Post subject: Re: PHP Execution problems. |
|
|
Monberg wrote: |
I have done so, my Abyss config has the data path with 777 and i have made relative path to the data and the script storageplace.
|
I downloaded the script and set Code: | $base_datapath = "/scripts/wmcounter/data"; |
I also created the script
Code: | <?
include("wmcounter.php");
$visitors = daily_count("","");
echo "Visitors today: ".$visitors[0]." from ".$visitors[1]." visitors, since ".$visitors[2];
?> |
Everything works like it should... The $base_datapath directory contains 2 datafiles created from the script, and the datafiles contains the counter data... |
|
Back to top |
|
|
TheLinker -
Joined: 05 Apr 2002 Posts: 165 Location: Oslo, Norway
|
Posted: Thu Jun 13, 2002 9:15 am Post subject: Re: PHP Execution problems. |
|
|
One thing about the $base_datapath . This is a directory location on your harddrive... it is not relative to any Abyss directory structures... |
|
Back to top |
|
|
|