Search found 27 matches
- Wed Jul 08, 2009 1:13 am
- Forum: PHP - Code
- Topic: Hit counter
- Replies: 11
- Views: 98
Re: Hit counter
Does it generate any errors? Do you know if you get the input of the file for starters? Why not e.g load in the whole textfile then exploding it into an array then looping through that array and altering it. <?php $hitCounter = file_get_contents("hitcounter.txt"); $arrHitCounter = exp...
- Wed Jul 08, 2009 1:12 am
- Forum: PHP - Code
- Topic: Hit counter
- Replies: 11
- Views: 98
Re: Hit counter
tasairis wrote:I mean you say it "can't work" and "won't work" and you don't explain what that means. What doesn't work? What is it supposed to do? What does it actually do? Why is it wrong?
I mean it cant count the user hit. By right it should show me the number of hits, but it doens't.
- Tue Jul 07, 2009 11:52 pm
- Forum: PHP - Code
- Topic: Hit counter
- Replies: 11
- Views: 98
Re: Hit counter
You means my question or what?
- Tue Jul 07, 2009 11:37 pm
- Forum: PHP - Code
- Topic: Hit counter
- Replies: 11
- Views: 98
Re: Hit counter
the code i posted just now located in counter.php, after that i include the php file into the page i wish to code like the following:
<? include("conter.php");?>
But the problem is it doesn't work, so any other code to do this?
<? include("conter.php");?>
But the problem is it doesn't work, so any other code to do this?
- Tue Jul 07, 2009 10:56 pm
- Forum: PHP - Code
- Topic: Hit counter
- Replies: 11
- Views: 98
Re: Hit counter
<?php $filename = 'hitcount.txt'; $handle = fopen($filename, 'r'); $outbuffer = ''; $found = false; $hits = 1; // reading data from file while ( !feof( $handle ) ) { $buffer = trim( fgets( $handle ) ); if ( strlen( $buffer ) > 0 ) { list( $page, $count ) = explode( '|', $buffer ); if ( !$found &...
- Tue Jul 07, 2009 10:41 pm
- Forum: PHP - Code
- Topic: Hit counter
- Replies: 11
- Views: 98
Hit counter
Hello everybody,
Anyone can help me in hit counter? I need get the hit of each page for my side...
Thanks a lot!
Anyone can help me in hit counter? I need get the hit of each page for my side...
Thanks a lot!
- Wed May 27, 2009 9:21 pm
- Forum: Javascript
- Topic: Shopping cart - auto change quantity, total and grandtotal
- Replies: 1
- Views: 1486
Shopping cart - auto change quantity, total and grandtotal
Hey, i have a question about how to make the total and grand total change when i change the quantity. My code can change only total, but grand total din change as well. Besides, only first item that i add, can function. For the second item or third item, when i change the quantity, the total of firs...
- Fri May 08, 2009 12:40 am
- Forum: PHP - Code
- Topic: Hide and show field
- Replies: 4
- Views: 164
Re: Hide and show field
ok~ thanks 
- Thu May 07, 2009 11:41 pm
- Forum: PHP - Code
- Topic: Hide and show field
- Replies: 4
- Views: 164
Re: Hide and show field
ya...
i have a table to store the mail, but when i wan to read, all of them show out! So i wish to hide them according to date. When click it just show
i have a table to store the mail, but when i wan to read, all of them show out! So i wish to hide them according to date. When click it just show
- Thu May 07, 2009 11:28 pm
- Forum: PHP - Code
- Topic: Hide and show field
- Replies: 4
- Views: 164
Hide and show field
Hi everyone, i wish to create a mail box like outlook, group together the mail according the date. When i click the date just show the mail on that day. I dun want all the data just simply show. It will look messy. Hope can get the respond soon. Thanks a lot!
- Thu Apr 30, 2009 4:36 am
- Forum: PHP - Code
- Topic: Request script of Shopping Cart
- Replies: 2
- Views: 83
Re: Request script of Shopping Cart
Thanks... any suggestion of useful book?
- Thu Apr 30, 2009 4:22 am
- Forum: PHP - Code
- Topic: Request script of Shopping Cart
- Replies: 2
- Views: 83
Request script of Shopping Cart
Recently i need develop a shopping like http://www.doshop4u.com.my. Everyone can go and try it's shopping cart. If got any solution about it, please post. I need it urgent!! Thanks...