473,756 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Increment counter via GET-Request?

Hi,

this is my situation:

I have a counter on my MAIN page. It is incremented by requesting a certain
"picture" which is the output of a script. I can do this manually with:

http://www.mydomain.com/script.php?id=123456&vid=987654

This increments the counter.

This is my wish:

I have another page with a discussion board. The address is something like
http://board.mydomain.com. Now I want to add these hits to those of the
counter.

My idea is to write a script which does something like:

<?php
send GET-request to increment the counter (invisible for the user);
redirect to the board;
?>

Is this possible? How do I do this?

It would be great if someone could help me.

Greetings,
Tim
Jul 17 '05 #1
1 3775
jn
"Tim Hussein" <al*****@bigfoo t.de> wrote in message
news:bn******** ****@ID-144336.news.uni-berlin.de...
Hi,

this is my situation:

I have a counter on my MAIN page. It is incremented by requesting a certain "picture" which is the output of a script. I can do this manually with:

http://www.mydomain.com/script.php?id=123456&vid=987654

This increments the counter.

This is my wish:

I have another page with a discussion board. The address is something like
http://board.mydomain.com. Now I want to add these hits to those of the
counter.

My idea is to write a script which does something like:

<?php
send GET-request to increment the counter (invisible for the user);
redirect to the board;
?>

Is this possible? How do I do this?

It would be great if someone could help me.

Greetings,
Tim


Why don't you just add that counter picture to the board's template
somewhere?
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
2792
by: csomberg | last post by:
SQL 2000 I thought I would throw this out there for some feedback from others. I'd like to know if you feel using MS auto-increment field is a good solution these days or should one grow their own ? Thanks, Me.
1
1876
by: Arpan | last post by:
An ASP page has a variable named iCounter whose initial value is 0. This ASP page has a drop-down list. When an option is selected from the drop-down list, I want the value of the iCounter variable to increment by 1. For e.g. when an option is first selcted, iCounter should be equal to 1. When an option is selected again, iCounter should be equal to 2 so on & so forth. How do I do this? Thanks, Arpan
98
14444
by: jrefactors | last post by:
I heard people saying prefix increment is faster than postfix incerement, but I don't know what's the difference. They both are i = i+1. i++ ++i Please advise. thanks!!
8
6329
by: Mantorok Redgormor | last post by:
The only adder I was able to come up with for incrementing by one, uses a for loop. I was trying to do this without using a for loop while emulating i++(it's for obfuscated code) Anyone know of a way to increment by one continuously, while updating the same value stored in an object, without the need of such a loop? basically a one-liner.
18
4003
by: Bruno Baguette | last post by:
Hello, I have to design a table wich will store some action reports. Each report have an ID like this 1/2004, 2/2004, ... and each years, they restart to 1 (1/2004, 1/2005, 1/2006,...). So, I was thinking to split that in two fields : one with the increment and one with the year. But I don't know how can I manage the sequences since I have to restart to 0 each year...
4
3518
by: Noah | last post by:
Hi, I bet the question below has been answered many times before, but I have not found an answer. If someone could point me to one that would be great! I have the following table: num run 1 1
2
2391
by: Gheorghe Postelnicu | last post by:
Hi, I have a situation of the following type: for line in lineList: for item in line.split() myArray itemCounter = itemCounter + 1 counter = counter +1
13
9842
by: technocraze | last post by:
Hi guys, I have an issue with incrementing a counter in a table using VB in MS Acess environment. Below mentioned is an instance. Implementation logic Table fields Serialno = pk Datatype text StudentId Text Course Text
12
28458
by: badvoc | last post by:
Hi, I have had some good fortune on this site so I am back and I must iterate I am a beginer. I am having some problems getting to grips with the right technique to manage variables and adding a unique order number to a customer order form. I have 4 stages to my order form. Stage 1 involves the user selecting a link based on what they want. The link then sets 2 variables. $type and $fault based on the link they have chosen.
3
8807
dlite922
by: dlite922 | last post by:
I have a list of objects, the object has a String and an Int in it. I need to check to see if an item is in the list, if so increment the integer and save it back to the list. I believe I've done everything OK up to the point of checking to see if an object is in the list by overloading the equals() and hashCode() functions. I don't have any errors and compiles except my list contains two entries of the same name (String) instead of...
0
9255
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10014
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9819
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9689
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7226
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6514
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5119
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5289
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3326
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.