apache - Provide edit access to php files in server to users acrss sites


I have the situation of editing the php files in the "www" folder of a server from local machines. But in my condition, all the users across the sites, who shares the intranet, should be able to access the php files. Its more like I'm counting how many times users using an application which I developed. So, my idea is like creating a database in WAMP in the server and creating a php file which performs appending operation. So, if the user uses my application, I will make the php file I created to run in the server and that counts number of times my application used. I'm new to web design and I'm using Apache2.4 version. Please let me know if you have a better approach. Thanks in advance.




say it's filename.php


$con=mysql_connect("hostname", "username", "password");
$sql="update usage_count set count=count+1";

This code increases the hit-count(count as in database) each time the file is fetched from clint computer.

People are also looking for solutions to the problem: bitcoin - PHP / BTC Handling users xfers


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.