PHP Execution problems.

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Monberg
-


Joined: 13 Jun 2002
Posts: 2
Location: Denmark

PostPosted: Thu Jun 13, 2002 2:35 am    Post subject: PHP Execution problems. Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website ICQ Number
TheLinker
-


Joined: 05 Apr 2002
Posts: 165
Location: Oslo, Norway

PostPosted: Thu Jun 13, 2002 7:18 am    Post subject: Re: PHP Execution problems. Reply with quote

Monberg wrote:

www.monne.dyndns.org/counter.php (WMcounter which fails)
www.monne.dyndns.org/phptest.php (PHP info default)

include in PHP works... make sure you have set all customized variables and paths accordingly to the WMCounter documentation...
Back to top View user's profile Send private message Visit poster's website
Monberg
-


Joined: 13 Jun 2002
Posts: 2
Location: Denmark

PostPosted: Thu Jun 13, 2002 7:49 am    Post subject: Re: PHP Execution problems. Reply with quote

TheLinker wrote:
Monberg wrote:

www.monne.dyndns.org/counter.php (WMcounter which fails)
www.monne.dyndns.org/phptest.php (PHP info default)

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 View user's profile Send private message Send e-mail Visit poster's website ICQ Number
TheLinker
-


Joined: 05 Apr 2002
Posts: 165
Location: Oslo, Norway

PostPosted: Thu Jun 13, 2002 9:13 am    Post subject: Re: PHP Execution problems. Reply with quote

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 View user's profile Send private message Visit poster's website
TheLinker
-


Joined: 05 Apr 2002
Posts: 165
Location: Oslo, Norway

PostPosted: Thu Jun 13, 2002 9:15 am    Post subject: Re: PHP Execution problems. Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group