![]() |
|
| |||||||
| Notices |
| BlueVoda - General Issues All BlueVoda support issues that are not covered in the below forums. |
![]() |
| | Thread Tools |
|
#1
| |||
| |||
|
Need help !!!!!! Where to insert php code: <? $filecnt = "ISOcnt.txt"; if (file_exists($filecnt)) { $fp = fopen($filecnt,"r"); $count = (int)fread($fp,24); fclose($fp); $count++; } else { $count = 1; } $fp = fopen($filecnt , "w"); fwrite($fp,$count); fclose($fp); echo $count; ?> in the following html: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Untitled Page</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD> <BODY text=#000000 bgColor=#ffffff> <DIV style="LEFT: 0px; OVERFLOW: hidden; POSITION: absolute; TOP: 0px" align=left><IMG height=600 src="FCount_files/m219a.gif" width=700 align=top border=0> </DIV></BODY></HTML> in order $count appears on page ? Thanks! |
|
#2
| ||||
| ||||
|
Your question doesn't seem to be related to BlueVoda (the html is Internet Explorer generated code). The PHP code can be inserted into BlueVoda anywhere you like. All it does is open a text file and increase the page counter. Not a very effecient way of keeping statistics though... It will only slow down the server is you ask me :(
__________________ Forum Moderator BlueVoda Specialist |
|
#3
| |||
| |||
|
Hello, How to make it effecient ? Please a hint. Thanks. Quote:
|
|
#5
| |||
| |||
|
Hello, Where to find page statistics of vodahost ? I looked for in the page properties, but could not find. Quote:
|
|
#7
| |||
| |||
|
Hello, Page statistics of vodahost are not real time. Updated in 24 hours. Is it true ? Quote:
|
|
#8
| ||||
| ||||
|
Yes, that's true. But the PHP script you're using will slow down the server, since it opens and updates the file with each page hit. You better off using a database table to store the results because MYSQL will cache your query/updates.
__________________ Forum Moderator BlueVoda Specialist |
|
#9
| ||||
| ||||
|
I personally reccomend using IFRAMES. Here it is Step by Step: 1. Open Notepad. 2. Copy and Paste this in Notepad: <? $filecnt = "ISOcnt.txt"; if (file_exists($filecnt)) { $fp = fopen($filecnt,"r"); $count = (int)fread($fp,24); fclose($fp); $count++; } else { $count = 1; } $fp = fopen($filecnt , "w"); fwrite($fp,$count); fclose($fp); echo $count; ?> 3. Save this as counter.php 4. Upload it to your HTML Documents folder on your FTP server. 5. Now, Insert HTML into your page in BlueVoda. 6. Paste this in the HTML box: <IFRAME name="inlineframe" src="counter.php" width=122 height=40 marginwidth=0 marginheight=0 frameborder=0 scrolling=no></IFRAME> 7. Adjust your the size of the IFRAME using Width and Height. 8. Publish the page and check to see if it works! -- I Hope this Works for You! -- |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTML code | topcatgym | General Support Issues | 6 | 11-22-2005 12:46 AM |
| how do i insert php? | GiGoLo | mySQL & PHP | 1 | 11-19-2005 12:04 PM |
| HTML code for Contact Form | Patti Johnson | BlueVoda - General Issues | 2 | 09-22-2005 06:56 PM |
| Copy HTML into the code | Quint | Search Engine Topics and VodaHits | 6 | 09-16-2005 12:23 PM |
| How do I make a php webpage? | joeri | mySQL & PHP | 2 | 09-12-2005 09:39 PM |