Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > BlueVoda Website Builder Forums > BlueVoda - General Issues

Notices

BlueVoda - General Issues All BlueVoda support issues that are not covered in the below forums.

Closed Thread
 
Thread Tools
  #1  
Old 07-11-2005, 08:45 AM
ali ali is offline
Corporal
 
Join Date: Jul 2005
Posts: 17
Exclamation Insert php code in webpage (html)

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #2  
Old 07-11-2005, 12:50 PM
Pablo's Avatar
Moderator
 
Join Date: May 2005
Posts: 507
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old 07-25-2005, 01:59 AM
ali ali is offline
Corporal
 
Join Date: Jul 2005
Posts: 17
Default Make efficient

Hello,

How to make it effecient ? Please a hint. Thanks.





Quote:
Originally Posted by Pablo
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 :(
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old 07-25-2005, 10:30 AM
Pablo's Avatar
Moderator
 
Join Date: May 2005
Posts: 507
Default

Why not use simply use the page statistics of vodahost? It already keeps track of all your page hits, and much more than that.
__________________
Forum Moderator
BlueVoda Specialist
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old 07-26-2005, 01:21 AM
ali ali is offline
Corporal
 
Join Date: Jul 2005
Posts: 17
Default Page statistics of vodahost ?

Hello,

Where to find page statistics of vodahost ? I looked for in the page properties,
but could not find.


Quote:
Originally Posted by Pablo
Why not use simply use the page statistics of vodahost? It already keeps track of all your page hits, and much more than that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old 07-26-2005, 01:35 AM
Lieutenant Colonel
 
Join Date: Jul 2005
Posts: 508
Default

Personally, I like to have a counter on my website for the users to see. It is not just about stats.

The stat programs are located in the Cpanel.
__________________
::Steven.H::
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old 07-27-2005, 09:09 AM
ali ali is offline
Corporal
 
Join Date: Jul 2005
Posts: 17
Exclamation Statistics not real time

Hello,

Page statistics of vodahost are not real time. Updated in 24 hours.
Is it true ?


Quote:
Originally Posted by Pablo
Why not use simply use the page statistics of vodahost? It already keeps track of all your page hits, and much more than that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old 07-27-2005, 09:25 AM
Pablo's Avatar
Moderator
 
Join Date: May 2005
Posts: 507
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old 07-30-2005, 04:59 AM
Gray's Avatar
Sergeant
 
Join Date: Jul 2005
Location: Texas
Posts: 31
Send a message via AIM to Gray Send a message via MSN to Gray Send a message via Yahoo to Gray
Smile How to Insert PHP into HTML

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! --
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT +1. The time now is 03:55 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203