Jump to content

Counter


AlphaWolf

Recommended Posts

Hi,

After looking at some Javascript, I think it can only be done in PHP. I'm trying to get my script to add a "1" to an external file. It's made in Javascript, but I hope I can put some PHP in it, even if it's at the end. I'm working on a Safari Extension, and would like to know how many people use it. It's all made in a .HTML file, so I should be able to add a PHP script at the end.

I hope this is clear, and I hope it can be done in PHP, or something at least.

Thanks,

Joseph Duffy

Link to comment
https://forums.phpfreaks.com/topic/215637-counter/
Share on other sites

So, can this be done? Is there anything in HTML that can execute a file somewhere. I'm thinking this is impossible, but I'd really like to implement this :(

 

Maybe javascript.

 

I've posted on a Javascript forum, with no reply, although Javascript was my first option. It's primarily written in Javascript, so I'd love to use Javascript :D

Link to comment
https://forums.phpfreaks.com/topic/215637-counter/#findComment-1122292
Share on other sites

Browser's don't have access to files due to the security hole that would open, which is why there are cookies. Can you add 1 to a cookie value and accomplish your task?

 

I believe cookies are restricted, although it might be possible to bundle a txt file with the package, but then editing and uploading that it an issue D:

Link to comment
https://forums.phpfreaks.com/topic/215637-counter/#findComment-1122696
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.