PDA

View Full Version : Needing Slight PHP Help



Robbie.
03-08-2006, 09:38 PM
I have a script, the code is
<?php echo(""); ?>

But when I go to the page it displays a blank page instead of my PHP Counter! OMIGOSH! Why Help Pls

Evasion
03-08-2006, 09:40 PM
That won't count your script. That just shows an echo.

Luckyrare
03-08-2006, 09:40 PM
OK let me help j00.

OK pl0x u need to learn php thnx you sad child.

Thanks,
Danny

awelsh
03-08-2006, 09:45 PM
thats not a full code. so it wont display annything

Mentor
03-08-2006, 09:46 PM
thats becuse all that code is doing is saying write "", which is nothing.

Try this as a counter

<?php
$document = ("myhits.txt");
$hits = file($document);
$hits[0] ++;
$fp = fopen($document , "w+");
fputs($fp , "$hits[0]");
fclose($fp);
// echo $hits[0];
?>

Remove the // on the last line if you want the count to be read out there

Josh-H
03-08-2006, 09:49 PM
Why help a spammer and racist ***

awelsh3
03-08-2006, 10:12 PM
sorry about me spamming ive pmed sierk about the problems i was having with the mod

Josh-H
03-08-2006, 10:13 PM
Damn, your 3rd account, Just another account for me to PM Nets about

the wombats
03-08-2006, 10:14 PM
Erm thread closed? This is obviously spam.

Want to hide these adverts? Register an account for free!