Home / Software / Computer software / php help
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: php help  (Read 380 times)
nymph4
Topic Starter
Mentor



Posts: 1,601


« on: November 01, 2009, 01:39:49 PM »

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?
IP logged
Maksimus1200
Rookie



Thanked: 1
Posts: 15


create installer
« Reply #1 on: November 08, 2009, 11:04:56 PM »

There an error:

<? php
$filenam ="counter.txt;

missed ":
fixed:

<? php
$filenam ="counter.txt";
IP logged

Pages: [1] - (Top) Print 
Home / Software / Computer software / php help « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.07 seconds with 21 queries.