ComputerForum.com ComputerForum.com  

Go Back   Computer Forum > Computer Systems > Desktop Computers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-01-2009, 09:42 PM   #1 (permalink)
Silver Member
 
Join Date: Aug 2009
Posts: 127
Smile php help

I found a web site that shows you how to make a Hit Counter for a web pae.

Ijust want to know if this sounds right befor I start?

It tells me to take my index.html file witch is my Home Page and re name it index.php so I did this.

Then were ever I want my Hit Counter to be displayed I type this code

<? php
$filenam ="counter.txt;
$fd = fopen [filename,"r"];
$string = frad [$fd, filesize [$filename]];
echo "$string";
fclose[$fd];

$fd = fopen [$filname , "w"]
$fcounted = $fstring + 1 ;
$fout= fwrite [$ed , $fcounted] :
fclose[$ed] ;

?>

Then save it.

Then it tells me to open Notepade and save a blank text file called counter.txt.
And it tells me to save this to the same place.

What I want to know is all the php code it says to type did I type it right or do I need any Spces anywere???

It is hard to see if I should put a space anywere els.

I think I typed it right but I thought I would ask if anyone els did this before?
robertbiferi is offline   Reply With Quote


Old 11-02-2009, 12:29 AM   #2 (permalink)
Silver Member
 
Join Date: May 2009
Location: New York City
Posts: 116
Default

PHP isn't my native computer language but it looks alright to me. The Great thing about coding though is that if it doesn't work you can go back and fix it. Try it out and see if it works. Be prepared to debug though... you almost always will.

EDIT: Actually I do see a couple of typos in there. Why not just copy and paste the code from the site?
__________________
My general cleaning guide: www.thegreatdamorian.com/howtos/fixit.html
A few tips on computer building: http://www.thegreatdamorian.com/howtos/diycomptips.html
Damorian is offline   Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP on server INTELCRAZY Internet Discussion 12 01-29-2008 03:08 AM
Server running Apache 2.2.2 - Setting Up PHP jbrown456 General Computer Chat 3 08-22-2006 12:23 AM
Php Wesite Maker Zeus2005 Desktop Computers 2 03-28-2006 09:23 PM
PHP form conflicts!! Argh! Any PHP coders help please! hhobba General Software 1 03-01-2006 03:40 PM
PHP under "Microsoft FTP Service (version 5.0)" ?? DARKGuy General Software 0 01-19-2006 10:29 PM


All times are GMT +1. The time now is 08:59 PM.


Powered by: vBulletin Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.