Running PHP script on all Websites

Rowdy

New member
Joined
Jan 5, 2010
Messages
3
Dear,

I have create a little statics script for my own website.
I want use this on all web site's so all the customers can use it without adding some code in ther index.php file.

Is it possible to let it run on all websites that are running on the server ???
 
Can you put it in /var/www/html, chown it to webapps:webapps, and then create alises, similarly to how suirrelmail and other webmail programs are found in DirectAdmin?

Jeff
 
I think he made something like Google analytics, where you need to put a little bit of code in your website so the app can track visitor stats.

Because he is server admin, he came to the suggestion that it might be possible to have his php script tracking visitors, without having to include anything in websites.

I don't think its possible however I'm not sure. You could also consider making something like webalizer/awstats and parse apache logs yourself, instead of using 'external' scripts on websites, but that is of course a different story.

If you do want to continue with your php script, Jeffs suggestion could be useful. People would only have to add a short url (path), like src="/mystats" instead of a full http://domain.
 
Back
Top