RE: [PHP] Incrementing counter from an HTML page.
i think you can use image counter a tag img connect to our script, something like this img src=phpcounter.php where the file phpcounter.php is generate counter in image form Glory! The problem I am facing is that my Index page can be an HTML page only.. not PHP. I cant use framesets, redirects etcetera. I want to build my own Counter using PHP mySQL Database.. with the Users Online and Total Hits feature. How can I increment the counter or affect a PHP code using HTML.. is there someway I can achieve this? To be able to show the php counter on my HTML page.. ? Thanks, PHPSpooky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Incrementing counter from an HTML page.
The problem I am facing is that my Index page can be an HTML page only.. not PHP. I cant use framesets, redirects etcetera. I want to build my own Counter using PHP mySQL Database.. with the Users Online and Total Hits feature. How can I increment the counter or affect a PHP code using HTML.. is there someway I can achieve this? To be able to show the php counter on my HTML page.. ? If your webserver is Apache, use SSI - http://httpd.apache.org/docs/howto/ssi.html - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Incrementing counter from an HTML page.
Glory! I'm not sure about the compatibility of iFrames.. on various browsers and platforms.. it would perhaps only complicate and be the only drawback in an otherwise very simple structured page.. PHPSpooky __ If God had wanted me otherwise, He would have created me otherwise. - Johann Wolfgang von Goethe -Original Message- From: Sichta Daniel [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 6:50 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Incrementing counter from an HTML page. Hi, try to use iframe with php code inside !! DS -Original Message- From: PHPSpooky [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 3:14 PM To: [EMAIL PROTECTED] Subject: [PHP] Incrementing counter from an HTML page. Glory! The problem I am facing is that my Index page can be an HTML page only.. not PHP. I cant use framesets, redirects etcetera. I want to build my own Counter using PHP mySQL Database.. with the Users Online and Total Hits feature. How can I increment the counter or affect a PHP code using HTML.. is there someway I can achieve this? To be able to show the php counter on my HTML page.. ? Thanks, PHPSpooky __ If God had wanted me otherwise, He would have created me otherwise. - Johann Wolfgang von Goethe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Incrementing counter from an HTML page.
Suggestions: 1. use a picture for the counter (with the image - handling library) 2. use a javascript script :) script language=JavaScript src=script.php this script will return the hit-counter in a variable that you can use. Question: why no redirects ? P Glory! P The problem I am facing is that my Index page can be an HTML page only.. P not PHP. I cant use framesets, redirects etcetera. P I want to build my own Counter using PHP mySQL Database.. with the P Users Online and Total Hits feature. P How can I increment the counter or affect a PHP code using HTML.. is P there someway I can achieve this? To be able to show the php counter on P my HTML page.. ? -- Ciprian Confucius Says: Man with hand in pocket is having a ball. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Incrementing counter from an HTML page.
Sounds cool.. Can you send in an example script or something? I've never worked with this before.. PHPSpooky __ If God had wanted me otherwise, He would have created me otherwise. - Johann Wolfgang von Goethe -Original Message- From: Ciprian Trofin [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 7:31 PM To: PHPSpooky Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Incrementing counter from an HTML page. Suggestions: 1. use a picture for the counter (with the image - handling library) 2. use a javascript script :) script language=JavaScript src=script.php this script will return the hit-counter in a variable that you can use. Question: why no redirects ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php