rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: AlexPebody on January 27, 2009, 05:28:10 AM

Title: counter
Post by: AlexPebody on January 27, 2009, 05:28:10 AM
Hi again! Please help add counter...,
how make add local counter php script in HFS?
Title: Re: counter
Post by: rejetto on January 27, 2009, 02:14:44 PM
please start a new topic when you ask something totally different.

php doesn't work in HFS, sorry.
Title: Re: counter
Post by: AlexPebody on January 28, 2009, 07:32:03 AM
please start a new topic when you ask something totally different.

php doesn't work in HFS, sorry.

OK! :) But HFS server work on php? Maybe i compile script in open surce HFS?
Counter very need, bekose HFS server in LAN server, not to Internet...

have any chance? :)
Title: Re: counter
Post by: TSG on January 28, 2009, 08:42:21 AM
What sort of counter? I'm sure HFS counts hits and all that for the local network... mine does...
Title: Re: counter
Post by: AlexPebody on January 28, 2009, 01:07:32 PM
What sort of counter? I'm sure HFS counts hits and all that for the local network... mine does...
I want add my local php script of counter in bottom screen of HFS,
HFS check all counter in shared dir and files, but i have other counter on php! :)

How make added this in hfs script, *.tpl or other files?
Title: Re: counter
Post by: TSG on January 28, 2009, 01:16:23 PM
Oooh. So you have your HFS on a server also running PHP? You would need to store the value of your other counter into a .txt file or something and then grab it using macro somehow.... We use this following macro to check if a build of our template is current.

To grab and set the varaible: {.set|new_build|{.load|http://rawr-designs.com/updater.php?project=tog&ext=.txt.}.}   

To print the variable: {.^new_build.}
Title: Re: counter
Post by: AlexPebody on January 28, 2009, 05:21:17 PM
Oooh. So you have your HFS on a server also running PHP? You would need to store the value of your other counter into a .txt file or something and then grab it using macro somehow.... We use this following macro to check if a build of our template is current.

To grab and set the varaible: {.set|new_build|{.load|http://rawr-designs.com/updater.php?project=tog&ext=.txt.}.}   

To print the variable: {.^new_build.}

Thank you very match, but i need know, how make include php script in HFS
and run this script? I have some counters in php script, i want added this in to HFS,
olease help for my problem... Counter script LOCAL, if i using site HFS in Internet,
i take any counters and added html code in to the *.tbl, but i have LOCAL php counter
script... Like this: http://sibradio.ru/phpro/counter/info.php on my site: http://sibradio.ru/
counter name: WR Log... see? :):)
Title: Re: counter
Post by: MarkV on January 28, 2009, 06:40:40 PM
You can't include PHP in HFS, HFS doesn't support PHP. You'd have to install an additional server with PHP support.
Title: Re: counter
Post by: AlexPebody on January 29, 2009, 02:42:54 AM
You can't include PHP in HFS, HFS doesn't support PHP. You'd have to install an additional server with PHP support.

Yes, i understand... :(

Thanks all!
Title: Re: counter
Post by: rejetto on January 29, 2009, 10:42:33 AM
if you need HFS to run a php web application, you can't.

if you need HFS to include the result of a php web application hosted on another web server (may it be on your PC or over the internet), you can use {.load.}

if you need HFS to run a php shell script, you can use {.exec.}, provided you installed the php.exe as i did.

i think these are all possible cases.