Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-02-2003, 07:49 PM   PM User | #1
Silver Sun
New Coder

 
Join Date: Sep 2002
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Silver Sun is an unknown quantity at this point
Last one: How do I have a variable increased by one whenever a page is visited.......

.......I have a file called post.php, this needs to write the value of $pnumber to a txt file.

Its not a hit counter for post.php, I need it for creating a file called:

$pnumber.txt

And each post is of course 1 more than the pnumber of its predecessor.

thanks in advance.
Silver Sun is offline   Reply With Quote
Old 02-03-2003, 05:56 AM   PM User | #2
Jesh
Registered User

 
Join Date: Feb 2003
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Jesh is an unknown quantity at this point
Hey

Do you have MySQL?

Jesh
Jesh is offline   Reply With Quote
Old 02-03-2003, 06:57 AM   PM User | #3
pb&j
Regular Coder

 
Join Date: Jun 2002
Location: Canada
Posts: 254
Thanks: 0
Thanked 0 Times in 0 Posts
pb&j is an unknown quantity at this point
You mean like...

$pnumber++;
pb&j is offline   Reply With Quote
Old 02-03-2003, 07:05 AM   PM User | #4
Jesh
Registered User

 
Join Date: Feb 2003
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Jesh is an unknown quantity at this point
Hey

I doubt thats what he means.

I think he wants it like page hits, in which case, MySQL would be the best option...?

Jesh
Jesh is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:36 PM.


Advertisement
Log in to turn off these ads.