View Full Version : Running PHP script on all Websites
Rowdy
08-17-2010, 02:30 AM
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 ???
nobaloney
08-17-2010, 09:08 AM
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
Arieh
08-17-2010, 10:21 AM
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.
Rowdy
08-17-2010, 02:47 PM
I have found this more i dont know if i can use it for this.
http://httpd.apache.org/docs/1.3/howto/ssi.html
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.